KUKA Robot codes
KUKA RobotSystemBasic

KRC0822

KUKA Robot KRC0822 - JUMP DESTINATION NOT DECLARED GLOBALLY 2158

JUMP DESTINATION NOT DECLARED GLOBALLY 2158

This alarm indicates that a JUMP or GOTO statement in the KRL program is attempting to branch to a label that has not been declared with global scope. The destination label must be accessible from the current program context, requiring it to be declared globally rather than locally within a function or block.

Common Causes

  • Label is declared locally within a function or code block instead of at global scope
  • JUMP/GOTO statement references a label from a different module without proper global declaration
  • Label name is misspelled or does not exist in the global namespace
  • Attempting to jump to a label in an included file that was not declared as public/global
  • Label scope was inadvertently limited by being placed inside a conditional block or subroutine

Troubleshooting Steps

  1. 1Verify the label referenced in the JUMP or GOTO statement exists and check the exact spelling
  2. 2Locate the label declaration in the source code and confirm it is declared at global scope level, not within a function or local block
  3. 3If the label is in an external module or include file, ensure it is declared globally and accessible to the calling program
  4. 4Use the KUKA IDE or text editor to search for all label declarations and their scope levels
  5. 5Redeclare the label at the global program level if it was previously nested, then recompile the program
  6. 6If cross-module jumps are required, verify the label is in the correct module and accessible according to program structure rules

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.