143
When the M9168 = “OFF”
When the M9168 = “ON”
Convert D0 into a BCD number. The PLC will identify
it as an operational error when the BCD’s value
exceeds 9999 or D0’s value is negative.
Convert D1 into a BCD number. The PLC will identify
it as an operational error when the BCD's value
exceeds 9999 or D1's value is negative.
Move the designated digits of D0 to the specified
position and combine the digits with D1.
Convert the combined value into a BIN value
and move it to D1.
10
3
10
2
10
1
10
0
b15
b14
b13
b12 b11
b10 b9 b8
b7
b6 b5
b4
b3
b2 b1
b0
10
3
10
2
10
1
10
0
b15
b14
b13
b12 b11
b10 b9 b8
b7
b6 b5
b4
b3
b2 b1
b0
10
3
10
2
10
1
10
0
b15
b14
b13
b12 b11
b10 b9 b8
b7
b6 b5
b4
b3
b2 b1
b0
D0 D1
D1
b15
b14
b13
b12 b11
b10 b9 b8
b7
b6 b5
b4
b3
b2 b1
b0
b15
b14
b13
b12 b11
b10 b9 b8
b7
b6 b5
b4
b3
b2 b1
b0
b15
b14
b13
b12 b11
b10 b9 b8
b7
b6 b5
b4
b3
b2 b1
b0
SMOV D0 K3 K2 D1 K2
X20
S
m1 m2
D
n
S M O V P
D
n
m1 m 2
S
1
2
M
3
○ ○ ○○
FNC
13
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
m1
D
n
m2
m
1
=1~4
m
2
1 m
1
= ~
n m
2
4
= ~
Operand
Devices
Shift Move
S : the source device of transfer
m1 : the source position of the rst digit to be moved
m2 : the number of source digits to be moved
D : the destination device
n : the destination position for the rst digit
This instruction can be used to reorganize data.
The instruction can select different operation modes, it is based on the status of Special Relay M9168.
D0 (BIN 16-bit Value) D1 (BIN 16-bit Value)
D1 (BIN 16-bit Value)
th.
4 Nibble
rd.
3 Nibble
nd.
2 Nibble
st.
1 Nibble
th.
4 Nibble
rd.
3 Nibble
nd.
2 Nibble
st.
1 Nibble
th.
4 Nibble
rd.
3 Nibble
nd.
2 Nibble
st.
1 Nibble