W1: Tool offset
18.15 Examples
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1597
The definition of the toolholder with orientation capability is given in full. The components which 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) around 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.
N280 defines a rotation in accordance with the rotation of the table of the toolholder with orientation capability.
The new X direction thus points in the direction of the bisecting line in the 4th quadrant, the new Z axis in the
direction of the bisecting line in the 1st quadrant.
The zero point is approached in N290, i.e. the machine position X10.607 Y0 Z-4.393, since the position of the
zero point is not changed by the rotation.
N300 traverses in Y to the position Y33.000, since G18 is active and the Y component is not affected by the
active frame. The X and Z positions remain unchanged.
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