KUKA Robot codes
KUKA RobotSystemBasic

KRC0902

KUKA Robot KRC0902 - RIGHT OPERAND NOT EQUAL TO INT, REAL, CHAR, ENUM 2238

RIGHT OPERAND NOT EQUAL TO INT, REAL, CHAR, ENUM 2238

This alarm indicates a type mismatch error in KRL code where the right operand of an operation is not compatible with the expected data types (INT, REAL, CHAR, or ENUM). The compiler cannot perform the requested operation because the operand type does not match any of the allowed types for the given operator or assignment.

Common Causes

  • Attempting to assign or operate on a BOOL, AXIS, or FRAME type where INT, REAL, CHAR, or ENUM is required
  • Using an incompatible array or structure type as the right operand in an expression
  • Mixing structured data types (ROBAXTP, PTP_PARAM, etc.) with primitive data type operations
  • Passing an incorrect parameter type to a function that expects INT, REAL, CHAR, or ENUM
  • Attempting arithmetic or comparison operations on non-numeric custom data types

Troubleshooting Steps

  1. 1Review the line of code indicated in the alarm message and identify the right operand of the operation
  2. 2Check the declared data type of the variable or expression used as the right operand
  3. 3Verify that the right operand type matches one of the allowed types: INT, REAL, CHAR, or ENUM
  4. 4If using a structure or custom type, extract the specific field that has a compatible primitive type
  5. 5Apply explicit type conversion using casting functions (REAL(), INT(), etc.) if appropriate for the operation
  6. 6Compare the function signature or operator definition to ensure correct parameter types are being passed

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.