![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831264.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-147
Ver. 1
6.25.8 RCR4, RCR4P, RCR8, RCR8P
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
RCR4(P)
RCR8(P)
D O O O - O -
-
-
- O O -
-
-
-
-
2~4
-
-
O
n O O O - O O O - O -
- O O O O O
Operand
Description
Data Type
D
Data address to perform operation.
NIBBLE/BYTE
n
Number of bits to rotate to the right.
WORD
[Flag Set]
Flag
Description
Device
Number
Carry
If Carry is caused during rotation, Carry Flag will be set.
F112
1) RCR4 (Nibble Rotate Right with carry)
(1) Rotates D’s 4 bits for the number of n bits specified to the right bit by bit, and the lowest bit among 4 bits
moves to Carry Flag. The original Carry Flag moves to the highest bit. (Rotation within 4 bits)
(2) If Carry is caused during rotation, Carry Flag will be set.
2) RCR8 (Byte Rotate Right with carry)
(1) Rotates D’s 8 bits for the number of n bits specified to the right bit by bit, and the lowest bit among 8 bits
moves to Carry Flag. The original Carry Flag moves to the highest bit. (Rotation within 8 bits)
(2) If Carry is caused during rotation, Carry Flag will be set.
3) Program Example
(1) For P01000~P01003=hF, when Input Signal P00000 is changed to On from Off status, it rotates 4 bits to
the right and then h000E will be saved in P01000 and Carry Flat will be set.
RCR4P P01000 4
P00000
RCR4, RCR8
RCR4P, RCR8P
D
means
P D
n
n
Command
Command
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...