KUKA Robot codes
KUKA RobotSystemBasic

KRC0905

KUKA Robot KRC0905 - RIGHT OPERAND NOT EQUAL TO INT, REAL, BOOL, CHAR, ENUM 2242

RIGHT OPERAND NOT EQUAL TO INT, REAL, BOOL, CHAR, ENUM 2242

This compilation error occurs when the right operand in an expression does not match one of the expected primitive data types (INT, REAL, BOOL, CHAR, or ENUM). The compiler cannot perform the operation because the data type on the right side of the operator is incompatible with the expected type for that operation.

Common Causes

  • Using an incompatible data type on the right side of an assignment or comparison operator
  • Attempting to perform arithmetic operations with non-numeric data types
  • Passing an object or array type where a primitive scalar type is expected
  • Missing type conversion or casting between incompatible data types
  • Referencing a variable or return value with an unexpected or undeclared data type

Troubleshooting Steps

  1. 1Review the line of code indicated in the error message and identify the right operand of the operation
  2. 2Verify that the right operand's data type (INT, REAL, BOOL, CHAR, or ENUM) is compatible with the operation being performed
  3. 3Check the variable declaration to confirm it has the correct data type assigned
  4. 4Add explicit type conversion or casting if necessary to convert the right operand to an acceptable type
  5. 5Ensure all function return values and parameter types match the expected data types in your expression
  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.