![Omron CVM1D Operation Manual Download Page 156](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532156.webp)
151
In the following example, CIO bits 000005, 000006, 000007, and 000008 are
used to control the bits of C used in
j
SFTR(051). The shift register is between
words 0020 and 0021, and it is controlled through bit 000009.
00000
LD
000005
00001
OUT
005012
00002
LD
000006
00003
OUT
005013
00004
LD
000007
00005
OUT
005014
00006
LD
000008
00007
OUT
005015
00008
LD
000009
00009
j
SFTR(051)
0050
0020
0021
(051)
j
SFTR
0050
0020
0021
0000
05
0000
06
0000
07
0000
08
0000
09
0050
12
0050
13
0050
14
0050
15
Direction
Status to input
Shift pulse
Reset
Address
Instruction
Operands
5-14-3 ASYNCHRONOUS SHIFT REGISTER: ASFT(052)
Variations
j
ASFT(052)
(052)
ASFT
C
St
E
Operand Data Areas
Ladder Symbol
C: Control word
CIO, G, A, DM, DR, IR
E: End word
CIO, G, A, DM
St: Starting word
CIO, G, A, DM
Description
When the execution condition is OFF, ASFT(052) is not executed. When the ex-
ecution condition is ON, ASFT(052) is used to create and control a reversible
asynchronous word shift register between St and E. This shift register reverses
the contents of adjacent words when the content of one of the words is zero and
the other is non-zero.
Bit 13 of C determines whether the non-zero is shifted toward St or toward E. By
repeating the instruction several times, all of the words with a content of zero
accumulate at the lower or higher end of the range defined by St and E. If no
words in the register contain zero or all of the words with a content of zero have
accumulated at one end of the range, nothing is shifted.
When the Reset Bit is ON, the content of every word from St to E is set to zero.
Example
Shift Instructions
Section 5-14
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...