Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 426

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Data Shift Instructions
Description
Flags
Precautions
Examples
Area
Index Registers
Indirect addressing
using Index Registers
RLNL(576) shifts all bits of Wd and Wd +1 to the left (from rightmost bit to left-
most bit). The contents of the leftmost bit of Wd +1 is shifted to the rightmost
bit of Wd, and to the Carry Flag (CY).
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Negative Flag
N
When RLNL(576) is executed, the Error Flag will turn OFF.
If as a result of the shift the contents of Wd and Wd +1 are zero, the Equals
Flag will turn ON.
If as a result of the shift the contents of the leftmost bit of Wd + 1 is 1, the Neg-
ative Flag will turn ON.
When CIO 000000 is ON, word CIO 0100 and CIO 0101 will shift one bit to
the left (excluding the Carry Flag (CY)). The contents of CIO 010115 will be
shifted to CIO 010000.
Wd+1: CIO 0101
1
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Wd+1
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.
Wd
Wd: CIO 0100
Instruction executed once
Section 3-9
Wd
Wd
387

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents