Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 234

Table of Contents

Advertisement

3. Instructions
Function
CJP
When the execution condition for
CJP(510) is OFF, no jump is made
and the program is executed con-
secutively as written.
When the execution condition for
CJP(510) is ON, program execu-
tion jumps directly to the first
JME(005) in the program with the
same jump number.
CJPN
When the execution condition for
CJPN(511) is ON, no jump is made
and the program is executed con-
secutively as written.
When the execution condition for
CJPN(511) is OFF, program execu-
tion jumps directly to the first
JME(005) in the program with the
same jump number.
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
• CJP(510) jumps to the first JME(005) when the execution condition is ON and CJPN(511) jumps to
the first JME(005) when the execution condition is OFF.
• 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 be-cause
the PVs are updated even when the timer instruction is not being executed.
Error will occur in the present value of any active TIMU(541), TIMUX(556), TMUH(544), TMUHX(557)
instruction when the instruction is jumped.
• When there are two or more JME(005) instructions 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.
196
Execution
condition OFF
Instructions
executed
Execution
condition ON
Instructions
executed
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
Execution
condition ON
Instructions
jumped
Instructions in this section are not
executed and output status is
maintained. The instruction execution
time for these instructions is eliminated.
Execution
condition OFF
Instructions
jumped
Instructions in this section are not
executed and output status is
maintained. The instruction execution
time for these instructions is eliminated.
CJPN-JME
OFF
Jump at OFF
CS/CJ/NSJ Series Instructions Reference Manual (W474)
JMP0-JME0
OFF
No restrictions
NOP processing
Total time is equivalent
to a NOP instruction
Not allowed

Advertisement

Table of Contents
loading

Table of Contents