Skip to main content

Loop Exit

Instruction Parameters​

Supported PLC Series​

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S
✓✓✓✓✓✓✓✓✓

Supported Data Registers​

MXYKLFTCSZRQD@DConstant
---------------

Supported Flags​

FlagBitSupport
ErrorF11.0-
ZeroF11.1-
CarryF11.2-

Number of Steps​

Steps
1

Notice​

Instruction Behavior

The BREAK and BREAKP instructions behave as follows:

  • The BREAK and BREAKP instructions can only be used between the FOR ~ NEXT instructions.
  • When the BREAK and BREAKP instructions execute, the loop between the FOR ~ NEXT instructions end and the next step is executed.
  • When the BREAK and BREAKP instructions execute, steps located between the FOR ~ NEXT instructions operate, but steps between the BREAK or BREAKP and the NEXT instruction do NOT operate.
  • Multiple BREAK or BREAKP instructions can be located between a FOR ~ NEXT instruction block.
  • The BREAK and BREAKP instructions can be located anywhere between the nesting of the FOR ~ NEXT instructions.

Examples​