KUKA Robot codes
KUKA RobotSystemBasic

KRC0765

KUKA Robot KRC0765 - POSITIVE INTEGER EXPECTED 2101

POSITIVE INTEGER EXPECTED 2101

This alarm indicates that a positive integer value was expected for a parameter or variable in the KRL program, but a different data type or non-positive value was provided instead. The system cannot proceed with program execution until the correct data type and positive integer value are supplied to the referenced object.

Common Causes

  • Parameter @P1@ was assigned a negative number instead of a positive integer
  • Variable or function argument contains a floating-point number where an integer is required
  • Incorrect data type passed to a function expecting a positive integer (e.g., string, boolean, or array)
  • Zero or null value provided where a positive (greater than zero) integer is mandatory
  • Syntax error in the assignment statement causing type mismatch with the expected parameter

Troubleshooting Steps

  1. 1Review the KRL source code at the line indicated in the error message to identify which variable or parameter requires a positive integer
  2. 2Verify that the value being assigned to @P1@ is a positive integer (greater than zero) and not negative, zero, or a decimal number
  3. 3Check the data type declaration of the affected variable to ensure it matches the assigned value (use INT type for positive integers)
  4. 4Examine any function calls or module interfaces to confirm that positive integer arguments are being passed in the correct order and format
  5. 5Use the KUKA IDE debugger to inspect variable values at runtime and validate that calculations produce positive integer results
  6. 6Correct the assignment statement or value, recompile the KRL program, and restart the robot controller to clear the alarm

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.