KUKA Robot codes
KUKA RobotSystemBasic

KRC0903

KUKA Robot KRC0903 - BOTH OPERANDS NOT EQUAL TO INT, REAL, CHAR, ENUM 2240

BOTH OPERANDS NOT EQUAL TO INT, REAL, CHAR, ENUM 2240

This alarm indicates a type mismatch in a KRL program operation where both operands of an expression are not compatible INT, REAL, CHAR, or ENUM data types. The operation cannot proceed because the system cannot perform the requested computation or comparison between the incompatible data types provided.

Common Causes

  • Attempting to perform arithmetic or logical operations between incompatible data types (e.g., BOOL with INT)
  • Using a STRUCT or ARRAY type in a binary operation that requires primitive data types
  • Mixing user-defined types or AXIS types with INT/REAL/CHAR/ENUM in expressions
  • Passing incorrect parameter types to functions expecting INT, REAL, CHAR, or ENUM arguments
  • Implicit type casting issues where the compiler cannot automatically convert operand types

Troubleshooting Steps

  1. 1Review the KRL source code line referenced in the alarm message to identify the problematic expression or operation
  2. 2Verify that both operands in the operation are declared with compatible types: INT, REAL, CHAR, or ENUM
  3. 3Check function/procedure declarations and ensure passed arguments match the expected parameter types
  4. 4Use explicit type conversion functions (e.g., INT(), REAL()) if type conversion is necessary
  5. 5Validate variable declarations and ensure no STRUCT, ARRAY, or custom types are being used where primitive types are required
  6. 6Recompile the KRL program after corrections and clear any cached code using the KUKA teach pendant

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.