KUKA Robot codes
KUKA RobotSystemBasic

KRC0817

KUKA Robot KRC0817 - “CASE”/“DEFAULT” AFTER “DEFAULT” 2153

“CASE”/“DEFAULT” AFTER “DEFAULT” 2153

This alarm indicates a syntax error in a KRL program where a CASE/DEFAULT statement structure is malformed, specifically when a DEFAULT clause appears after another DEFAULT clause in the same SWITCH statement. The KRL compiler detected duplicate DEFAULT blocks which is not permitted in switch control structures.

Common Causes

  • Multiple DEFAULT clauses defined in a single SWITCH statement
  • Incorrect nesting or indentation of CASE/DEFAULT blocks
  • Copy-paste error creating duplicate DEFAULT statements
  • Missing or misplaced END statement before second DEFAULT clause
  • Accidentally leaving old DEFAULT block while adding new error handling logic

Troubleshooting Steps

  1. 1Open the KRL source file mentioned in the alarm and locate line 2153
  2. 2Review the SWITCH statement structure and identify all DEFAULT clauses
  3. 3Remove or merge duplicate DEFAULT blocks - only one DEFAULT clause is allowed per SWITCH statement
  4. 4Verify proper nesting by checking matching CASE, DEFAULT, and END statements
  5. 5Use the KRL editor's syntax highlighting to identify bracket/block structure errors
  6. 6Recompile the program and verify the alarm clears after correcting the syntax error

Seeing Multiple Alarms?

Seeing another alarm with this one? Enter the code.

Get machine-aware diagnosis

AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.

Start free

Was this guide helpful?

Always verify with your machine manual or a certified technician before performing service procedures.