Chapter 6 Instruction Details
XBC E-Type Main Unit
6-145
Ver. 1
6.25.6 RCL4, RCL4P, RCL8, RCL8P
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)
RCL4(P)
RCL8(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 left.
WORD
[Flag Set]
Flag
Description
Device
Number
Carry
If Carry is caused during rotation, Carry Flag will be set.
F112
1) RCL4 (Nibble Rotate Left with Carry)
(1) Rotates D’s 4 bits for the number of n bits specified to the left bit by bit. The highest bit among 4 bits moves
to Carry Flag and the original Carry Flag moves to the lowest bit. (Rotation within 4 bits)
(2) If Carry is caused during rotation, Carry Flag will be set.
2) RCL8 (Byte Rotate Left with Carry)
(1) Rotates D’s 8 bits for the number of n bits specified to the left bit by bit. The highest bit among 8 bits moves
to Carry Flag and the original Carry Flag moves to the lowest bit. (Rotation within 8 bits)
(2) If Carry is caused during rotation, Carry Flag will be set.
3) Program Example
(1) If P0100c~P0100F=’hF’, Input Signal P00000 is changed to On from Off status, it rotates 4 bits to the left.
hE000 will be saved in P0100 and Carry Flag will be set.
RCL4P P0100C 4
P00000
RCL4, RCL8
RCL4P,
RCL8P
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...