Omron C20K Video Game Controller User Manual


 
109
The program is set up so that a rotary encoder (0000) controls execution of
SFT(10) through a DIFU(13), the rotary encoder is set up to turn ON and
OFF each time a product passes the first sensor. Another sensor (0002) is
used to detect faulty products in the chute so that the pusher output and HR
003 of the shift register can be reset as required.
Sensor
Chute
(0002)
(0500)
Sensor
(0001)
Rotary Encoder
(0000)
Pusher
0000 LD 0001
0001 LD 0000
0002 LD 0003
0003 SFT(10)
HR 0
HR 1
0004 LD HR 003
0005 OUT 0500
0006 LD 0002
0007 OUT NOT 0500
0008 OUT NOT HR 003
I
P
SFT(10)
HR 0
HR 1
R
0001
0000
0003
0500
HR 003
0002
HR 003
0500
Address
Instruction Operands
5-12-2 REVERSIBLE SHIFT REGISTER – SFTR(84)
C : Control word
IR, DM, HR
St : Starting word
IR, DM, HR
Ladder Symbols
Operand Data Areas
E : End word
IR, DM, HR
SFTR(84)
C
St
E
St and E must be in the same data area and St must be less than or equal to
E.
Limitations
Data Shifting Section 5-12