KUKA Robot codes
KUKA RobotSystemBasic

KRC0895

KUKA Robot KRC0895 - LEFT OPERAND NOT EQUAL TO INT, CHAR 2231

LEFT OPERAND NOT EQUAL TO INT, CHAR 2231

This alarm indicates a type mismatch in the KRL program where the left operand of an operation at character position 2231 is not of INT or CHAR data type as expected. The compiler or runtime environment encountered an incompatible data type when evaluating an expression or assignment that requires an integer or character operand.

Common Causes

  • Left operand is REAL, BOOL, or another non-INT/CHAR type when INT/CHAR is required
  • Variable declaration mismatch where a different type was assigned than the operation expects
  • Incorrect casting or type conversion in the expression at the specified character position
  • Using a STRUCT, ARRAY, or custom object type where a primitive INT or CHAR is required
  • Copy-paste error or refactoring that changed variable types without updating dependent operations

Troubleshooting Steps

  1. 1Locate character position 2231 in the KRL source file to identify the exact line and expression causing the error
  2. 2Verify the data type of the left operand variable using the variable declaration or inspection tools
  3. 3Check the operation being performed and confirm it is compatible with the operand's actual data type
  4. 4If necessary, explicitly cast the left operand to INT or CHAR using appropriate KRL conversion functions (INT(), CHAR())
  5. 5Review recent changes to variable declarations or type definitions that may have caused the mismatch
  6. 6Recompile the KRL program and verify the alarm is resolved; if persistent, create a minimal test case to isolate the issue

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.