EasyManua.ls Logo

Omron SYSMAC CV Series - JUMP and JUMP END: JMP(004) and JME; JUMP and JUMP END: JMP(004) and JME(005)

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
136
The following diagram shows IL(002) being used twice with one ILC(003).
00000 LD 000000
00001 IL(002)
00002 LD 000001
00003 T00511
#0015
00004 LD 000002
00005 IL(002)
00006 LD 000003
00007 AND NOT 000004
00008 LD 000100
00009 C00001
0010
00010 LD 000005
00011 OUT 000502
00012 ILC(003)
1.5 s
SV in
CIO 0010
Address Instruction Operands
0000
00
(002)
IL
TIM 0511 #0015
0000
01
(002)
IL
0000
02
0000
03
CNT 0001 0010
0000
04
0000
05
(003)
ILC
0005
02
0001
00
CP
R
When the execution condition for the first IL(002) is OFF, T0511 will be reset to
1.5 s, C0001 will not be changed, and 000502 will be turned OFF. When the
execution condition for the first IL(002) is ON and the execution condition for the
second IL(002) is OFF, T0511 will be executed according to the status of
000001, C0001 will not be changed, and 000502 will be turned OFF. When the
execution conditions for both the IL(002) are ON, the program will execute as
written.
5-9 JUMP and JUMP END: JMP(004) and JME(005)
JUMP: JMP(004)
(004)
JMP N
N: Jump number CIO, G, A, T, C, #, DM, DR, IR
Operand Data AreaLadder Symbol
JUMP END: JME(005)
(005)
JME N
N: Jump number #
Operand Data AreaLadder Symbol
Description JMP(004) is always used in conjunction with JME(005) to create jumps, i.e., to
skip from one point in a ladder diagram to another point. JMP(004) defines the
point from which the jump will be made; JME(005) defines the destination of the
jump. When the execution condition for JMP(004) is ON, no jump is made and
the program is executed consecutively as written.
When the execution condition for JMP(004) is OFF, program execution will go
immediately to the first JME(005) in the program with the same jump number
without executing any instructions in between (See
JUMP 0000
, below, for ex-
ception). The status of timers, counters, bits used in OUT, bits used in OUT NOT,
and all other status controlled by the instructions between JMP(004) and
JME(005) will not be changed, except for TIM and TIMH(015), which continue
counting. Because all of instructions between JMP(004) and JME(005) are
skipped, jumps can be used to reduce cycle time.
Example
JUMP and JUMP END: JMP(004) and JME(005) Section 5-9

Table of Contents

Related product manuals