Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 236

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

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
Jump instruction
Input condition for
jump
Number used
Instruction processing
at jump
Execution time for
jump
Instruction output at
jump
Processing in block
program area
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).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
JMP-JME
CJP-JME
OFF
ON
Total of 1024 (256 on the CJ1M-CPU11/21)
Non-execution
None
Holds the previous status
Unconditional jump
Jump at ON
3. Instructions
CJPN-JME
JMP0-JME0
OFF
OFF
No restrictions
NOP processing
Total time is equivalent
to a NOP instruction
Jump at OFF
Not allowed
3
199

Advertisement

Table of Contents
loading

Table of Contents