Rol - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

ROL

Instruction
ROTATE LEFT
Symbol
Applicable Program Areas
Area
Step program areas
Usage
OK
Operands
Operand
Wd
Word
Operand Specifications
Word addresses
Area
CIO
WR
HR
Wd
OK
OK
OK
Flags
Name
Error Flag
Equals Flag
Carry Flag
Negative Flag
Function
ROL(027) shifts all bits of Wd including the
Carry Flag (CY) to the left (from rightmost bit
to leftmost bit).
Hint
It is possible to set the Carry Flag contents to 1 or 0 immediately before executing this instruction, by
using the Set Carry (STC(040)) or Clear Carry (CLC(041)) instructions.
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
ROL
@ROL
Description
AR
T
C
DM
OK
OK
OK
OK
Label
P_ER
OFF
P_EQ
• ON when the shift result is 0.
• OFF in all other cases.
P_CY
• ON when 1 is shifted into the Carry Flag (CY).
• OFF in all other cases.
P_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).
ROL
ROL(027)
Wd
Wd: Word
Subroutines
OK
Data type
UINT
Indirect DM addresses
Constants
@DM
*DM
OK
OK
---
Operation
CY
15 14
2 Instructions
Function
Interrupt tasks
OK
Size
1
CF
Pulse bits
TR bits
---
---
---
1
0
2-135
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents