Double Shift N-Bits Right: Nsrl(059) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Shift Instructions

5-14-10 DOUBLE SHIFT N-BITS RIGHT: NSRL(059)

Ladder Symbol
(
)
059
NSRL D C
Variations
NSRL(059)
Description
Precautions
Flags
Example
0000
00
172
Operand Data Areas
D: Shift word address
C: Control word
When the execution condition is OFF, NSRL(059) is not executed. When the ex-
ecution condition is ON, NSRL(059) shifts the status of the 32 bits in the speci-
fied words to the right the specified number of bits.
The number of bits to shift is set in the two rightmost digits of the control word. If
the number is "0," the word data will not be shifted. The appropriate flags will turn
ON and OFF, however, according to data in the specified word.
Wd D+1
. . . .
. . . .
Number of bits shifted
After the bits have been shifted, the status of the bits from which data was shifted
(i.e., the number of bits shifted, beginning with the leftmost bit of the specified
word) will be set to "0" or to the status of the MSB, depending on the control word
setting.
Control Word Contents
MSB
LSB
0
Number of bits to shift (00 to 32)
Status of remaining bits
0: 0
8: Status of MSB
Refer to page 115 for general precautions on operand data areas.
ER (A50003):
Number of bits to shift is out of range.
Content of a*DM word is not BCD when set for BCD.
CY (A50004):
"1" has been shifted to CY.
EQ (A50006)
Content of word D and D+1 after the shift is all zeros.
N (A50008)
Same as leftmost bit (MSB) of word D+1 after shift.
When CIO 000000 is ON in the following example, the 32 bits in D00200 and
D00201 are shifted three bits to the right. The status of the three leftmost bits of
D00201 are set to "0."
(059)
NSLL D00200
#8003
CIO, G, A, DM,
CIO, G, A, T, C, #, DM,
Wd D
CY
A5004
Address Instruction
00000
LD
00001
NSLL(059)
Section 5-14
(CVM1 V2)
Operands
000000
D00200
#8003

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents