Omron SYSMAC CS/CJ Series Programming Manual page 112

Table of Contents

Advertisement

Data Shift Instructions
Instruction
Symbol/Operand
Mnemonic
Code
ROTATE RIGHT
RRNC(575)
WITHOUT
CARRY
RRNC
@RRNC
Wd: Word
575
DOUBLE
RRNL(577)
ROTATE RIGHT
WITHOUT
CARRY
RRNL
Wd: Word
@RRNL
577
ONE DIGIT SHIFT
SLD(074)
LEFT
SLD
@SLD
074
St: Starting word
E: End word
ONE DIGIT SHIFT
SRD(075)
RIGHT
SRD
@SRD
075
St: Starting word
E: End word
SHIFT N-BIT
DATA LEFT
NSFL(578)
NSFL
@NSFL
578
D: Beginning
word for shift
C: Beginning bit
N: Shift data
length
SHIFT N-BIT
NSFR(579)
DATA RIGHT
NSFR
@NSFR
579
D: Beginning
word for shift
C: Beginning bit
N: Shift data
length
Shifts all Wd bits one bit to the right 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).
Wd
Wd
Shifts all Wd and Wd +1 bits one bit to the right 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).
Wd
Shifts data by one digit (4 bits) to the left.
St
Lost
E
Shifts data by one digit (4 bits) to the right.
St
E
Shifts the specified number of bits to the left.
D
C
N
Shifts the specified number of bits to the right.
D
C
N
Function
Wd+1
E
E
Shifts one bit to the left
N–1 bit
N–1 bit
Shifts one bit to the right
N–1 bit
N–1 bit
Section 3-7
Output
Required
Output
Required
Wd
Output
Required
St
Output
Required
St
Lost
Output
Required
Output
Required
Location
Execution
condition
91

Advertisement

Table of Contents
loading

Table of Contents