Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual page 122

Programmable controllers
Table of Contents

Advertisement

Sequence Control Instructions
Instruction
Symbol/Operand
Mnemonic
Code
FOR-NEXT
FOR(512)
LOOPS
FOR
512
N: Number of
loops
BREAK LOOP
BREAK(514)
BREAK
514
FOR-NEXT
NEXT(513)
LOOPS
NEXT
513
82
The instructions between FOR(512) and NEXT(513) are repeated a
specified number of times. FOR(512) and NEXT(513) are used in
N
pairs.
Repeated program section
Programmed in a FOR-NEXT loop to cancel the execution of the loop
for a given execution condition. The remaining instructions in the loop
are processed as NOP(000) instructions.
The instructions between FOR(512) and NEXT(513) are repeated a
specified number of times. FOR(512) and NEXT(513) are used in
pairs.
Function
Repeated N times
Condition a ON
N repetitions
Repetitions
forced to end.
Processed as
NOP(000).
Section 3-3
Location
Execution condition
Output
Not required
Output
Required
Output
Not required

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - PROGRAMMING MANUAL 12-2009 and is the answer not in the manual?

Table of Contents