KUKA Robot codes
KUKA RobotSystemBasic

KRC0890

KUKA Robot KRC0890 - POSITIVE INTEGER CONSTANT EXPECTED 2226

POSITIVE INTEGER CONSTANT EXPECTED 2226

This alarm indicates a syntax error in KRL source code where a positive integer constant was expected but not provided at the specified location. The compiler encountered an invalid or missing numeric value in a context that requires a positive integer literal.

Common Causes

  • Missing or invalid numeric value in array declaration or initialization
  • Incorrect syntax in AXIS or FRAME declaration with missing positive integer
  • Invalid parameter passed to a function expecting a positive integer constant
  • Using a variable or expression instead of a literal positive integer where constant is required
  • Typo or formatting error in numeric constant definition

Troubleshooting Steps

  1. 1Review the KRL source code at the line number indicated in the error message
  2. 2Verify all array declarations have proper positive integer dimensions (e.g., INT array[10])
  3. 3Check that all function calls use literal positive integers for constant parameters
  4. 4Ensure numeric literals are properly formatted without leading zeros or invalid characters
  5. 5Compare the code syntax against KUKA KRL programming documentation for correct constant declaration
  6. 6Recompile the program after corrections and verify all positive integer constants are properly defined

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.