KUKA Robot codes
KUKA RobotSystemBasic

KRC0911

KUKA Robot KRC0911 - BOTH SIDES OF THE VALUE ASSIGNMENT ARE NOT COMPATIBLE 2248

BOTH SIDES OF THE VALUE ASSIGNMENT ARE NOT COMPATIBLE 2248

This alarm indicates a type mismatch or incompatibility between the left and right operands of a value assignment statement in KRL code. The compiler cannot assign the right-side value to the left-side variable because their data types are incompatible or structurally different.

Common Causes

  • Attempting to assign a value of one data type to a variable of a different, non-compatible data type
  • Assigning a structure or array to a simple variable without proper casting or conversion
  • Mismatched dimensions when assigning arrays or multi-dimensional data structures
  • Using an incompatible custom data type or user-defined structure in the assignment
  • Attempting to assign a pointer or reference to a non-pointer variable or vice versa

Troubleshooting Steps

  1. 1Review the line of code containing the assignment statement and identify both the left-side variable and right-side value
  2. 2Verify the declared data type of the left-side variable in the variable declaration section
  3. 3Check the data type or return type of the right-side expression, function, or variable
  4. 4Ensure both sides of the assignment are compatible; if not, apply appropriate type casting or conversion functions
  5. 5If assigning complex structures or arrays, verify that the structure definitions and array dimensions match exactly
  6. 6Recompile the KRL program after making corrections and verify the alarm is resolved

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.