Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual page 118

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
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
80
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

Advertisement

Table of Contents
loading

Table of Contents