Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions API 259 Operands: S : Source device (16-bit) D : Destination device (32-bit) Explanations: MMOV instruction sends the data in 16-bit device S to 32-bit device D . Sign bit (MSB) of source device will be copied to every bit in the high byte of D . Program Example: When X23 = 0N, 16-bit data in D4 will be sent to D6 and D7.

X23 D4 D7, D6 b31 b16 b0 b15 In the example above, b15 in D4 will be sent to b15~b31 of D7/D6, therefore all bits form b15~b31 will be “negative.” DVP-PM Application Manual 5-143 Mnemonic Operands Function Controllers 20PM 10PM MMOV 16-bit→32-bit Conversion P Type OP Bit Devices X Y M S Word Devices Program Steps Y M S K H KnX KnY KnM KnS T C D V Z MMOV, MMOVP: 5 steps S * * * * * * * * * * * D * * * * * * * * MMOV D4 D6 b15 b0 0 "+" 1 0 0 1 1 0 0 1 0 1 1 1 0 0 0 1 1 "-" 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 0 0 1 0 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 0 0 1 0 1 1 1 0 0 0 1 1 0 0 1 1 0 0 1 0 1 1 1 0 0 0 1