KUKA Robot codes
KUKA RobotSystemBasic

KRC0683

KUKA Robot KRC0683 - UNUSED EXTERNALLY DECLARED SUBROUTINE 2019

UNUSED EXTERNALLY DECLARED SUBROUTINE 2019

This alarm indicates that a subroutine was declared for external use but is never called or referenced anywhere in the KRL program. The compiler detects unused externally declared subroutines during the build process, which may indicate dead code or incomplete program implementation.

Common Causes

  • Subroutine declared with PUBLIC or EXTERN keyword but never invoked in any calling program
  • Function or module declared for external use during development but later removed from all callers
  • Incorrect function signature causing the compiler to not recognize valid calls to the subroutine
  • Copy-paste error resulted in duplicate subroutine declarations with only one being used
  • Incomplete refactoring where external function declaration was not removed after functionality was moved

Troubleshooting Steps

  1. 1Review the declaration of the unused subroutine in the source code and verify its PUBLIC/EXTERN visibility modifier
  2. 2Search the entire project workspace for all references and function calls to this subroutine name
  3. 3If the subroutine is genuinely unused, remove the EXTERN/PUBLIC keyword or delete the subroutine declaration entirely
  4. 4If the subroutine should be used, verify the function signature matches all intended call sites and correct any mismatches
  5. 5Recompile the KRL program after modifications to confirm the alarm is resolved
  6. 6For legacy code, consider documenting the subroutine purpose in comments before removal if uncertain about future requirements

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.