![Omron CVM1D Скачать руководство пользователя страница 157](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532157.webp)
152
Control Word
Bits 00 through 12 of C are not used. Bit 13 is the shift direction: turn bit 13 OFF to
shift the non-zero data toward E (toward higher addressed words) and ON to
shift toward St (toward lower addressed words). Bit 14 is the Shift Enable Bit:
turn bit 14 OFF to enable shift register operation according to bit 13, and ON to
disable the register. Bit 15 is the Reset Bit: the register will be reset (set to zero)
between St and E when ASFT(052) is executed with bit 15 OFF. Turn bit 15 ON
for normal operation.
15 14 13
Not used.
Shift direction
0 (OFF): Non-zero data shifted toward E
1 (ON):
Non-zero data shifted toward St
Shift Enable Bit
Reset
Content of C
Function of ASFT(052)
#4000
Shift non-zero data toward E
#6000
Shift non-zero data toward St
#8000
Reset all words to zero
St must be less than or equal to E. St and E must be in the same data area.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
The St and E words are in different areas, or St is greater
than E.
Example
The following instruction is used to shift words in an 11-word shift register
created between D 00100 and D 00110 with C=#6000. Non-zero data is shifted
towards St (D00110).
D00100
1234
1234
1234
D00101
0000
0000
2345
D00102
0000
2345
3456
D00103
2345
0000
4567
D00104
3456
3456
5678
D00105
0000
4567
6789
D00106
4567
0000
789A
D00107
5678
5678
0000
D00108
6789
6789
0000
D00109
0000
789A
0000
D00110
789A
0000
0000
Before
execution
After one
execution
After seven
executions
(052)
ASFT
#6000
D00100
D00110
0000
00
Precautions
Shift Instructions
Section 5-14
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...