HEIDENHAIN TNC 360 User Manual User Manual
Page 187

TNC 360
8-34
8
Cycles
8.4
Cycles for Coordinate Transformations
X
Y
Z
70
60
2
3
1
30
25
20
15
Y
X
Z
Example: Mirror image
A machining sequence (subprogram 1) is to be
executed once – as originally programmed –
referenced to the datum X+0/Y+0
1
and then
again referenced to X+70/Y+60
2
mirrored
3
in X.
MIRROR IMAGE cycle in a part program
0
BEGIN PGM 360836 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
TOOL DEF 1 L+0 R+4
4
TOOL CALL 1 Z S1000
5
L Z+100 R0 FMAX
6
CALL LBL 1 ........................................................ Not mirrored
1
; mirrored execution sequence:
7
CYCL DEF 7.0 DATUM ....................................... 1. Datum shift
2
8
CYCL DEF 7.1 X+70
9
CYCL DEF 7.2 Y+60
10
CYCL DEF 8.0 MIRROR IMAGE ......................... 2. Mirror image
3
11
CYCL DEF 8.1 X
12
CALL LBL 1 ........................................................ 3. Subprogram call
13
CYCL DEF 8.0 MIRROR IMAGE ......................... Cancel mirror image
14
CYCL DEF 8.1
15
CYCL DEF 7.0 DATUM ....................................... Cancel datum shift
16
CYCL DEF 7.1 X+0
17
CYCL DEF 7.2 Y+0
18
L Z+100 R0 FMAX M2
19
LBL 1
20
L X–10 Y–10 R0 FMAX M3
21
L Z+2 FMAX
22
L Z–5 F200
23
L X+0 Y+0 RL
24
L Y+20
25
L X+25
26
L X+30 Y+15
27
L Y+0
28
L X+0
29
L X–10 Y–10 R0
30
L Z+2 FMAX
31
LBL 0
32
END PGM 360836 MM
This subprogram is identical to the subpro-
gram on page 8-32