KUKA Robot codes
KUKA RobotSystemBasic

KRC0877

KUKA Robot KRC0877 - LABEL NOT DECLARED LOCALLY 2213

LABEL NOT DECLARED LOCALLY 2213

This alarm indicates that a label referenced in the KRL program has not been declared or defined in the local scope of the current module or function. The compiler cannot locate the label definition that is being called or referenced, which prevents successful program compilation or execution.

Common Causes

  • Label referenced in GOTO or CALL statement does not exist in the current program scope
  • Label name is misspelled or contains incorrect syntax in the reference statement
  • Label was declared in a different module or function but referenced without proper module prefix
  • Label declaration was accidentally deleted or commented out during program editing
  • Label is defined in an included file that was not properly loaded or has incorrect syntax

Troubleshooting Steps

  1. 1Review the KRL source code and locate the line number where the undefined label is being referenced
  2. 2Search the entire program file for the label definition to verify it exists and matches the reference exactly
  3. 3Check label spelling and ensure it follows KUKA KRL naming conventions (case-sensitive)
  4. 4If the label should be in another module, verify proper module qualification syntax is used in the reference
  5. 5Verify all included files or dependencies are properly declared and accessible in the program structure
  6. 6Recompile the program after making corrections to ensure the label is now properly declared in the local scope

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.