FANUC Robot Programming Guide
## 1. Introduction
FANUC robots are programmed using a structured language that allows users to control motion,
inputs, and outputs.
This guide covers basic and advanced commands used in Teach Pendant programming.
## 2. Teach Pendant Navigation
- SELECT: Choose an existing program
- F1 [CREATE]: Create a new program
- EDIT: Modify a program
- FCTN: Access system functions
- RESET: Clear faults
## 3. Creating a New Program
1. Press SELECT
2. Press F1 [CREATE]
3. Enter a program name (e.g., TESTPROG)
4. Press ENTER
## 4. Motion Commands
### 4.1 Joint Move (J)
Moves the robot using a joint motion (fast but not linear).
J P[1] 100% FINE ; Move to position P[1] at full speed
### 4.2 Linear Move (L)
Moves the robot in a straight line.
L P[2] 500mm/sec FINE ; Move to position P[2] at 500mm/sec
### 4.3 Circular Move (C)
Moves the robot in an arc through two points.
C P[3] P[4] 200mm/sec CNT100 ; Circular move through P[3] to P[4]
## 5. Digital I/O Control
### 5.1 Turning ON/OFF Outputs
DO[1] = ON ; Turn ON output 1
WAIT 1.0 sec ; Wait 1 second
DO[1] = OFF ; Turn OFF output 1
### 5.2 Waiting for an Input
WAIT DI[1] = ON ; Wait until input 1 is ON
## 6. Using Registers (R) & Position Registers (PR)
### 6.1 Setting a Register Value
R[1] = 100 ; Set register 1 to 100
### 6.2 Using a Register in a Condition
WAIT R[1] > 50 ; Wait until R[1] is greater than 50
## 7. Loops & Conditional Statements
### 7.1 Looping with JMP & Label
LBL[1] ; Label definition
DO[2] = ON
WAIT 0.5 sec
DO[2] = OFF
WAIT 0.5 sec
JMP LBL[1] ; Repeat infinitely
### 7.2 Conditional Execution (IF Statement)
IF DI[3] = ON THEN
DO[5] = ON
ENDIF
## 8. Example Programs
### 8.1 Simple Pick & Place
J P[1] 100% FINE ; Move to pick position
DO[1] = ON ; Activate gripper
WAIT 0.5 sec
J P[2] 100% FINE ; Move to place position
DO[1] = OFF ; Release gripper
## 9. Conclusion
This guide provides a foundation for programming FANUC robots.
For advanced topics, refer to the FANUC manual or experiment with additional commands.