ID 20243

Unexpected BREAK. No control blocks valid or open.

Description

A control block statement was programmed in incomplete syntax. A $BREAK can only be programmed within a loop or $SWITCH construct.

Example:

Wrong:

N10   G00 X0 Y0 Z0

N20   $BREAK

:

N1000 M30

Correct:

N10   G00 X0 Y0 Z0 P1=1

N20   $SWITCH P1

N30     $CASE 2

N35       G01 X100 F10000

N40       $BREAK

:

N100  $ENDSWITCH

:

N1000 M30

For further information see [PROG// Section: Switch branching]

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify the program flow sequence. Insert a loop or $SWITCH construct or delete the $BREAK.

Error type

1, Error message from NC program.