Special offers from our partners!
Find Replacement BBQ Parts for 20,308 Models. Repair your BBQ today.
7-109
BREAK(P)
1
2
3
4
6
6
7
8
7.6 Structure creation instructions
7.6.2 Forced end of FOR to NEXT instruction loop (BREAK(P))
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The BREAK instruction is used in a case other than with the FOR to NEXT instruction
loop. (Error code: 4203)
• The jump destination for the pointer designated by Pn does not exist.
(Error code: 4210)
• The pointer of another program file is designated for Pn. (Error code: 4210)
Program Example
(1) The following program forces the FOR to NEXT loop to end when the value of D0 reaches
30 (when the FOR to NEXT loop has been executed 30 times).
[Ladder Mode] [List Mode]
Remark
The value 71 is stored at D1 when the BREAK instruction is executed.
Step
Instruction
Device