4 p ath cont ours — car tesian coor dinat es – HEIDENHAIN TNC 426B (280 472) ISO programming User Manual
Page 125

109
HEIDENHAIN TNC 410, TNC 426, TNC 430
6.4 P
ath Cont
ours — Car
tesian Coor
dinat
es
Example: Linear movements and chamfers with Cartesian coordinates
%LINEAR G71 *
N10 G30 G17 X+0 Y+0 Z-20 *
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+10 *
N40 T1 G17 S4000 *
N50 G00 G40 G90 Z+250 *
N60 X-10 Y-10 *
N70 G01 Z-5 F1000 M3 *
N80 G01 G41 X+5 Y+5 F300 *
N90 G26 R5 F150 *
N100 Y+95 *
N110 X+95 *
N120 G24 R10 *
N130 Y+5 *
N140 G24 R20 *
N150 X+5 *
N160 G27 R5 F500 *
N170 G40 X-20 Y-20 F1000 *
N180 G00 Z+250 M2 *
N999999 %LINEAR G71 *
Define blank form for graphic workpiece simulation
Define tool in the program
Call tool in the spindle axis and with the spindle speed S
Retract tool in the spindle axis at rapid traverse
Pre-position the tool
Move to working depth at feed rate F = 1000 mm/min
Approach the contour at point 1, activate radius compensation G41
Tangential approach
Move to point 2
Point 3: first straight line for corner 3
Program chamfer with length 10 mm
Point 4: 2nd straight line for corner 3, 1st straight line for corner 4
Program chamfer with length 20 mm
Move to last contour point 1, second straight line for corner 4
Tangential departure
Retract tool in the working plane, cancel radius compensation
Retract tool in the spindle axis, end of program
X
Y
95
5
95
5
10
10
20
20
Gkap6.pm6
29.06.2006, 08:06
109