
FANUC Series 30i/31i-MODEL A/31i-MODEL A5
Workpiece Setting Error Compensation
-79634E
2
/
Ed. Date Design Description
Date Feb.08.’05 Design. Apprv.
page
Title
Draw
No.
Examples
Example 1
O1 represents a program that cuts each side of a square.
O1;
N10 G55 ; Set coordinate system
N20 G90 G00 X0 Y0 Z300.0 B0 C0 ; Move to initial position
N30 G01 G43 H01 Z40.0 F500. ; Start tool length compensation
H01 is tool length compensation
number.
N40 X50.0 Y50.0 Z20.0 ; Z-axis height of machining plane
is 20.0.
N50 X150.0 ;
N60 Y150.0 ;
N70 X50.0 ;
N80 Y50.0 ;
N90 X0 Y0 Z40.0 ;
N100 G49 Z300.0 ; Cancel tool length compensation
Move to initial position on Z-
axis
N110 M30;
X
Workpiece coordinate system G55 (XYZ)
Correct workpiece setting position
N50
N60
N70
N80
Workpiece
Fig. 5 Operation when there is no workpiece setting error