KUKA Robot codes
KUKA RobotSystemBasic

KRC0927

KUKA Robot KRC0927 - TYPE OF LOOP VARIABLE NOT EQUAL TO INT 2264

TYPE OF LOOP VARIABLE NOT EQUAL TO INT 2264

This alarm indicates a type mismatch in a loop variable declaration or usage within a KRL program. The loop variable at <object name> is not of type INT, which is required for loop control structures. This prevents the program from compiling or executing the affected loop construct.

Common Causes

  • Loop variable declared with wrong data type (REAL, BOOL, CHAR, etc. instead of INT)
  • Loop variable assigned a non-integer value before loop execution
  • Incorrect variable reference used in FOR or WHILE loop syntax
  • Type casting or conversion missing for loop counter variable
  • Copying KRL code from another language with incompatible type definitions

Troubleshooting Steps

  1. 1Open the KRL program source file and locate line number referenced in the alarm message
  2. 2Identify the loop variable name and verify its declaration uses INT data type
  3. 3Check all assignments to the loop variable before and within the loop to ensure integer values only
  4. 4If the variable is REAL or BOOL, change the declaration to INT or replace with an appropriately typed variable
  5. 5Use INT() type casting function if converting from another data type to integer for loop control
  6. 6Recompile the program after corrections and verify the alarm no longer appears

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.