KUKA Robot codes
KUKA RobotSystemBasic

KRC0387

KUKA Robot KRC0387 - Specify the source and target correctly. DATA NOT ALLOWED

Specify the source and target correctly. DATA NOT ALLOWED

This alarm indicates a data type mismatch or incompatible extension assignment in the KRC program code. The controller cannot process the specified source or target data because they are not compatible with the operation being performed, typically occurring during variable assignments, function calls, or instruction parameters.

Common Causes

  • Attempting to assign data of incompatible type to a variable (e.g., assigning REAL to INT without conversion)
  • Using incompatible extensions or custom data types in source/target declarations
  • Incorrect parameter passing to built-in KUKA functions with wrong data type signatures
  • Mixing axis-specific data types (AXIS, PTP_REL) with incompatible target specifications
  • Outdated or incorrect library imports conflicting with current KRC software version

Troubleshooting Steps

  1. 1Review the program syntax at the line where alarm KRC0387 is triggered in the IDE error message
  2. 2Verify source and target data types match the operation requirements; use TYPE command to check variable declarations
  3. 3Ensure all custom extensions and user-defined data types are properly defined in the declaration section
  4. 4Convert incompatible data types explicitly using KUKA conversion functions (e.g., INT(), REAL(), CHAR())
  5. 5Check KUKA library versions and software compatibility; update or reload standard library if necessary
  6. 6Compile the program in debug mode to identify exact incompatibility location and correct the data assignment

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.