KUKA Robot codes
KUKA RobotSystemBasic

KRC0960

KUKA Robot KRC0960 - NOT A NAME OF A CONSTANT OF THIS TYPE 2297

NOT A NAME OF A CONSTANT OF THIS TYPE 2297

This alarm indicates a type mismatch or invalid constant declaration in KRL code. The compiler has detected that a constant name is not properly defined for its intended data type, or an attempt was made to use a constant with an incompatible type assignment.

Common Causes

  • Attempting to assign a value of incorrect type to a named constant
  • Using an undefined or undeclared constant identifier in code
  • Mismatched data type between constant declaration and initialization value
  • Attempting to redefine a constant with a different type than originally declared
  • Using reserved keywords or system names as custom constant identifiers

Troubleshooting Steps

  1. 1Review the KRL program source code around the error location for constant declarations
  2. 2Verify that all constants are properly declared with matching data types (INT, REAL, CHAR, BOOL, etc.)
  3. 3Check that constant values are compatible with their declared types (e.g., no string values assigned to numeric constants)
  4. 4Ensure no reserved KUKA keywords or system constant names are being overridden
  5. 5Consult the KRL type system documentation to confirm proper constant syntax and naming conventions
  6. 6Recompile the program after correcting the constant declaration and verify the alarm no longer appears

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.