ID 20225

Unexpected ENDSWITCH. Does not match the current control block.

Description

A control block statement was programmed in incomplete syntax. A $ENDSWITCH can only be programmed in combination with $SWITCH.

Example:

Wrong:
N10   G00 X0 Y0 Z0
N20   P1=5
N30   $ENDSWITCH
:
N1000 M30
Correct:
N10   G00 X0 Y0 Z0
N20   P1=5
N30   $SWITCH P1
:
N40   $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 the $SWITCH instruction or delete the $ENDSWITCH.

Error type

Abort NC program processing.