5 - 159
5 OPERATION CONTROL PROGRAMS
F/FS G
5.17.4 Forced termination of repeat control: BREAK
Format BREAK Number of basic steps 3
[Usable data]
Setting
data
Usable Data
Bit device
Word device Constant
Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
Coasting
timer
16-bit
integer
type (K/H)
32-bit
integer type
(K/H, L)
64-bit
floating
point
type (K)
(S) — — — — — — — — — — —
: Usable
[Setting data]
There are no setting data.
[Functions]
(1) Repeat control with specified count (FOR - NEXT instruction) is forced to
terminate, and the program from the next block of NEXT is executed.
(2) BREAK is only described within the repeat control processing block between FOR
and NEXT.
[Errors]
(1) There are no operation errors.
[Program examples]
(1) 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