Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 1098

Table of Contents

Advertisement

3. Instructions
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)
1062
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)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?

Table of Contents