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

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

Advertisement

Block Programming Instructions
Note
1218
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 instruc-
tion after LEND(810).
Execution condition
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), exe-
cution of the loop is repeated starting with the next instruction after
LOOP(809). If the 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) or LEND(810) NOT.
LEND R (LEND NOT B)
Note The status of the operand bit would
be reversed for LEND(810) NOT.
1. Execution inside a loop does not refresh I/O data. If I/O data must be re-
freshed during the loop, use IORF(184).
2. 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.
Execution
Execution
Execution
condition
condition
condition
ON
OFF
OFF
Loop repeated
Operand
Operand
bit ON
bit OFF
Loop repeated
Section 3-32
Execution
condition
OFF
Operand
Operand
bit OFF
bit OFF

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents