KUKA Robot codes
KUKA RobotSystemBasic

KRC0988

KUKA Robot KRC0988 - DUAL DECLARATION 2325

DUAL DECLARATION 2325

This alarm indicates that a KRL program object has been declared twice within the same scope or namespace, violating the single declaration rule. The compiler detects duplicate declarations of the same variable, function, or module name, which creates ambiguity and prevents proper code compilation.

Common Causes

  • Same variable or function name declared multiple times in the same program file
  • Duplicate declarations across included files or libraries that share the same namespace
  • Copy-paste errors resulting in accidentally duplicated function or variable definitions
  • Incorrect use of GLOBAL or LOCAL declarations creating conflicting scope definitions
  • Including the same header file or module multiple times without proper include guards

Troubleshooting Steps

  1. 1Review the KRL source code and identify all declarations of the object name mentioned in the alarm message
  2. 2Remove or rename any duplicate declarations, keeping only one instance of each object
  3. 3Check all #INCLUDE statements to ensure header files are not being included multiple times
  4. 4Add include guards or conditional compilation directives to prevent duplicate inclusions
  5. 5Verify that GLOBAL and LOCAL declarations are used correctly and do not conflict with each other
  6. 6Recompile the program after corrections 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.