
FANUC Series 30i/31i-MODEL A/31i-MODEL A5
Workpiece Setting Error Compensation
-79634E
/
Ed. Date Design Description
Date Feb.08.’05 Design. Apprv.
page
Title
Draw
No.
Example 2
O2 is a program for cutting each side of a square by using tool center point
control.
The machine is of tool rotation type, the C-axis is the master rotation axis and
rotates about the Z-axis, and the B-axis is the slave axis and rotates about the Y-
axis. For cutting on the plane normal to the movement direction, the tool is
tilted 45 deg relative to the +Z direction.
O2;
N10 G55 ; Set coordinate system
N20 G90 G00 X0 Y0 Z300.0 B0 C0 ; Move to initial position
N30 G01 G43.4 H01 Z40.0 F500. ; Start tool center point control
H01 is tool length compensation
number.
N40 X50.0 Y50.0 Z20.0 B45.0 C-90.0 ; Z-axis height of machining plane
is 20.0.
N50 X150.0 ;
N60 C0.0 ;
N70 Y150.0 ;
N80 C90.0 ;
N90 X50.0 ;
N100 C180.0 ;
N110 Y50.0 ;
N120 X0 Y0 Z40.0 B0.0 C0.0 ;
N130 G49 Z300.0 ; Cancel tool length compensation
Move to initial position on Z-
axis
N140 M30;
X
Workpiece coordinate system XYZ
Correct workpiece setting position
N50
N70
N110
Workpiece
N90
Fig. 7 Operation of tool center point control when there is no workpiece setting
error