Omron C60K Video Game Controller User Manual


 
62
Work bits can be used to simplify programming when a certain combination
of conditions is repeatedly used in combination with other conditions. In the
following example, IR 0000, IR 0001, IR 0002, and IR 0003 are combined in
a logic block that stores the resulting execution condition as the status of IR
0112. IR 0112 is then combined with various other conditions to determine
output conditions for IR 0100, IR 0101, and IR 0102, i.e., to turn the outputs
allocated to these bits ON or OFF.
0000
0003
0001
0004
0002
0005
0004
0007
0006
00050112
0112
0112
0112
0100
0101
0102
Address Instruction Operands
0000 LD 0000
0001 AND NOT 0001
0002 OR 0002
0003 OR NOT 0003
0004 OUT 0112
0005 LD 0112
0006 AND 0004
0007 AND NOT 0005
0008 OUT 0100
0009 LD 0112
0010 OR NOT 0004
0011 AND 0005
0012 OUT 0101
0013 LD NOT 0112
0014 OR 0006
0015 OR 0007
0016 OUT 0102
Reducing Complex
Conditions
Work Bits (Internal Relays) Section 4-8