5 coor dinat e t ransf or mation cy cles – HEIDENHAIN TNC 406 User Manual
Page 187
166
8 Programming: Cycles
8.5 Coor
dinat
e
T
ransf
or
mation Cy
cles
DATUM SHIFT cycle in a part program:
Practice example: Rotation
A contour section (subprogram 1) is to be executed
once as originally programmed referenced to the
datum X+0/Y+0, and then
rotated by 35° and referenced to the position X+70
Y+60.
If the tool axis is parallel to axis IV (for example, Z
and C), the ROTATION cycle will cause a shift in
axis IV by the same angle as is programmed in the
ROTATION cycle.
X
Y
60
1
2
70
Y
X
Z
Z
3
35°
0 BEGIN PGM ROTAT 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 75
Desired erosion table
5 CYCL DEF 1.2 MAX=7 MIN=7
Select power stage
6 TOOL DEF 1 L+0 R+5,5
7 TOOL CALL 1 Z U+1
8 L Z+100 R0 F MAX M
9 CALL LBL 1
Unrotated version 1
10 CYCL DEF 7.0 DATUM SHIFT
Rotated version. Sequence:
11 CYCL DEF 7.1 X+70
12 CYCL DEF 7.2 Y+60
1. Datum shift 2
13 CYCL DEF 10.0 ROTATION
2. Rotate 3
14 CYCL DEF 10.1 ROT +35
15 CALL LBL 1
3. Subprogram call