W1: Tool offset
18.15 Examples
Basic Functions
1596
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
18.15.1.2 Example of toolholder with orientation capability with rotary table
Use of the MOV command
For use of the
MOVT
command it is assumed that the program is running on a 5axis machine, on which the tool
rotates about the Y axis in case of a rotation of the B axis:
Machine with rotary table
Complete definition for the use of a toolholder with orientation capability with rotary table:
N10 TRAORI()
N20 X0 X0 Z0 B45 F2000
; Setting the tool orientation
N30 MOVT=-10
; Infeed movement 10 mm in tool
direction
; (under 45 degrees in the Y-Z plane)
N40 MOVT=AC(20)
; Retraction in tool direction at
distance of
; 20 mm from the zero point
N10 $TC_DP1[1,1]=120
N20 $TC_DP3[1,1]= 13
; Tool length 13 mm
; Definition of toolholder 1:
N30 $TC_CARR1[1] = 0
; X component of 1st offset vector
N40 $TC_CARR2[1] = 0
; Y component of 1st offset vector
N50 $TC_CARR3[1] = 0
; Z component of 1st offset vector
N60 $TC_CARR4[1] = 0
; X component of 2nd offset vector
N70 $TC_CARR5[1] = 0
; Y component of 2nd offset vector
N80 $TC_CARR6[1] = -15
; Z component of 2nd offset vector
N90 $TC_CARR7[1] = 1
; X component of 1st axis
N100 $TC_CARR8[1] = 0
; Y component of 1st axis
N110 $TC_CARR9[1] = 0
; Z component of 1st axis
N120 $TC_CARR10[1] = 0
; X component of 2nd axis
N130 $TC_CARR11[1] = 1
; Y component of 2nd axis
N140 $TC_CARR12[1] = 0
; Z component of 2nd axis
N150 $TC_CARR13[1] = 30
; Angle of rotation of 1st axis
N160 $TC_CARR14[1] =-30
; Angle of rotation of 2nd axis
N170 $TC_CARR15[1] = 0
; X components of 3rd offset vector
N180 $TC_CARR16[1] = 0
; Y component of 3rd offset vector