5 coor dinat e t ransf or mation cy cles – HEIDENHAIN TNC 406 User Manual
Page 183

162
8 Programming: Cycles
8.5 Coor
dinat
e
T
ransf
or
mation Cy
cles
DATUM SHIFT cycle in a part program:
Practice example: Datum shifting
A machining sequence in the form of a
subprogram is to be executed twice:
once, reference to the specified datum 1
X+0/Y+0, and
a second time, reference to the shifted
datum 2 X+40/Y+60.
Y
15
1
25
Y
X
Z
Z
30
25
X
30
20
15
20
40
2
60
0 BEGIN PGM DATUM MM
1 BLK FORM 0.1 Z X+0 Y+0 Z–20
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 CYCL DEF 1.0 GENERATOR
Cycle GENERATOR (see ”Cycle 1 GENERATOR” on page 133)
4 CYCL DEF 1.1 P-TAB HDH700
Select erosion table (here, table HDH700)
5 CYCL DEF 1.2 MAX=5 MIN=5
Select power stage
6 TOOL DEF 1 L+0 R+4
Define the tool
7 TOOL CALL 1 Z U+0.05
Tool call
8 L Z+100 R0 F MAX M
9 CALL LBL 1
Without datum shift
10 CYCL DEF 7.0 DATUM SHIFT
Datum shift in the X/Y plane
11 CYCL DEF 7.1 X+40
12 CYCL DEF 7.2 Y+60
13 CALL LBL 1
With datum shift
14 CYCL DEF 7.0 DATUM SHIFT
Reset the datum shift
15 CYCL DEF 7.1 X+0