201
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Sequence Control Instructions
3
CJP/CJPN
• When JME(005) precedes the CJP(510) or CJPN(511) instruction in the program, the instructions in-
between will be executed repeatedly as long as the execution condition remains OFF (CJP(510)) or
ON (CJPN(511)). A Cycle Time Too Long error will occur if the jump is not completed by changing the
execution condition executing END(001) within the maximum cycle time.
• When the execution condition for the CJP(510) is ON or the execution condition for CJPN(511) is
OFF, program execution will jump directly to the JME instruction without executing instructions
between CJP(510)/CJPN(511) and JME. No execution time will be required for these instructions and
the cycle time will thus be reduced.
• In the block program area, the program will jump when the input condition prior to the CJP (CJPN)
instruction is ON (OFF).
• When a CJP(510) or CJPN(511) instruction is programmed in a task, there must be a JME(005) with
the same jump number because jumps between tasks are not allowed. An error will occur if a
corresponding JME(005) instruction is not programmed in the same task.
• 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 in a jumped program section. When
DIFU(013), DIFD(014), or a differentiated instruction is executed in an jumped section immediately
after the execution condition for the CJP(510) has gone OFF (ON for CJPN(511)), 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.
Example Programming
When CIO 0.00 is ON in the right example, the
instructions between CJP(510) and JME(005) are not
executed and the outputs maintain their previous
status.
When CIO 0.00 is OFF in the right example, the
instructions between CJP(510) and JME(005) are
executed normally.
Note For CJPN(511), the ON/OFF status of CIO 0.00
would be reversed.
CIO 0.00
OFF
CIO 0.00
ON
&1
&1
0.00
Normal
execution
Instructions
not executed.
(Outputs
remain
unchanged.)