Omron CJ - INSTRUCTIONS Reference Manual page 1119

Table of Contents

Advertisement

Function
Using an Execution Condition for LEND(810)
LEND(810) can be programmed either
with or without an operand bit. If an
operand bit is not specified, an execution
must be created before LEND(810)
starting with LD. If the execution condition
is OFF, execution of the loop is repeated
starting with the next instruction after
LOOP(809). If the execution condition is
ON, the loop is ended and execution
continues to the next instruction after
LEND(810).
Using a Bit Operand for LEND(810) or LEND(810) NOT
Both LEND(810) and LEND(810) NOT
can be programmed with an operand bit.
If the operand bit is OFF for LEND(810)
(or ON for LEND(810) NOT), execution of
the loop is repeated starting with the next
instruction
after
operand bit is ON for LEND(810) (or OFF
for LEND(810) NOT), the loop is ended
and execution continues to the next
instruction
after
LEND(810) NOT.
Precautions
Execution inside a loop does not refresh I/O data. If I/O data must be refreshed during the loop, use
IORF(184).
The maximum cycle time can be exceeded if loops are repeated too long. Design the program so that
the maximum cycle time is not exceeded.
• Loops cannot be nested within loops.
Incorrect:
LOOP(809)
LOOP(809)
:
:
LEND(810)
LEND(810)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
LOOP(809).
If
the
LEND(810)
or
* The status of the operand bit would be reversed for LEND(810) NOT.
Execution
condition
ON
Execution condition
Operand
bit ON
(OFF)*
LEND R (LEND NOT B)
3. Instructions
Execution
Execution
Execution
condition
condition
condition
OFF
OFF
ON
Loop repeated
Operand
Operand
Operand
bit OFF
bit ON
bit OFF
(ON)*
(OFF)*
(ON)*
Loop repeated
1081
3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents