KUKA Robot codes
KUKA RobotSystemBasic

KRC0679

KUKA Robot KRC0679 - INDEX CANNOT BE CHANGED 2015

INDEX CANNOT BE CHANGED 2015

This alarm occurs when an attempt is made to modify the index of an array or collection object during program execution, which is not permitted in the current context. The index value cannot be reassigned or changed after the object has been initialized with its original index parameters.

Common Causes

  • Attempting to reassign or modify an array index variable after initial declaration
  • Using an indexed object in a context where index modification is restricted by KRL scope rules
  • Trying to change array dimension indices in a function or loop where the index is read-only
  • Passing an indexed object as a parameter and attempting to modify its index within the called function
  • Using incompatible syntax to alter index values on protected or constant array objects

Troubleshooting Steps

  1. 1Review the KRL program code where the error occurs and identify the line attempting to modify the index
  2. 2Verify that the array or indexed object was properly declared with correct initialization parameters
  3. 3Check if the index variable is defined as read-only or constant, and if so, use a different variable for the operation
  4. 4Ensure the index modification is performed at the appropriate scope level and not within restricted function contexts
  5. 5If index changes are necessary, declare a new array object with the desired index or use array copy operations instead of direct index modification
  6. 6Consult the KRL programming guidelines and recompile the program after making corrections

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.