KUKA Robot codes
KUKA RobotSystemBasic

KRC0998

KUKA Robot KRC0998 - REAL CONSTANT, VARIABLE OR ARRAY ELEMENT EXPECTED 2335

REAL CONSTANT, VARIABLE OR ARRAY ELEMENT EXPECTED 2335

This alarm indicates a syntax or type error in KRL code where a REAL constant, variable, or array element was expected but not provided at the specified location. The compiler encountered an invalid expression or incorrect data type in a context requiring a real number value.

Common Causes

  • Missing or incorrect operand in a mathematical expression or assignment statement
  • Using a non-REAL data type (INT, BOOL, CHAR) where a REAL value is required
  • Incorrect array indexing or accessing an array element that is not of REAL type
  • Malformed function call with wrong parameter type passed to a function expecting REAL
  • Syntax error such as missing operator, parenthesis, or invalid constant declaration

Troubleshooting Steps

  1. 1Check the KRL source code at the line number indicated by the alarm message for syntax errors
  2. 2Verify that all REAL variables and constants are properly declared with correct data types
  3. 3Ensure array elements being accessed match the expected REAL type and use valid index notation
  4. 4Review function calls to confirm all parameters passed are REAL type or compatible types
  5. 5Use the KRC editor's syntax checker and compile the program to identify exact error locations
  6. 6Correct the offending code statement and recompile; if error persists, verify variable scope and initialization

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.