9 Application Instructions API 150-199 API 176 Operands: S : Data source (16-bit) D : Data destination (32-bit) Explanations: 1. MMOV instruction sends the data in the 16-bit S device to the 32-bit D device. The designated sign bit will be copied and stored in the destination device. Program Example 1: When X23 = On, the data in D4 will be sent to D6 and D7. X23 "+"號 0 1 "-"號 b15 b0 1 0 0 1 1 1 0 0 0 1 1 1 1 0 0 0 D4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 D7, D6 0 0 1 1 0 b31 b16 b0 b15 In the example, b15 of D4 is sent to b15 ~ b31 of (D7, D6) as a negative value (same as it is in D4).
DVP-PLC Application Manual 9-89 Mnemonic Operands Function MMOV P Magnifying Transfer with Sign Extension Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F MMOV, MMOVP: 5 steps S * * * * * * * * * D * * * PULSE 16-bit 32-bit SV EH3 ES EX SS EH3 SV2 ES EX SS SA SX SC EH SV EH3 SV2 S EX SS SA SX SC E H SA SX SC EH SV SV2 MMOV D4 D6