159
FNC
32
FNC
33
1
1
2
2
M
M
3
3
○
○
○
○
○
○
○
○
D PR C R
D PR C L
D
n
D
n
n
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
D
The bit format of the designated device join with the Carry Flag M9022 that executes to rotate to the right by
the number of bits.
When X20 =“OFF” → “ON”, the 16-bit data of (D0) combine with the Carry Flag M9022 that will be rotated by 4 bits
to the right.
1 1 1 1 1 1 1 1
0
0 0 0 0
1111
0 0 0 0
0 0 0 0 0 0
111
b15
b0
D1
D1
0
M9022
1
M9022
0
0
1 1 1 1 1
1 1
1
1 1
1
1 1
1
1 1
0
0 0 0
0 0 0 0
0
0
0
0
0 0
b15
b0
D0
D0
1
M9022
0
M9022
0
1
RCRP D0 K4
X20
D
n
D
n
X21
RCLP D1 K4
D
n
D
n
Operand
Devices
Rotation Right with Carry
Rotation Left with Carry
The 16-bit instruction, n=1 ~ 16 The 32-bit instruction, n=1 ~ 32
When D is designated as KnY, Kn M and Kn S, the 16-bit instruction can only designate K4Y, K4M and K4S, while the
32-bit instruction can only designate K8Y, K8M and K8S
D : the selected device to be rotated
n : the number of the bits to be rotated
D : the selected device to be rotated
n : the number of the bits to be rotated
Rotation right
After execution of a rotation
Rotation left
After execution of a rotation
The bit format of the designated device join with the Carry Flag M9022 that executes to rotate to the left by the
number of bits.
When X21 =“OFF” → “ON”, the 16-bit data of (D1) combine with the Carry Flag M9022 that will be rotated by 4 bits
to the left.