Omron SYSMAC CS/CJ Series Programming Manual page 98

Table of Contents

Advertisement

Sequence Control Instructions
Instruction
Symbol/Operand
Mnemonic
Code
MULTIPLE JUMP
JMP0(515)
JMP0
515
MULTIPLE JUMP
JME0(516)
END
JME0
516
FOR-NEXT
FOR(512)
LOOPS
FOR
512
N: Number of
loops
BREAK LOOP
BREAK(514)
BREAK
514
FOR-NEXT
NEXT(513)
LOOPS
NEXT
513
When the execution condition for JMP0(515) is OFF, all instructions
from JMP0(515) to the next JME0(516) in the program are processed
as NOP(000). Use JMP0(515) and JME0(516) in pairs. There is no
limit on the number of pairs that can be used in the program.
Execution
condition a ON
Instructions
executed
Execution
condition b ON
Instructions
executed
When the execution condition for JMP0(515) is OFF, all instructions from
JMP0(515) to the next JME0(516) in the program are processed as NOP(000).
Use JMP0(515) and JME0(516) in pairs. There is no limit on the number of
pairs that can be used in the program.
The instructions between FOR(512) and NEXT(513) are repeated a
specified number of times. FOR(512) and NEXT(513) are used in
pairs.
N
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
Execution
condition a OFF
Instructions
jumped
Jumped instructions
are processed as
NOP(000). Instruction
Execution
execution times are
condition b OFF
the same as
NOP(000).
Instructions
jumped
Repeated N times
Condition a ON
N repetitions
Repetitions
forced to end.
Processed as
NOP(000).
Section 3-3
Location
Execution
condition
Output
Required
Output
Not required
Output
Not required
Output
Required
Output
Not required
77

Advertisement

Table of Contents
loading

Table of Contents