KUKA Robot codes
KUKA RobotSystemBasic

KRC1013

KUKA Robot KRC1013 - ASSIGNMENT TO CONSTANT NOT PERMISSIBLE 2350

ASSIGNMENT TO CONSTANT NOT PERMISSIBLE 2350

This alarm indicates that the KRL program attempted to assign a value to a constant object, which is not permitted. Constants are read-only and their values cannot be modified after declaration, causing the compiler or runtime to reject the assignment operation.

Common Causes

  • Attempting to assign a new value to a declared constant variable
  • Using a constant identifier on the left side of an assignment operator (=)
  • Accidentally declaring a variable as CONST when it needs to be modified later
  • Passing a constant as a reference parameter to a function that modifies it
  • Trying to modify array or structure elements that are declared as constant

Troubleshooting Steps

  1. 1Review the KRL source code and identify the line number where the assignment to the constant occurs
  2. 2Verify that the object being assigned to is not declared with the CONST keyword
  3. 3If the variable needs to be modified, remove the CONST qualifier from its declaration
  4. 4Check function parameters to ensure constants are not being passed by reference to functions that modify them
  5. 5Use the KUKA IDE or text editor to search for all occurrences of the constant name and verify its usage
  6. 6Recompile the program after making corrections and test the changes on the robot system

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.