Omron CS1G/H-CPUxxH Instructions Manual page 225

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Sequence Control Instructions
Flags
Precautions
Example
&3
D00100
@D00200
D00200
3-5-8
BREAK LOOP: BREAK(514)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
204
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
Program FOR(512) and NEXT(513) in the same task. Execution will not be
repeated if these instructions aren't in the same task.
A jump instruction such as JMP(004) may be executed within a FOR-NEXT
loop, but do not jump beyond the FOR-NEXT loop.
The following instructions cannot be used within FOR-NEXT loops:
• Block programming instructions
• MULTIPLE JUMP and JUMP END: JMP(515) and JME(516)
• STEP DEFINE and STEP START: STEP(008)/SNXT(009)
In the following example, the looped program section transfers the content of
D00100 to the address indicated in D00200 and then increments the content
of D00200 by 1.
Repeated 3 times.
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 pro-
cessed as NOP(000) instructions.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
Not allowed
Operation
ON if more than 15 loops are nested.
OFF in all other cases.
OFF
OFF
#0000
BREAK(514)
Step program areas
Subroutines
OK
OK
Section 3-5
BREAK(514)
Not supported
Not supported
Interrupt tasks
OK

Advertisement

Table of Contents
loading

Table of Contents