KUKA Robot codes
KUKA RobotSystemBasic

KRC0933

KUKA Robot KRC0933 - RIGHT STRING CONSTANT => LEFT INDEXING 2270

RIGHT STRING CONSTANT => LEFT INDEXING 2270

This alarm indicates a type mismatch in KRL code where a string constant (right-hand side) is being assigned to or indexed by a left-hand side variable that expects a different data type. The indexing operation on a string constant is invalid because string constants cannot be indexed in the manner attempted.

Common Causes

  • Attempting to index a string literal with bracket notation (e.g., "hello"[0])
  • Assigning a string constant to a non-string variable type without proper conversion
  • Using string constant in an operation that requires array or structured indexing
  • Incorrect syntax in array or structure member access involving string values
  • Mismatched data type declaration between the variable and the assigned string constant value

Troubleshooting Steps

  1. 1Review the KRL source code at the line indicated in the error message to identify the problematic assignment or indexing operation
  2. 2Verify that the left-hand side variable is declared with the correct data type matching the right-hand side expression
  3. 3If attempting string indexing, use proper KRL string manipulation functions (e.g., STRSUB, STRLEN) instead of direct bracket indexing
  4. 4Ensure string constants are properly quoted and not being treated as array or structure indices
  5. 5Check for implicit type conversions that may be causing the mismatch between string constant and target variable type
  6. 6Recompile the KRL program after corrections and verify the syntax in the KRC editor for any remaining type conflicts

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.