6 Application Instructions API 00-49 Operands: S : Source of data D : Destination of data Explanations: 1. If S and D are used in device F, only 16-bit instruction is applicable. 2. See the specifications of each model for their range of use. 3. When this instruction is executed, the content of S will be moved directly to D . When this instruction is not executed, the content of D remains unchanged. 4. If the operation result refers to a 32-bit output, (i.e. application instruction MUL and so on), and the user needs to move the present value in the 32-bit high-speed counter, DMOV instruction has to be adopted. Program Example: 1.
MOV instruction has to be adopted in the moving of 16-bit data. a) When X0 = Off, the content in D10 will remain unchanged. If X0 = On, the value K10 will be moved to D10 data b) When X1 = Off, the content in D10 will remain unchanged. If X1 = On, the present value T0 will be moved to register. D10 data register. 2. DMOV instruction has to be adopted in the moving of 32-bit data. When X2 = Off, the content in (D31, D30) and (D41, D40) will remain unchanged. If X2 = On, the present value of (D21, D20) will be sent to (D31, D30) data register. Meanwhile, the present value of C235 will be moved to (D41, D40) data register.
X0 X1 X2 DVP-PLC Application Manual 6-22 API Mnemonic Operands Function 12 D MOV P Move Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F MOV, MOVP: 5 steps DMOV, DMOVP: 9 steps S * * * * * * * * * * * D * * * * * * * * PULSE 16-bit 32-bit EH3 SV2 ES EH3 EH3 ES EX SS SA SX SC EH SV EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV SV2 SV2 MOV K10 D0 MOV T0 D10 2 DMOV D20 D30 DMOV C235 D40