Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 333

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Data Shift Instructions
Flags
Precautions
Examples
3-8-16 DOUBLE ROTATE RIGHT WITHOUT CARRY: RRNL(577)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
300
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Negative Flag
N
When RRNC(575) is executed, the Error Flag will turn OFF.
If as a result of the shift the contents of Wd is zero, the Equals Flag will turn
ON.
If as a result of the shift the contents of the leftmost bit of Wd is 1, the Nega-
tive Flag will turn ON.
When CIO 0.00 is ON, word CIO 1000 will shift one bit to the right (excluding
the Carry Flag (CY)). The contents of CIO 1000.00 will be shifted to
CIO 1000.15.
0.00
1000
Wd
Wd: CIO 1000
Instruction executed once
Shifts all Wd and Wd +1 bits one bit to the right not including the Carry Flag
(CY). The contents of the rightmost bit of Wd +1 is shifted to the leftmost bit of
Wd, and to the Carry Flag (CY).
RRNL(577)
Wd
Wd: Word
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
Operation
OFF
ON when the shift result is 0.
OFF in all other cases.
ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
ON when the leftmost bit is 1 as a result of the shift.
OFF in all other cases.
CY
Step program areas
Subroutines
OK
Section 3-8
RRNL(577)
@RRNL(577)
Not supported
Interrupt tasks
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents