2-55
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Sequence Control Instructions
2
JMP/CJP/JME
Sample program
When there are two or more JME(005) instruc-
tions with the same jump number, only the
instruction with the lower address will be valid.
The JME(005) with the higher program
address will be ignored.
CJP(510) jumps to the first JME(005) when the
execution condition is ON and JMP(004) jumps
to the first JME(005) when the execution condi-
tion is OFF.
When JME(005) precedes JMP(004)/CJP(510) in the program, the instructions between JME(005)
and JMP(004)/CJP(510) will be executed repeatedly as long as the execution condition for
JMP(004)/CJP(510) is OFF. A Cycle Time Too Long error will occur if the execution condition is not
turned ON or END(001) is not executed within the maximum cycle time.
The operation of DIFU(013), DIFD(014), and differentiated instructions is not dependent solely on the
status of the execution condition when they are programmed between JMP(004)/CJP(510) and
JME(005). When DIFU(013), DIFD(014), or a differentiated instruction is executed in an jumped sec-
tion immediately after the execution condition for the JMP(004)/CJP(510) has gone ON, the execution
condition for the DIFU(013), DIFD(014), or differentiated instruction will be compared to the execution
condition that existed before the jump became effective (i.e., before the execution condition for
JMP(004) went OFF).
When CIO 0.00 is OFF in the right example,
the instructions between JMP(004) and
JME(005) are not executed and the outputs
maintain their previous status.
When CIO 0.00 is ON in the right example,
the instructions between JMP(004) and
JME(005) are executed normally.
Program section A is executed
repeatedly as long as
execution condition a is OFF.
a
A
JMP
N
JME
N
CIO 0.00
ON
CIO 0.00
OFF
&1
0.00
TIM
SET
CNT
JME
&1
JMP
&1
Normal
execution
Instructions
not executed.
(Outputs
remain
unchanged.)