Rotate Left - Rol(27); Rotate Right - Ror(28) - Omron C200H Operation Manual

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Data Shifting
5-13-5
ROTATE LEFT – ROL(27)
Description
Precautions
Flags
5-13-6
ROTATE RIGHT – ROR(28)
Description
Precautions
128
Ladder Symbols
ROL(27)
@ROL(27)
Wd
When the execution condition is OFF, ROL(27) is not executed. When the
execution condition is ON, ROL(27) shifts all Wd bits one bit to the left, shift-
ing CY into bit 00 of Wd and shifting bit 15 of Wd into CY.
Bit
15
CY
0
1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 1
Use STC(41) to set the status of CY or CLC(41) to clear the status of CY be-
fore doing a rotate operation to ensure that CY contains the proper status
before execution ROL(27).
Indirectly addressed DM word is non-existent. (Content of *DM word
ER:
is not BCD, or the DM area boundary has been exceeded.)
CY:
Receives the data of bit 15.
EQ:
ON when the content of Wd is zero; otherwise OFF.
Ladder Symbols
ROR(28)
@ROR(28)
Wd
When the execution condition is OFF, ROR(28) is not executed. When the
execution condition is ON, ROR(28) shifts all Wd bits one bit to the right,
shifting CY into bit 15 of Wd and shifting bit 00 of Wd into CY.
Bit
CY
15
0
0 1 0 1 0 1 0 0 0 1 1 1 0 0 0 1
Use STC(41) to set the status of CY or CLC(41) to clear the status of CY be-
fore doing a rotate operation to ensure that CY contains the proper status
before execution ROR(28).
Wd
Bit
00
Wd
Bit
00
Section 5-13
Operand Data Areas
Wd: Rotate word
IR, AR, DM, HR, LR
Operand Data Areas
Wd: Rotate word
IR, AR, DM, HR, LR

Advertisement

Table of Contents
loading

Table of Contents