KUKA Robot codes
KUKA RobotSystemBasic

KRC0800

KUKA Robot KRC0800 - NAME NOT DECLARED AS SUBROUTINE 2136

NAME NOT DECLARED AS SUBROUTINE 2136

A KRL program object referenced as a subroutine was not declared with the DEFFCT or DEF keyword, or the object name does not exist in the accessible program scope. The compiler cannot resolve the subroutine call because the target function/routine is either missing or improperly defined.

Common Causes

  • Subroutine name is misspelled in the CALL or function invocation statement
  • Subroutine definition is missing the required DEFFCT or DEF keyword
  • Subroutine is defined in a different program file that is not included or linked
  • Subroutine name conflicts with a variable or contains invalid characters
  • Source file containing the subroutine definition was not compiled or loaded into memory

Troubleshooting Steps

  1. 1Verify the exact spelling and capitalization of the subroutine name in both the CALL statement and the DEF/DEFFCT declaration
  2. 2Confirm the subroutine is properly declared with DEF or DEFFCT at the beginning of its definition
  3. 3Check that the source file containing the subroutine is included in the project and has been compiled successfully
  4. 4If the subroutine is in an external module, ensure it is properly linked and accessible within the current program scope
  5. 5Review the KRL syntax for the function call to ensure correct parameter passing and parentheses usage
  6. 6Rebuild and recompile the entire project to ensure all object files are up-to-date and properly linked

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.