Omron C20K Video Game Controller User Manual


 
108
When 1280 is OFF (all times but the first cycle after 0204 has changed from
OFF to ON), the jump is taken and the status of 0100 will not be changed.
I
P
R
SFT(10)
00
01
JME(05) 00
JMP(04) 00
0200
0100
DIFU(13) 1280
0201
0202
0203
0204
1280
1280
Address Instruction Operands
0000 LD 0200
0001 AND 0201
0002 LD 0202
0003 LD 0203
0004 SFT(10)
00
01
0005 LD 0204
0006 DIFU(13) 1280
0007 LD 1280
0008 JMP(04) 00
0009 LD 1280
0010 OUT 0100
0011 JME(05) 00
When a bit that is part of a shift register is used in OUT (or any other instruc-
tion that controls bit status), a syntax error will be generated during the pro-
gram check, but the program will execute properly (i.e., as written).
The following program controls the conveyor line shown below so that faulty
products detected at the sensor are pushed down a chute. To do this, the
execution condition determined by inputs from the first sensor (0001) are
stored in a shift register: ON for good products; OFF for faulty ones. Con-
veyor speed has been adjusted so that HR 003 of the shift register can be
used to activate a pusher (0500) when a faulty product reaches it, i.e., when
HR 003 turns ON, 0500 is turned ON to activate the pusher.
Example 3:
Control Action
Data Shifting Section 5-12