203
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Sequence Control Instructions
3
JMP0/JME0
Hint
• In the case of a JMP, CJP, or CJPN instruction, the program jumps directly to the JME instruction
when the jump condition is satisfied. An instruction is not executed between JMP/CJP/CJPN and
JME, and thus instruction execution time is not needed in that interval. Therefore, cycle time is
reduced.
By contrast, in the case of a JMP0 instruction, when the jump condition is satisfied, NOP processing
(non-functional processing) is executed between JMP0 and JME0. During that interval, a processing
time equivalent to a NOP instruction is required, and thus the cycle time will not be reduced.
• Functional comparison of jump instructions
Precautions
• Unlike JMP(004), CJP(510), and CJPN(511) which jump directly to the first JME(005) instruction in
the program, all of the instructions between JMP0(515) and JME0(516) are executed as NOP(000).
The execution time of the jumped instructions will be reduced, but not eliminated. The jumped
instructions themselves are not executed and their outputs (bits and words) maintain their previous
status.
• Multiple pairs of JMP0(515) and JME0(516) instructions can be used in the program, but the pairs
cannot be nested.
• JMP0(515) and JME0(516) cannot be used in block programs.
• JMP0(515) and JME0(516) pairs must be in the same tasks because jumps between tasks are not
allowed.
• 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 JMP0(515) and JME0(516).
When DIFU(013), DIFD(014), or a differentiated instruction is executed in an jumped section
immediately after the execution condition for the JMP0(515) 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 JMP0(515) went
OFF).
Jump instruction JMP-JME CJP-JME CJPN-JME JMP0-JME0
Input condition for
jump
OFF ON OFF OFF
Number used Total of 1024 (256 on the CJ1M-CPU11/21) No restrictions
Instruction processing
at jump
Non-execution NOP processing
Execution time for
jump
None Total time is equivalent
to a NOP instruction
Instruction output at
jump
Holds the previous status
Processing in block
program area
Unconditional jump Jump at ON Jump at OFF Not allowed