Forcefully End FOR-NEXT Repetition
Force FOR-NEXT to End: BREAK, BREAKP
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
BREAK (P) | S | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | - | - | - |
Functions
Forcefully end the FOR-NEXT instruction to repeat the operations.
The BREAK instruction can only be used while the FOR-NEXT is operated.
If not executed, the BREAK instruction cannot stop the FOR-NEXT instruction from repeating the operation for the designated number of times.
Example)
When M08 is turned OFF, the FOR-NEXT instruction will be operated.
When M08 is turned ON, the BREAK instruction will prevent the FOR-NEXT instruction from operating.