9 coor dinat e t ransf or mation cy cles, Example: coordinate transformation cycles – HEIDENHAIN iTNC 530 (340 49x-04) ISO programming User Manual
Page 472

472
8 Programming: Cycles
8.9 Coor
dinat
e
T
ransf
or
mation Cy
cles
Example: Coordinate transformation cycles
Program sequence
Program the coordinate transformations in
the main program
For subprograms within a subprogram, see
“Subprograms,” page 511.
%COTRANS G71 *
N10 G30 G17 X+0 Y+0 Z-40 *
Definition of workpiece blank
N20 G31 G90 X+130 Y+130 Z+0 *
N30 G99 T1 L+0 R+1 *
Tool definition
N40 T1 G17 S3500 *
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; repeat 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
X
Y
65
65
130
130
45°
X
20
30
10
R5
R5
10
10