Mitsubishi — Chapter 6 Application Instructions API 00-49

6 Application Instructions API 00-49 Operands: source data D : Destination device n : Start digit of the destination position for the moved digits S : Source of data m 1 : Start digit to be moved of the source data m 2 : Number of digits (nibbles) to be moved of the Explanations: 1. This instruction is able to re-allocate or combine data. When the instruction is executed, m 2 digits of contents starting from digit m 1 (from high digit to low digit) of S will be sent to m 2 digits starting from digit n (from high digit 2. Range: m 1 = 1 ~ 4; m 2 = 1 ~ m 1 ; n = m 2 ~ 4 to low digit) of D . 3. See the specifications of each model for their range of use. 4.

M1168 is designated by SMOV working mode. When M1168 = On, the program is in BIN mode. When M1168 = Off, the program is in BCD mode. Program Example 1: 1. When M1168 = Off (in BCD mode) and X0 = On, the 4 th (thousand) and 3 rd (hundred) digit of the decimal value in D10 start to move to the 3 rd (hundred) and 2 nd (ten) digit of the decimal value in D20. 10 3 and 10 0 of D20 remain unchanged after this instruction is executed. 2. When the BCD value exceeds the range of 0 ~ 9,999, PLC will determine an operation error and will not execute the instruction. M1067, M1068 = On and D1067 records the error code OE18 (hex).

M1001 M1168 X0 D10(BIN 16 bits) Auto conversion D10(BCD 4 digits) D20(BCD 4 digits) Shift move Auto conversion D20(BIN 16 bits) DVP-PLC Application Manual 6-23 API Mnemonic Operands Function 13 SMOV P Shift Move Type OP Bit Devices X Y M S Word Devices Program Steps Y M S K H KnX K nY KnM KnS T C D E F SMOV, SMOVP: 11 steps S * * * * * * * * * m 1 * * m 2 * * D * * * * * * * * n * * PULSE 16-bit 32-bit EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC E H SV SA SX SC EH SV SV2 SMOV D10 K4 K2 D20 K3 103 102 101 100 Unchanged Unchange 103 102 101 100