KUKA Robot codes
KUKA RobotSystemBasic

KRC0900

KUKA Robot KRC0900 - BOTH OPERANDS NOT EQUAL TO BOOL 2236

BOTH OPERANDS NOT EQUAL TO BOOL 2236

This alarm occurs during KRL program compilation or execution when a comparison or logical operation attempts to use non-boolean operands where boolean values are required. The system detected that at least one operand in a boolean expression is not of the BOOL data type, violating type safety rules.

Common Causes

  • Comparing or operating on INT, REAL, or other non-boolean variables in a boolean context without proper type casting
  • Using assignment or comparison operators with mismatched data types where both operands must be BOOL
  • Attempting logical operations (AND, OR, NOT) on variables declared as incompatible data types
  • Missing or incorrect type conversion function calls when working with boolean expressions
  • Incorrect variable declaration or initialization in the KRL program object

Troubleshooting Steps

  1. 1Review the KRL source code at the line number indicated in the error message to identify the problematic boolean expression
  2. 2Verify that all variables used in boolean operations are explicitly declared with BOOL data type
  3. 3Check for implicit type conversions and add explicit casting functions (e.g., BOOL(), INT_TO_BOOL) where necessary
  4. 4Ensure comparison operators are only used between compatible data types and that the result is assigned to BOOL variables
  5. 5Recompile the KRL program after correcting the data type mismatches
  6. 6If the issue persists, consult the KUKA KRL reference guide for proper boolean syntax and consider creating a test program to validate the corrected logic

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.