
FANUC Series 30i/31i-MODEL A/31i-MODEL A5
Workpiece Setting Error Compensation
-79634E
4
/
Ed. Date Design Description
Date Feb.08.’05 Design. Apprv.
page
Title
Draw
No.
To validate the workpiece setting error, add N15 and N115 to O1 as indicated
below.
When O1 is executed, the tool moves to cut each side of the displaced workpiece
as shown by the solid lines in Fig. 6.
O1;
N10 G55 ; Set coordinate system
N15 G54.4 P1 Workpiece setting error
compensation mode ON
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
N115 G54.4 P0 ; Workpiece setting error
compensation mode OFF
N110 M30;