Chapter 6 Instruction Details
XBC E-Type Main Unit 6-289 Ve r. 1
6.39.2 BREAK
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
1) BREAK
(1) Used to escape from FOR~NEXT loop.
(2) BREAK instruction can not be used solely. It shall be used only between FOR~NEXT.
If not used between FOR~NEXT, it will cause program error and make program downloading unavailable.
2) Program Example
(1) Where M0000 if On ignores 5 FOR~NEXT loops and escapes to ‘Loop End’ position to continue executing
the operation.
( )
P
00051
BREAK
M
00000
FOR 4
( )
( )
FOR
5
NEXT
( )
NEXT
( )
End of
loop