Chapter 6 Instruction Details
XBC E-Type Main Unit
6-144
Ver. 1
6.25.5 RCL, RCLP, DRCL, DRCLP
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)
RCL(P)
DRCL(P)
D O O O - O O 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.
WORD/DWORD
n
Number of bits to rotate to the left.
WORD
[Flag Set]
Flag
Description
Device
Number
Carry
If Carry is caused during rotation, Carry Flag will be set.
F112
1) RCL (Rotate Left with Carry)
(1) Rotates word data D’s individual bit for the number of N to the left bit by bit. The highest bit data moves to
Carry Flag (F112) and the original Carry Flag (F112) moves to the lowest bit. (Rotation within 1 word)
2) DRCL (Double Rotate Left with Carry)
(1) Rotates D and D+1’s 32 bits data for n bits to the left, not including Carry Flag.
3) Program Example
(1) If P1000=hF000, when Input Signal is changed to On from Off status, it rotates 4 bits to the left bit by bit and
then hE00 is saved in P1000 and Carry Flag will be set.
RCLP P1000 4
P00000
RCL,
DRCL
RCLP,
DRCLP
D
means RCL/DRCL
P D
n
n
Command
0
0
0
0
0
0
0
0
0
1
0
1
1
0
0
1
0
Carry Flag
Rotation to the right
b15
b0
b30 b29 b28 b27
b18 b17 b16 b15
b14
b31
b5 b4
b3
b2
b1 b0
Rotation for n bits
(F112)
Carry Flag
D+1
D
Command
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...