ROR/RORL
Instruction
ROTATE RIGHT
DOUBLE ROTATE RIGHT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
Wd
Word
Operand Specifications
Area
CIO
WR
HR
ROR
Wd
OK
OK
OK
RORL
Wd
Flags
Name
Error Flag
Equals Flag
Carry Flag
Negative Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
ROR
@ROR
RORL
@RORL
ROR
ROR(028)
Wd
Wd
Block program areas
Step program areas
OK
OK
Description
Word addresses
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
OFF
=
• ON when the shift result is 0.
• OFF in all other cases.
CY
• ON when 1 is shifted into the Carry Flag (CY).
• OFF in all other cases.
N
• ON when the leftmost bit is 1 as a result of the shift.
• OFF in all other cases.
Function
code
Shifts all Wd bits one bit to the right
028
including the Carry Flag (CY).).
Shifts all Wd and Wd +1 bits one bit to
573
the right including the Carry Flag (CY).
:
Word
Subroutines
OK
Data type
ROR
UINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
---
---
Operation
3. Instructions
Function
RORL
RORL(573)
Wd
Wd: Word
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
RORL
ROR
RORL
UDINT
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
3
2
TR
bits
---
---
315
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers