9 coo rdi nat e t rans for m a ti on cy cle s – HEIDENHAIN TNC 410 ISO Programming User Manual
Page 335
HEIDENHAIN TNC 410, TNC 426, TNC 430
309
8.9 Coo
rdi
nat
e
T
rans
for
m
a
ti
on Cy
cle
s
Example: Coordinate transformation cycles
Program sequence
n
Program the coordinate transformations in
the main program
n
For subprograms within a subprogram, see
“Subprograms,” page 317
%KOUMR G71 *
N10 G30 G17 X+0 Y+0 Z-20 *
Define the workpiece blank
N20 G31 G90 X+130 Y+130 Z+0 *
N30 G99 T1 L+0 R+1 *
Define the tool
N40 T1 G17 S4500 *
Tool call
N50 G00 G40 G90 Z+250 *
Retract the tool
N60 G54 X+65 Y+65 *
Shift datum to center
N70 L1.0 *
Call milling operation
N80 G98 L10 *
Set label for program section repeat
N90 G73 G91 H+45 *
Rotate by 45° (incremental)
N100 L1.0 *
Call milling operation
N110 L10.6 *
Return jump to LBL 10; execute the milling operation six times
N120 G73 G90 H+0 *
Reset the rotation
N130 G54 X+0 Y+0 *
Reset the datum shift
N140 G00 Z+250 M2 *
Retract in the tool axis, end program
N150 G98 L1 *
Subprogram 1:
N160 G00 G40 X+0 Y+0 *
Define milling operation
N170 Z+2 M3 *
N180 G01 Z-5 F200 *
N190 G41 X+30 *
X
Y
65
65
130
130
45°
X
20
30
10
R5
R5
10
10