KUKA Robot codes
KUKA RobotSystemBasic

KRC0912

KUKA Robot KRC0912 - EXPRESSION NOT EQUAL TO INT, REAL 2249

EXPRESSION NOT EQUAL TO INT, REAL 2249

This alarm indicates a type mismatch error in KRL code where an expression or variable is being used in a context that requires INT or REAL data type, but the provided value does not match either of these numeric types. The compiler or runtime interpreter cannot implicitly convert the expression to the expected numeric type.

Common Causes

  • Attempting to assign a BOOL, CHAR, or STRING value to an INT or REAL variable
  • Using an incompatible data type in mathematical operations or comparisons
  • Declaring a variable with wrong type that doesn't match its intended usage
  • Passing incorrect parameter type to a function expecting INT or REAL
  • Array or structure element type mismatch in expressions

Troubleshooting Steps

  1. 1Review the KRL source code at the line number indicated in the error message
  2. 2Verify variable declarations match their intended data types (INT, REAL, BOOL, CHAR, STRING)
  3. 3Check function parameter types and ensure passed arguments are INT or REAL where required
  4. 4Use explicit type conversion functions (INT(), REAL()) if intentional type conversion is needed
  5. 5Verify array and structure element types are compatible with the mathematical or logical operations
  6. 6Recompile the KRL program after corrections and verify syntax in the KUKA IDE

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.