KUKA Robot codes
KUKA RobotSystemBasic

KRC0959

KUKA Robot KRC0959 - ARRAY COMPONENTS CANNOT BE INDEXED 2296

ARRAY COMPONENTS CANNOT BE INDEXED 2296

This alarm occurs when a KRL program attempts to index an array component that cannot be indexed, typically when trying to access a non-array data type as if it were an array using bracket notation. The operation fails because the object at @P1@ does not support array indexing or the indexing syntax is incorrect for the declared data type.

Common Causes

  • Attempting to index a scalar variable or non-array data type (INT, REAL, BOOL, etc.) as an array
  • Incorrect array declaration or data structure definition in the KRL program
  • Mismatched brackets or parentheses when accessing array elements
  • Using array indexing on a structure member that is not an array type
  • Trying to index a function return value that is not an array-type object

Troubleshooting Steps

  1. 1Review the KRL program source code around @P1@ to identify the variable or object being indexed
  2. 2Verify the data type declaration of the object being indexed using the variable declaration syntax
  3. 3Confirm that the object is declared as an array type (e.g., REAL[] or INT[]) rather than a scalar type
  4. 4Check the indexing syntax for correct bracket placement and ensure brackets are used only on array-type objects
  5. 5Correct the program logic to either convert the object to an array type or remove the indexing operation
  6. 6Recompile and test the KRL program to verify the syntax error 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.