KUKA Robot codes
KUKA RobotSystemBasic

KRC0957

KUKA Robot KRC0957 - COMPONENT NOT DECLARED AS ARRAY 2294

COMPONENT NOT DECLARED AS ARRAY 2294

This alarm indicates that a KRL program object referenced in the code was used with array syntax (square brackets for indexing) but was not declared as an array data type. The compiler detected an attempt to access @P1@ as an array when its declaration does not support array operations.

Common Causes

  • Variable declared as scalar type but used with array indexing syntax
  • Incorrect variable declaration missing array dimension specification
  • Attempting to index a struct or single element variable
  • Copy-paste error where array syntax was applied to non-array object
  • Using array notation on a function or module name instead of a variable

Troubleshooting Steps

  1. 1Locate the line reference in the error message and identify the object name @P1@ that triggered the alarm
  2. 2Check the declaration of @P1@ in the source code to verify it is declared as an array type
  3. 3If @P1@ should be an array, modify its declaration to include array dimensions (e.g., REAL array[10] instead of REAL array)
  4. 4If @P1@ should not be an array, remove the square bracket indexing syntax from where it is referenced
  5. 5Review surrounding code for similar declaration and usage mismatches
  6. 6Recompile the KRL program after corrections and verify no additional compilation errors appear

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.