ID 20221

Unexpected CASE. Does not match the current control block.

Description

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

Example:

Wrong:
N10   G00 X0 Y0 Z0 P1=47
N20   $CASE P1
:
N1000 M30
Correct:
N10   G00 X0 Y0 Z0 P1=47
N20   $SWITCH P1
N20   $CASE 1
:
N30   $ENDSWITCH
:

N1000 M30

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify the program flow sequence. Insert the $SWITCH/ $ENDSWITCH instruction or delete the $CASE.

Error type

1, Error message from NC program.