KUKA Error 2131 — EXPRESSION MISSING AFTER THE RETURN STATEMENT
Displayed as KSS02131 on KRC4 / KRC5 controllers
KUKA 2131 (“EXPRESSION MISSING AFTER THE RETURN STATEMENT”): In a function, a return value is expected after the RETURN statement. First check: Modify the program.
Updated 2026-09-09 · LogrobotLM reference
Cause
In a function, a return value is expected after the RETURN statement. Example: DEFFCT INT Otto() INT a ... RETURN ENDFCT
Effect
The program is not executable.
Troubleshooting
Modify the program. Example: DEFFCT INT Otto() INT a ... RETURN(a) ENDFCT
Related codes
Indicative field information — the robot manufacturer's manual and safety procedures always prevail. Never bypass a safety device; apply lockout/tagout (LOTO) before any physical intervention. How this reference is built →