KUKA Robot codes
KUKA RobotSystemBasic

KRC0591

KUKA Robot KRC0591 - Invalid “DISTANCE” value

Invalid “DISTANCE” value

This alarm indicates that a DISTANCE parameter value specified in a motion command or program instruction exceeds the permissible range or violates the controller's validation criteria. The DISTANCE value must fall within the defined limits for the specific motion function being executed, typically ranging from a minimum threshold above zero to a maximum value based on the robot's workspace and kinematic configuration.

Common Causes

  • DISTANCE value is negative or zero when a positive value is required
  • DISTANCE value exceeds the maximum allowable distance for the robot's workspace or motion type
  • DISTANCE parameter is omitted or not properly defined in the motion instruction
  • Incorrect unit conversion applied to the DISTANCE value (mm vs. inches or other units)
  • Data type mismatch where DISTANCE is defined as a non-numeric value or incompatible variable type

Troubleshooting Steps

  1. 1Verify the DISTANCE value in the program code and cross-reference it with the robot's technical specifications for maximum reachable distance
  2. 2Confirm that the DISTANCE value is positive and greater than zero, and appropriate for the motion command being used (PTP, LIN, CIRC, etc.)
  3. 3Check the variable declaration and ensure DISTANCE is properly defined as a REAL or compatible numeric data type
  4. 4Review the program syntax to ensure DISTANCE is correctly specified with proper units and decimal notation according to KRL language requirements
  5. 5Consult the robot's workspace limits and safety parameters to ensure the DISTANCE value does not exceed kinematic or hardware constraints
  6. 6Clear the alarm, correct the DISTANCE value in the program, and re-execute the motion instruction after verifying all parameters are within acceptable ranges

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.