Omron CJ2 - 02-2010 User Manual page 485

Cj2 cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
FOR-NEXT
FOR
512
LOOPS
BREAK LOOP
BREAK
514
FOR-NEXT
NEXT
513
LOOPS
CJ2 CPU Unit Software User's Manual
Code
Symbol/Operand
FOR(512)
N
N: Number of loops
BREAK(514)
NEXT(513)
Function
The instructions between FOR(512) and
NEXT(513) are repeated a specified number of
times. FOR(512) and NEXT(513) are used in pairs.
Repeated N times
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.
N repetitions Condition a ON
The instructions between FOR(512) and NEXT(513) are
repeated a specified number of times. FOR(512) and
NEXT(513) are used in pairs.
Appendices
Execution
Location
condition
Output
Not
required
Output
Required
Repetitions
forced to
end.
Processed as
NOP(000).
Output
Not
required
A-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents