
A-79348E
Title
Draw
No.
45/88
page
FANUC Series 30i-MODEL A
Tool center point control
for 5-axis machining
Ed. Date Design Description
Date Jan.16.’04 Design. Apprv.
When type 1 is selected and the workpiece coordinate system is used as the
programming coordinate system
(Note that the values of N60 to N90 are different from those specified in the
preceding example.):
O400 (Sample Program4) ;
N10 G55 ; Prepares the programming
coordinate system.
N20 G90 X50.0 Y-70.0 Z300.0 B0 C0 ; Moves to the initial position.
N30 G01 G43.4 H01 Z20.0 F500. ; Starts tool center point control.
Moves to the approaching
position.
H01 is the tool compensation
number.
N40 X28.868 Y-50.0 Z10.0 B30.0 ; The Z-axis height on the
machining plane is 10.0.
N50 Y50.0 ;
N60 Y-50.0 B45.0 C120.0 ;
N70 X57.735 Y0 B60.0 C180.0 ; Moves X and Y while
operating both B- and C-axes.
N80 X28.868 Y-50.0 C240.0 ;
N90 Y50.0 ;
N100 X50.0 Y-70.0 Z20.0 B0 C360.0 ; X, Y, and Z are approaching
positions.
The rotary axes remain at their
original positions.
N110 G49 Z300.0 ; Cancels tool center point
control.
Moves the Z-axis to its initial
position.
N120 M30;