KUKA Robot codes
KUKA RobotSystemAdvanced

KRC0499

KUKA Robot KRC0499 - Function value not defined

Function value not defined

This alarm indicates that a function module in the KRC controller does not have a RETURN instruction defined, causing the function to lack a proper exit point and return value. The controller cannot determine what value the function should return when called, resulting in undefined behavior and program execution failure. This typically occurs when a custom function or subroutine is incomplete or improperly structured.

Common Causes

  • Missing RETURN statement at the end of a function module
  • Function definition incomplete or corrupted in the source code
  • Incorrect function syntax or structure in KRL (KUKA Robot Language) program
  • Function accidentally defined as a subroutine without proper return mechanism
  • Editing error where RETURN instruction was accidentally deleted or commented out

Troubleshooting Steps

  1. 1Review the function module source code in the affected KRL program file and locate the function definition
  2. 2Verify that a RETURN instruction with an appropriate return value exists before the END statement of the function
  3. 3Check the function declaration syntax matches KUKA KRC standards with proper parameter definitions and return type
  4. 4Ensure the function is not accidentally defined as a subroutine (DEF) when it should be a function with a RETURN value
  5. 5Recompile and reload the program after adding or correcting the RETURN instruction in the function module
  6. 6Test the corrected program on the KRC controller to confirm the alarm no longer appears and function executes properly

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.