10 programming examples, Example: coordinate transformation cycles – HEIDENHAIN iTNC 530 (34049x-08) Cycle programming User Manual
Page 304

304
Cycles: coordinate transformations
11
.1
0
Pr
ogr
amming
examples
11.10 Programming examples
Example: Coordinate transformation cycles
Program sequence
Program the coordinate transformations in
the main program
Machining within a subprogram
0 BEGIN PGM COTRANS MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
Definition of workpiece blank
2 BLK FORM 0.2 X+130 Y+130 Z+0
3 TOOL DEF 1 L+0 R+1
Tool definition
4 TOOL CALL 1 Z S4500
Tool call
5 L Z+250 R0 FMAX
Retract the tool
6 CYCL DEF 7.0 DATUM SHIFT
Shift datum to center
7 CYCL DEF 7.1 X+65
8 CYCL DEF 7.2 Y+65
9 CALL LBL 1
Call milling operation
10 LBL 10
Set label for program section repeat
11 CYCL DEF 10.0 ROTATION
Rotate by 45° (incremental)
12 CYCL DEF 10.1 IROT+45
13 CALL LBL 1
Call milling operation
14 CALL LBL 10 REP 6/6
Return jump to LBL 10; repeat the milling operation six times
15 CYCL DEF 10.0 ROTATION
Reset the rotation
16 CYCL DEF 10.1 ROT+0
17 TRANS DATUM RESET
Reset the datum shift
X
Y
65
65
130
130
45°
X
20
30
10
R5
R5
10
10