Omron SYSMAC CS Series Instruction & Reference Manual page 276

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

Advertisement

3. Instructions
Function
 RRNC
RRNC(575) shifts all bits of Wd to the right
(from leftmost bit to rightmost bit) not
including the Carry Flag (CY). The contents
of the rightmost bit of Wd shifts to the
leftmost bit and to the Carry Flag (CY).
 RRNL
RRNL(577) shifts all bits of Wd and Wd +1 to
the right (from leftmost bit to rightmost bit)
not including the Carry Flag (CY). The
contents of the rightmost bit of Wd +1 is
shifted to the leftmost 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 right (excluding the Carry
Flag (CY)). The contents of CIO 100.00 will
be shifted to CIO 100.15.
0.00
Wd
Wd: CIO 100
242
Instruction executed once
CY
Wd
Wd+1
When CIO 0.00 is ON, words CIO 100 and CIO 101
will shift one bit to the right, (excluding the Carry Flag
(CY)). The contents of CIO 100.00 will be shifted to
CIO 101.15.
0.00
Wd
Wd+1: CIO 101
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Wd
Wd: CIO 100
Instruction executed once

Advertisement

Table of Contents
loading

Table of Contents