![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030281.webp)
241
Sequence Control Instructions
Section 3-5
Flags
Precautions
Program FOR(512) and NEXT(513) in the same task. Execution will not be
repeated if these instructions are not 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)
Note If a loop repeats in one cycle and a differentiated bit is used in the FOR-NEXT
loop, that bit will be always ON or always OFF within that loop.
Example
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.
3-5-10 BREAK LOOP: BREAK(514)
Purpose
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.
Ladder Symbol
Variations
Name
Label
Operation
Error Flag
ER
ON if more than 15 loops are nested.
OFF in all other cases.
Equals Flag
=
OFF
Negative Flag
N
OFF
#0000
D00200
@D00200
D00100
&3
Repeated 3 times.
BREAK(514)
Variations
Executed Each Cycle for ON Condition
BREAK(514)
Executed Once for Upward Differentiation
Not supported
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...