Examples
4.1 Toolholder with orientation capability
Tool Compensation (W1)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
4-3
N170 $TC_CARR15[1] = 0 ; X component of 3rd offset vector
N180 $TC_CARR16[1] = 0 ; Y component of 3rd offset vector
N190 $TC_CARR17[1] = 0 ; Z component of 3rd offset vector
N200 $TC_CARR18[1] = 0 ; X component of 4th offset vector
N210 $TC_CARR19[1] = 0 ; Y component of 4th offset vector
N220 $TC_CARR20[1] = 15 ; Z component of 4th offset vector
N230 $TC_CARR21[1] = A ; Reference for 1st axis
N240 $TC_CARR22[1] = B ; Reference for 2nd axis
N250 $TC_CARR23[1] = "P" ; Toolholder type
N260 X0 Y0 Z0 A0 B45 F2000
N270 TCARR=1 X0 Y10 Z0 T1 TCOABS
N280 PAROT
N290 X0 Y0 Z0
N300 G18 MOVT=AC(20)
N310 G17 X10 Y0 Z0
N320 MOVT=-10
N330 PAROTOF
N340 TCOFR
N350 X10 Y10 Z-13 A0 B0
N360 ROTS X-45 Y45
N370 X20 Y0 Z0 D0
N380 Y20
N390 X0 Y0 Z20
N400 M30
The definition of the toolholder with orientation capability is given in full.
The components that contain the value 0 need not actually be given, as they are preset to
zero in any case.
The toolholder is activated in N270.
As
$TC_CARR21
and
$TC_CARR22
refer to the machine axes A and B and TCOABS is
active, the values in
$TC_CARR13
and
$TC_CARR14
are ignored, i.e., the axis position
A0 B45 is used for the rotation.
The rotation of the 4th offset vector (length 15 mm in Z direction) about the B axis
causes an offsetting of the zero point by X10.607 [= 15 * sin(45)] and
Z-4.393 [= -15 * (1. - cos(45))].
This zero offset is taken into account by an automatically written basic or system frame so
that the position X10.607 Y10.000 Z8.607 is approached. In the Z direction the tool selection
leads to an additional offset of 13 mm; the Y component is not affected by the table rotation.