KUKA Robot codes
KUKA RobotSystemBasic

KRC0961

KUKA Robot KRC0961 - COMPONENT DECLARED AS ARRAY: INDEXING EXPECTED 2298

COMPONENT DECLARED AS ARRAY: INDEXING EXPECTED 2298

This alarm indicates that a KRL program object declared as an array is being referenced without proper index notation. The compiler expects array indexing syntax (e.g., array[index]) but found a reference to the array name without brackets or index values.

Common Causes

  • Attempting to assign or access an array variable without specifying an index
  • Missing bracket notation when referencing array elements in expressions
  • Declaring a variable as an array but using it as a scalar value elsewhere in the code
  • Incorrect syntax when passing array elements as function parameters
  • Copy-paste errors where array indexing was omitted from multiple references

Troubleshooting Steps

  1. 1Locate the error line number in the KRL source file indicated in the alarm details
  2. 2Identify the array variable name mentioned in the alarm message (@P1@)
  3. 3Add proper array index notation [n] to all references of the array variable
  4. 4Verify the index value is within the valid range of the array declaration
  5. 5Check function calls to ensure array elements are passed with correct indexing syntax
  6. 6Recompile the KRL program to confirm 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.