KUKA Robot codes
KUKA RobotSystemBasic

KRC0919

KUKA Robot KRC0919 - EXPRESSION NOT EQUAL TO CHAR, INT, ENUM 2256

EXPRESSION NOT EQUAL TO CHAR, INT, ENUM 2256

This alarm indicates a type mismatch in a KRL expression where the compiler expected a CHAR, INT, or ENUM data type but received an incompatible type instead. The error occurs during program compilation when an assignment or operation involves incompatible data types that cannot be implicitly converted.

Common Causes

  • Assigning a REAL or BOOL value to a variable declared as CHAR, INT, or ENUM without explicit type casting
  • Passing an incompatible data type as an argument to a function expecting CHAR, INT, or ENUM
  • Using a string literal or AXIS data type in a context requiring numeric or enumeration types
  • Attempting arithmetic or logical operations between incompatible types without proper conversion
  • Declaring or initializing variables with mismatched types in conditional statements or array indices

Troubleshooting Steps

  1. 1Locate the error in the KRL source code using the line number provided in the alarm message
  2. 2Verify the data type of the variable or expression causing the mismatch against the expected CHAR, INT, or ENUM type
  3. 3Add explicit type casting using INT(), CHAR(), or appropriate conversion functions to match the expected type
  4. 4Review function declarations and ensure all arguments passed match the required parameter types
  5. 5Check array indices and conditional expressions to confirm they use only valid numeric or enumeration types
  6. 6Recompile the program after 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.