LOOP/LEND/LEND NOT
Instruction
LOOP
LEND
Loop Control
LEND NOT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
Not allowed
*1 LOOP(809), LEND(810), and LEND(810) NOT must be used in block programming regions even within subroutines and
interrupt tasks.
Operands
Operand
B
Bit operand
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
B
OK
OK
OK
OK
*1 CJ2 CPU Units only.
Flags
Name
Error Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
---
---
---
LOOP
LOOP(809)
Block program areas
Step program areas
OK
OK
Description
T
C
DM
EM
1
1
OK
OK
OK*
OK*
Label
ER
Function
code
809
Indicates the beginning of the loop (LOOP to LEND).
Indicates the end of the loop (LOOP to LEND). LOOP to
LEND is repeated until the execution condition (when an
810
operand is not specified) or the specified bit (when an
operand is specified) turns ON.
Indicates the end of the loop (LOOP to LEND NOT). LOOP
810
to LEND NOT is repeated until the specified bit turns OFF.
Operation without an operand (operation by execution condition)
Execution condition
Operation with an operand
LEND(810)
LEND(810) NOT
Subroutines
1
OK*
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
---
---
• ON if a Loop Control Instruction is not in a block program.
• OFF in all other cases.
3. Instructions
Function
LEND (LEND NOT)
LEND(810)
B
B: Bit operand
B: Bit operand
B
SFC action or transition
Interrupt tasks
programs
1
Not allowed
OK*
Data type
Size
BOOL
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
OK
OK
OK
Operation
3
1
TR
bits
---
1061
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?