Shift N-Bits Right: Nasr(057) - Omron SYSMAC CV Series Operation Manual

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

Advertisement

Shift Instructions
Precautions
Flags
Example

5-14-8 SHIFT N-BITS RIGHT: NASR(057)

Ladder Symbol
(
)
057
NASR D C
Variations
NASR(057)
Description
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 rightmost bit of the specified
word) will be set to "0" or to the status of the LSB, depending on the control word
setting.
Control Word Contents
MSB
LSB
0
Number of bits to shift (00 to 16)
Status of remaining bits
0: 0
8: Status of LSB
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 D after the shift is all zeros
N (A50008)
Same status as leftmost bit (MSB) of word D after shift.
See the example provided in 5-14-9 DOUBLE SHIFT N-BITS LEFT: NSLL(058) .
Operand Data Areas
D: Shift word
C: Control word
When the execution condition is OFF, NASR(057) is not executed. When the ex-
ecution condition is ON, NASR(057) shifts the status of the 16 bits in the speci-
fied word 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 data will not be shifted. The appropriate flags will turn ON
and OFF, however, according to data in the specified word.
. . . . .
Number of bits shifted
CIO, G, A, DM, DR, IR
CIO, G, A, T, C, #, DM, DR, IR
Wd D
CY
A5004
Section 5-14
(CVM1 V2)
169

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents