KUKA Robot codes
KUKA RobotSystemBasic

KRC0853

KUKA Robot KRC0853 - STRING EXPECTED 2189

STRING EXPECTED 2189

This alarm indicates that a STRING data type was expected at a specific location in the KRL program, but a different data type was provided instead. The compiler or interpreter encountered a type mismatch where a string variable or literal was required but not supplied. This typically occurs during program compilation or during runtime parameter validation.

Common Causes

  • Passing a non-string argument to a function or procedure that expects a STRING parameter
  • Assigning a numeric, boolean, or other non-string value to a STRING variable without proper conversion
  • Missing quotes around a string literal in function calls or variable assignments
  • Incorrect parameter type in a function call where @P1@ was expected to be a string
  • Using a wrong variable type in string concatenation or string comparison operations

Troubleshooting Steps

  1. 1Locate the line number indicated in the error message and examine the context around the problematic statement
  2. 2Verify that all function parameters expecting STRING types are being passed string values or properly declared string variables
  3. 3Check variable declarations to ensure STRING variables are correctly defined before use
  4. 4Review function signatures in included files or libraries to confirm expected parameter types match the arguments being passed
  5. 5Convert non-string values to STRING type using appropriate conversion functions if necessary (e.g., INT_TO_STRING for numeric values)
  6. 6Recompile the program after corrections and verify the alarm no longer appears

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.