Conditional Motion (KAREL Extension) - Fanuc-karel-tp-extensions Typing CST Test
Loading…
Conditional Motion (KAREL Extension) — Fanuc-karel-tp-extensions Code
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-tp-extensions Language Guide
Fanuc 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.
Primary Use Cases
- ▸Custom CNC machining sequences and automation
- ▸Advanced robot motion and process control
- ▸Custom user interfaces on the teach pendant
- ▸Sensor and vision system integration
- ▸Automated error handling and diagnostics
Notable Features
- ▸High-level procedural programming for Fanuc CNCs
- ▸Custom TP dialogs, screens, and menu systems
- ▸Access to machine I/O and variables
- ▸Integration with external sensors and PLCs
- ▸Event-driven and background task handling
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.