Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Use KAREL to move the robot conditionally based on a sensor input.
PROGRAM ConditionalMove
VAR sensor : BOOLEAN
sensor = get_digital_input(1)
IF sensor THEN
MOVEJ P1
ELSE
MOVEJ P2
ENDIF
END ConditionalMoveFanuc KAREL is a high-level, proprietary programming language for Fanuc CNCs, allowing complex automation, logic control, and custom functions. TP (Teach Pendant) Extensions are add-ons enabling enhanced interaction, macros, and user interface control on Fanuc robots and CNC machines.
Origin & Creator
Developed by FANUC Corporation in Japan to allow programmable automation beyond standard CNC commands, KAREL and TP extensions first appeared in the 1980s and have evolved with modern Fanuc controllers.
Industrial Note
KAREL + TP Extensions are essential in high-precision machining, custom automation tasks, and robotic manufacturing cells where standard G-code or GUI programming is insufficient.