ROL/ROLL
Instruction
ROTATE LEFT
DOUBLE ROTATE LEFT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
Wd
Word
Operand Specifications
Word addresses
Area
CIO
WR
HR
ROL
Wd
OK
OK
OK
ROLL
Wd
Flags
Name
Error Flag
Equals Flag
Carry Flag
Negative Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
ROL
@ROL
ROLL
@ROLL
ROL
ROL(027)
Wd
Wd: Word
Block program areas
Step program areas
OK
OK
Description
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 left
027
including the Carry Flag (CY).
Shifts all Wd and Wd +1 bits one bit to
572
the left including the Carry Flag (CY).
Subroutines
OK
Data type
ROL
UINT
UDINT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
---
---
Operation
3. Instructions
Function
ROLL
ROLL(572)
Wd
Wd: Word
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
ROLL
ROL
ROLL
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
3
2
TR
bits
---
311
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