Double Shift N-Bits Left: Nsll(058) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Shift Instructions
Precautions
Flags
Example

5-14-9 DOUBLE SHIFT N-BITS LEFT: NSLL(058)

Ladder Symbol
(
)
058
NSLL D C
Variations
↑NSLL(058)
Description
158
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
0
Refer to page 101 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 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-10 DOUBLE SHIFT N-BITS RIGHT:
NSRL(059).
Operand Data Areas
D: Beginning shift word CIO, G, A, DM
C: Control word
When the execution condition is OFF, NSLL(058) is not executed. When the ex-
ecution condition is ON, NSLL(058) shifts the status of the 32 bits in the specified
words to the left 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.
A5004
CY
LSB
Number of bits to shift (00 to 16)
Status of remaining bits
0: 0
8: Status of MSB
CIO, G, A, T, C, #, DM
Number of bits shifted
. . . .
. . . .
Wd D+1
Section 5-14
Wd D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents