Jump And Jump End -- Jmp(04) And Jme - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Example
00000
00001
00002
00003
00004
00100
00005
7-12 JUMP and JUMP END - - JMP(04) and JME(05)
Limitations
Description
The following diagram shows IL(02) being used twice with one ILC(03).
IL(02)
TIM 000
IL(02)
CP
CNT
001
R
IR 010
01002
ILC(03)
When the execution condition for the first IL(02) is OFF, TIM 000 will be reset to
1.5 s, CNT 001 will not be changed, and 01002 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 000 will be executed according to the status of 00001,
CNT 001 will not be changed, and 01002 will be turned OFF. When the execution
conditions for both the IL(02) are ON, the program will execute as written.
Ladder Symbols
JMP(04) N
JME(05) N
Jump numbers 01 through 49 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 pro-
gram is executed consecutively 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 49, jumps, when made, will go
immediately to JME(05) with the same jump number without executing any
instructions in between. The status of timers, counters, bits used in OUT, bits
used in OUT NOT, and all other status bits controlled by the instructions between
JMP(04) and JMP(05) will not be changed. Each of these jump numbers can be
used to define only one jump. Because all of instructions between JMP(04) and
JME(05) are skipped, jump numbers 01 through 49 can be used to reduce cycle
time.
Address Instruction
00000
LD
00001
IL(02)
00002
LD
#0015
00003
TIM
1.5 s
00004
LD
00005
IL(02)
00006
LD
00007
AND NOT
00008
LD
00009
LD
00010
CNT
00011
LD
00012
OUT
00013
ILC(03)
Section
7-12
Operands
00000
00001
000
#
0015
00002
00003
00004
00100
00100
001
010
00005
01002
Definer Values
N: Jump number
#
N: Jump number
#

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents