KUKA Robot codes
KUKA RobotSystemBasic

KRC0823

KUKA Robot KRC0823 - JUMP TO LABEL NOT ALLOWED 2159

JUMP TO LABEL NOT ALLOWED 2159

This alarm indicates that a JUMP or GOTO statement in the KRL program is attempting to branch to a label that is not permitted in the current program context. The compiler or runtime environment has detected an invalid jump destination, typically due to scope violations or attempting to jump across program boundaries.

Common Causes

  • Attempting to jump to a label defined in a different function or module
  • Label is located in a scope that is not accessible from the current code location
  • Jumping into or out of a loop structure (FOR, WHILE, REPEAT) is not allowed
  • Label does not exist or has been deleted but the JUMP statement still references it
  • Attempting to jump across interrupt handler or synchronized block boundaries

Troubleshooting Steps

  1. 1Review the KRL source code and locate all JUMP and GOTO statements near line 2159
  2. 2Verify that the target label exists and is defined in the same scope as the jump instruction
  3. 3Ensure the label is not inside a restricted scope such as a function parameter block or interrupt handler
  4. 4Check if the jump is attempting to cross loop boundaries or program structure limits
  5. 5Refactor the code logic to avoid problematic jumps, using structured control flow (IF/ELSE, WHILE, FOR) instead
  6. 6Recompile the program after making corrections and verify syntax with the KUKA KRC development environment

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.