Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 276

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Sequence Control Instructions
Description
Precautions
Example
When the execution condition for JMP0(515) is ON, no jump is made and the
program executed consecutively as written.
When the execution condition for JMP0(515) is OFF, all instructions from
JMP0(515) to the next JME0(516) in the program are processed as
NOP(000). Unlike JMP(004), CJP(510), and CJPN(511), JMP0(515) does not
use jump numbers, so these instructions can be placed anywhere in the pro-
gram.
Execution
condition a ON
Instructions
executed
Execution
condition b ON
Instructions
executed
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 pro-
grammed 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).
When CIO 000000 is OFF in the following example, the instructions between
JMP0(515) and JME0(516) are processed as NOP(000) instructions and the
outputs maintain their previous status.
When CIO 000000 is ON in the following example, the instructions between
JMP0(515) and JME0(516) are executed normally.
Execution
condition a OFF
Instructions
jumped
Jumped instructions are processed as
NOP(000). Instruction execution times
are the same as NOP(000).
Execution
condition b OFF
Instructions
jumped
Section 3-5
237

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents