
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.
Suppose that the workpiece is displaced from the correct workpiece setting
position as with example 1, and set a workpiece setting error in the same was as
in Example 1.
Moreover, add N15,N16,N135 and N136 to O2 as indicated below to validate the
workpiece setting error as in the case of Example 1. (AI contour control must be
active because tool direction compensation is performed.)
Set bit 0 (RCM) of parameter No. 11200 to 1 to perform tool direction
compensation, then execute O2. When the tool moves to cut each side of the
workpiece with the tool tip, the tool is tilted 45 deg relative to the +Z direction on
the plane normal to the movement direction as shown in Fig. 8.
O2;
N10 G55 ; Set coordinate system
N15 G05.1 Q1 AI contour control mode ON
N16 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.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
N135 G54.4 P0 ; Workpiece setting error
compensation mode OFF
N136 G05.1 Q0 ; AI contour control mode OFF
N140 M30;