![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268279.webp)
240
Sequence Control Instructions
Section 3-5
Use BREAK(514) to escape from a FOR-NEXT loop. Several BREAK(514)
instructions (the number of levels nested) are required to escape from nested
loops. The remaining instructions in the loop after BREAK(514) are processed
as NOP(000) instructions.
Alternative Looping Methods
There are two ways to repeat a program section until a given execution condi-
tion is input.
1,2,3...
1.
FOR-NEXT Loop with BREAK
Start a FOR-NEXT loop with a maximum of N repetitions. Program
BREAK(514) within the loop with the desired execution condition. The loop
will end before N repetitions if the execution condition is input.
2.
JME(005)-JMP(004) Loop
Program a loop with JME(005) before JMP(004). The instructions between
JME(005) and JMP(004) will be executed repeatedly as long as the execu-
tion condition for JMP(004) is OFF. (A Cycle Time Too Long error will occur
if the execution condition is not turned ON or END(001) is not executed
within the maximum cycle time.)
&3
&2
1 2
&3
&2
&3
Breaks FOR-NEXT loop 2.
Breaks FOR-NEXT loop 1.
Escapes from
loop when
condition a is
ON.
Remaining
instructions are
processed as
NOP(000).
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...