DVP-ES3 Series Programming Manual 4.1 Applied Instructions - API Description This section describes the way this manual documents each API instruction. Every instruction has its own instruction code and API number. The instructions are divided into sections based on the related functions of the instructions, so that all the arithmetic instructions are in one section, and all the comparison instructions are in another section. The following example uses the MOV instruction. The API number of the instruction in the table is 0300, the instruction code is MOV, and the function is transferring data. Symbol: S : Data source D : Data destination 1.
The devices used by the instruction are listed in the operand column. S , D , n , and m are used as the operands according to their functions. When more than one operand is used, and these operands share the same function, they are differentiated by subscripts; for example, S 1 , and S 2 . 2. If you can use a 16-bit instruction as a 32-bit instruction, the letter D prepended to the 16-bit instruction code to form the 32-bit instruction form. If you can use the instruction as a pulse instruction, the letter P is appended to the instruction code. For example, “D***P” in which “***” is the instruction code indicates a 32-bit pulse instruction. 3.
F in the operand area indicates a single precision floating point number (32-bit). 4. The solid circle ● indicates that the device can be modified by an index register, and the hollow circle ○ indicates that the device cannot be modified by an index register. For example, the data register designated by the operand S can be modified by an index register. 5. The applicable model is indicated in the table. You can check whether you can use the instruction as a pulse instruction, a 16-bit instruction, a 32-bit instruction, or a 64-bit instruction according to the information in the table. 6.
If you want to use an instruction in a function block, and the output, input, and data devices are supported in the operands, you have to use the pointer registers. AS indicates that to use a timer, a 16-bit counter, and a 32-bit 4-2 API Instruction code Operand Function 0300 D MOV P S,D Transferring the data Device X Y M S T C HC D FR SM SR E K 16# “$” F S D 4 _ BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S D Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3