KUKA Robot codes
KUKA RobotSystemBasic

KRC0804

KUKA Robot KRC0804 - SPECIFIED TYPE IS NOT ENUM TYPE 2140

SPECIFIED TYPE IS NOT ENUM TYPE 2140

This alarm occurs when a KRL program attempts to use a variable or object as an enumeration type when it is not actually defined as an enum type. The compiler or runtime environment detected a type mismatch where an enum-specific operation was performed on a non-enum data type.

Common Causes

  • Variable @P1@ is declared as INT, REAL, or BOOL instead of the required ENUM type
  • Attempting to assign or compare a non-enum value to an enum variable
  • Using enum-specific functions or operations on standard data types
  • Incorrect type casting or conversion attempt in KRL code
  • Module or function parameter expecting an ENUM type but receiving a different data type

Troubleshooting Steps

  1. 1Verify the data type declaration of variable @P1@ in the KRL source code matches the expected ENUM type
  2. 2Check the function or module signature to confirm parameter types match enum requirements
  3. 3Review any type conversion or casting operations involving the affected variable
  4. 4Ensure enum values are properly defined in the program header or relevant include files
  5. 5Recompile the KRL program after correcting type declarations and verify syntax
  6. 6If using legacy code, check KUKA documentation for enum type compatibility with your KRC software version

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.