![Omron CVM1D Скачать руководство пользователя страница 163](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532163.webp)
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.
Number of bits to shift (00 to 16)
Control Word Contents
MSB
LSB
Status of remaining bits
0: 0
8: Status of MSB
0
Precautions
Refer to page 101 for general precautions on operand data areas.
Flags
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.
Example
See the example provided in 5-14-10 DOUBLE SHIFT N-BITS RIGHT:
NSRL(059).
5-14-9 DOUBLE SHIFT N-BITS LEFT: NSLL(058)
(
058
)
NSLL D C
Ladder Symbol
Variations
↑
NSLL(058)
D: Beginning shift word CIO, G, A, DM
C: Control word
CIO, G, A, T, C, #, DM
Operand Data Areas
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.
CY
Wd D
. . . .
Number of bits shifted
A5004
. . . .
Wd D+1
Description
Shift Instructions
Section 5-14
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...