Omron C60K Video Game Controller User Manual


 
80
The following diagram shows IL(02) being used twice with one ILC(03).
0000 LD 0000
0001 IL(02)
0002 LD 0001
0003 TIM 11
# 0015
0004 LD 0002
0005 IL(02)
0006 LD 0003
0007 AND NOT 0004
0008 LD 0100
0009 CNT 01
10
0010 LD 0005
0011 OUT 0502
0012 ILC(03)
0000
0001
ILC(03)
IL(02)
0004
0005
0003
0002
IL(02)
0502
CP
R
CNT 01
IR 10
0100
Address Instruction Operands
TIM 11
#0015
1.5 s
When the execution condition for the first IL(02) is OFF, TIM 11 will be reset
to 1.5 s, CNT 01 will not be changed, and 0502 will be turned OFF. When the
execution condition for the first IL(02) is ON and the execution condition for
the second IL(02) is OFF, TIM 11 will be executed according to the status of
0001, CNT 01 will not be changed, and 0502 will be turned OFF. When the
execution conditions for both the IL(02) are ON, the program will execute as
written.
5-8 JUMP and JUMP END – JMP(04) and JME(05)
N: Jump number
# (00 to 08)
Ladder Symbols Definer Values
JMP(04) N
N: Jump number
# (00 to 08)
Ladder Symbols Definer Values
JME(05) N
Jump numbers 01 through 08 may be used only once in JMP(04) and once in
JME(05), i.e., each can be used to define one jump only. Jump number 00
can be used as many times as desired.
JMP(04) is always used in conjunction with JME(05) to create jumps, i.e., to
skip from one point in a ladder diagram to another point. JMP(04) defines the
point from which the jump will be made; JME(05) defines the destination of
the jump. When the execution condition for JMP(04) in ON, no jump is made
and the program is executed as written. When the execution condition for
JMP(04) is OFF, a jump is made to the JME(05) with the same jump number
and the instruction following JME(05) is executed next.
If the jump number for JMP(04) is between 01 and 08, jumps, when made,
will go immediately to JME(05) without executing any instructions in between.
The status of timers, counters, bits used in OUT, bits used in OUT NOT, and
all other status controlled by the instructions between JMP(04) and JMP(05)
Example
Limitations
Description
JUMP and JUMP END – JMP(04) and JME(05) Section 5-8