Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-54
CP1E CPU Unit Instructions Reference Manual(W483)
Function
Hint
Because all of instructions between JMP(004)/CJP(510) and JME(005) are skipped when the execu-
tion condition for JMP(004) is OFF, the cycle time is reduced by the total execution time of the
skipped instructions. In contrast, processing time equivalent to NOP(000) processing is required for
instructions between JMP0(515) and JME0(516), so the cycle time is not reduced as much with those
jump instructions.
The following table compares the various jump instructions.
Precautions
JMP
When the execution condition for JMP(004) is
ON, no jump is made and the program is exe-
cuted consecutively as written.
When the execution condition for JMP(004) is
OFF, program execution jumps directly to the
first JME(005) in the program with the same
jump number. The instructions between
JMP(004) and JME(005) are not executed, so
the status of outputs between JMP(004) and
JME(005) is maintained. In block programs, the
instructions between JMP(004) and JME(005)
are skipped regardless of the status of the exe-
cution condition.
CJP
When the execution condi-
tion for CJP(510) is OFF, no
jump is made and the pro-
gram is executed consecu-
tively as written.
When the execution condi-
tion for CJP(510) is ON, pro-
gram execution jumps
directly to the first JME(005)
in the program with the
same jump number.
Item
JMP(004)
JME(005)
CJP(510)
JME(005)
Execution condition for jump OFF ON
Number allowed 128
Instruction processing when
jumped
Not executed.
Instruction execution time when
jumped
None
Status of outputs (bits and words)
when jumped
Bits and words maintain their previous status.
Status of operating timers when
jumped
Operating timers continue timing.
Processing in block programs Always jump. Jump when ON.
All of the outputs (bits and words) in jumped instructions retain their previous status. Operating timers
(TIM, TIMX(550), TIMH(015), TIMHX(551), TMHH(540) and TMHHX(552)) continue timing because
the PVs are updated even when the timer instruction is not being executed.
Instructions in this
section are not executed
and output status is
maintained. The
instruction execution time
for these instructions is
eliminated.
Instructions
jumped
Execution condition
ON OFF
Instructions
executed
JMP
N
JME
N
Instructions in this section are not executed
and output status is maintained. The
instruction execution time for these
instructions is eliminated.
Instructions
jumped
Execution
condition ON
Execution
condition OFF
Instructions
executed
CJP
N
JME
N