Omron SYSMAC CS Series Instruction & Reference Manual page 272

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
Function
 RLNC
RLNC(574) shifts all bits of Wd to the left
(from rightmost bit to leftmost bit). The
contents of the leftmost bit of Wd shifts to the
rightmost bit and to the Carry Flag (CY).
 RLNL
RLNL(576) shifts all bits of Wd and Wd +1 to
the left (from rightmost bit to leftmost bit).
The contents of the leftmost bit of Wd +1 is
shifted to the rightmost bit of Wd, and to the
Carry Flag (CY).
Example Programming
When CIO 0.00 is ON, word CIO 100 will shift
one bit to the left (excluding the Carry Flag
(CY)). The contents of CIO 100.15 will be
shifted to CIO 100.00.
0.00
Wd
Wd: CIO 100
1
238
Instruction executed once
Wd
Wd+1
When CIO 0.00 is ON, word CIO 100 and CIO 101
will shift one bit to the left (excluding the Carry
Flag (CY)). The contents of CIO 101.15 will be
shifted to CIO 100.00.
0.00
Wd
Wd+1: CIO 101
1
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Wd
Wd: CIO 100
Instruction executed once

Advertisement

Table of Contents
loading

Table of Contents