Forced termination of repeat control: BREAK
Format
BREAK
Setting data
There are no setting data.
Processing details
• Repeat control with specified count (FOR - NEXT instruction) is forced to terminate, and the program from the next block of
NEXT is executed.
• BREAK is only described within the repeat control processing block between FOR and NEXT.
Operation error
There are no operation errors.
Program example
■Program which forces to terminate the repeat control processing by FOR to NEXT when M0 or
M1 turns ON
FOR #0 = K1 TO K10
#100 = #100 + K10
IF M0 + M1
BREAK
IEND
NEXT
4 OPERATION CONTROL PROGRAMS
200
4.14 Program Control
Number of basic steps
5
Usable steps
F/FS
G