KUKA Robot codes
KUKA RobotSystemBasic

KRC1000

KUKA Robot KRC1000 - “ON” OR “OFF” EXPECTED 2337

“ON” OR “OFF” EXPECTED 2337

This alarm indicates a syntax error in the KRL program where the interpreter expected either an 'ON' or 'OFF' keyword but encountered different syntax instead. The error occurs during program parsing or execution when a statement requires a boolean on/off value at the specified location in the code.

Common Causes

  • Missing or incorrect 'ON' or 'OFF' keyword in a signal assignment or conditional statement
  • Typo in boolean value declaration (e.g., 'On' or 'off' instead of uppercase 'ON' or 'OFF')
  • Incorrect syntax in digital output or input declaration (e.g., missing colon or equals sign)
  • Misplaced or malformed parameter value in a function call expecting ON/OFF state
  • Using incompatible data type or variable instead of explicit ON/OFF keyword

Troubleshooting Steps

  1. 1Open the KRL source file in the KUKA WorkVisual or text editor and navigate to line 2337 or the reported error location
  2. 2Check the syntax around the flagged line for any ON/OFF keyword requirements and verify correct uppercase spelling
  3. 3Review the statement structure to ensure proper syntax for signal assignments (e.g., '$OUT[1] = ON' format)
  4. 4Verify that all function parameters expecting boolean values are using explicit ON/OFF keywords, not variable names or alternative syntax
  5. 5Check for missing operators, brackets, or colons that may cause the parser to misinterpret the statement
  6. 6Correct the syntax error, save the file, and reload/recompile the program in the KRC controller

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.