W1: Tool offset
18.15 Examples
Basic Functions
1602 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
_CORCOMP is 3, therefore, the wear value and compensation value are added to the geometry component and
the wear component is deleted. The resulting total tool length is thus L1 = 11.333 + 0.0 = 11.333.
Example 5
_CORCOMP is 3, as in the previous example, but the compensation is now effective on the geometry axis with
index 0 (X axis). The tool components L3 are assigned to this geometry axis due to G17 with a milling tool.
Calling SETTCOR thus does not affect tool parameters $TC_DP3 and $TC_DP12. Instead, the compensation
value is entered in $TC_DP5.
Example 6
The tool is a turning tool. A frame rotation is activated in N80, causing the basic coordinate system (BCS) to be
rotated in relation to the workpiece coordinate system (WCS). In the WCS, the compensation value (N70) acts on
the geometry axis with index 1, i.e., on the X axis because G18 is active. Since "_CORRMODE = 3", the tool wear
in the direction of the X axis of the WCS must become zero once N100 has been executed. The contents of the
relevant tool parameters at the end of the program are thus:
N10 def real _CORVAL[3]
N20 $TC_DP1[1,1] = 120 ; Milling tool
N30 $TC_DP3[1,1] = 10.0 ; Geometry L1
N40 $TC_DP12[1,1] = 1.0 ; Wear L1
N50 _CORVAL[0] = 0.333
N60 t1 d1 g17 g0
N70 r1 = settcor(_CORVAL, "GW", 0, 3, 0)
N80 t1 d1 x0 y0 z0 ;==> MCS position X0.333 Y0.000
Z11.000
N90 M30
N10 def real _CORVAL[3]
N20 $TC_DP1[1,1] = 500 ; Turning tool
N30 $TC_DP3[1,1] = 10.0 ; Geometry L1
N40 $TC_DP4[1,1] = 15.0 ; Geometry L2
N50 $TC_DP12[1,1]= 10.0 ; Wear L1
N60 $TC_DP13[1,1] =0.0 ; Wear L2
N70 _CORVAL[0] = 5.0
N80 rot y 30
N90 t1 d1 g18 g0
N100 r1 = settcor(_CORVAL, "GW", 0, 3, 1)
N110 t1 d1 x0 y0 z0 ; ==> MCS position X24.330
Y0.000 Z17.500
N120 M30