W1: Tool offset
18.10 Special handling of tool compensations
Basic Functions
1554
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
NC program
Temperature compensation values in the NC program
The compensation values assigned to axes X and Z are not zero and are applied for temperature compensation
with respect to tool length. The machine axis positions reached in each case are specified as comments in the
program lines.
MD24110 TRAFO_AXES_IN_1[0] = 1
; First axis of the transformation
MD24110 TRAFO_AXES_IN_1[1] = 2
; Second axis of the transformation
MD24110 TRAFO_AXES_IN_1[2] = 3
; Third axis of the transformation
MD24110 TRAFO_AXES_IN_1[3] = 5
; Fifth axis of the transformation
MD24110 TRAFO_AXES_IN_1[4] = 4
; Fourth axis of the transformation
MD24120 TRAFO_GEOAX_ASSIGN_TAB_1[0] = 1
; Geo axis for channel axis 1
MD24120 TRAFO_GEOAX_ASSIGN_TAB_1[1] = 2
; Geo axis for channel axis 2
MD24120 TRAFO_GEOAX_ASSIGN_TAB_1[2] = 3
; Geo axis for channel axis 3
MD24570 TRAFO5_AXIS1_1[0] = 0.0
;
MD24570 TRAFO5_AXIS1_1[1] = 0.0
; Direction
MD24570 TRAFO5_AXIS1_1[2] = 1.0
; First rotary axis is parallel to Z
MD24572 TRAFO5_AXIS1_2[0] = 0.0
; Direction
MD24572 TRAFO5_AXIS1_2[1] = 1.0
; Second rotary axis is parallel to Y
MD24572 TRAFO5_AXIS1_2[2] = 0.0
;
MD25574 TRAFO5_BASE_ORIENT_1[0] = 0.0
;
MD25574 TRAFO5_BASE_ORIENT_1[1] = 0.0
; Basic tool orientation
MD25574 TRAFO5_BASE_ORIENT_1[2] = 1.0
; In Z direction
SD42960 TOOL_TEMP_COMP[0] = -0.3
;
First compensation value
SD42960 TOOL_TEMP_COMP[1] = 0.0
;
SD42960 TOOL_TEMP_COMP[2] = -1.0
;
Second compensation value
;
Position setpoints of the machine
axes
N10 g74 x0 y0 z0 a0 b0
;
X Y Z
N20 x20 y20 z20 f10000
;
20.30 20.00 21.00
N30 traori()
;
20.30 20.00 21.00
N40 x10 y10 z10 b90
;
11.00 10.00 9.70
N50 trafoof
;
10.30 10.00 11.00
N60 x0 y0 z0 b0 c0
;
0.30 0.00 1.00
N70 m30