Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions API 12 Operands: S : Source of data D : Destination of data Explanations: 1. 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 2. When MOV is used as 16-bit instruction, Z device cannot be adopted; when MOV is used as 32-bit instruction, V device cannot be adopted. 3. For moving 32-bit operation results of certain instructions (e.g. MUL), DMOV instruction has to be applied. Program Example: 1. MOV will move a 16-bit value from the source location to the destination. a) When X0 = OFF, the content of D0 remains unchanged.

If X0 = ON, the data K10 is moved to D0. b) When X1 = OFF, the content of D10 remains unchanged. If X1 = ON, the data of K2M4 is moved to D10 data register. 2. DMOV will move a 32-bit value from the source location to the destination. a) When X2 = OFF, the content of (D31, D30) and (D41, D40) remain unchanged. b) When X2 = ON, the data of (D21, D20) is moved to (D31, D30) data register. Meanwhile, the data of C235 is moved to (D41, D40) data register. X0 X1 X2 DVP-PM Application Manual 5-25 Mnemonic Operands Function Controllers 20PM 10PM 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 V Z MOV, MOVP: 5 steps DMOV, DMOVP:

6 steps S * * * * * * * * * * * D D * * * * * * * * MOV K10 D0 MOV K2M4 D10 DMOV D20 D30 DMOV D50 D40