5 p a th cont ours — p o lar coor dinat e s, Example: linear movement with polar coordinates – HEIDENHAIN TNC 406 User Manual
Page 136
HEIDENHAIN TNC 406, TNC 416
115
6.5 P
a
th Cont
ours — P
o
lar Coor
dinat
e
s
Example: Linear movement with polar coordinates
0 BEGIN PGM LINEARPO MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
Define the workpiece blank
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 CUST1
Select erosion table (here, table CUST1)
5 CYCL DEF 1.2 MAX=6 MIN=6
Set power stage
6 TOOL DEF 6 L+0 R+15
Define electrode in the program
7 TOOL CALL 6 Z U+1.5
Call electrode in the infeed axis, undersize 1.5 mm
8 CC X+50 Y+50
Define the datum for polar coordinates
9 L Z+100 C+0 R0 F MAX M37
Retract in the infeed axis; orient electrode; eroding OFF
10 LP PR+80 PA-190 R0 F MAX
Pre-position in X and Y; rapid traverse
11 L Z-10 R0 F M
Move to working depth
12 LP PR+45 PA+180 RL M36
Approach the contour at point 1 with radius compensation; eroding ON
13 LP PR PA+120 R F M
Move to point 2
14 LP PR PA+60 R F M
Move to point 3
15 LP PR PA+0 R F M
Move to point 4
16 LP PR PA-60 R F M
Move to point 5
17 LP PR PA-120 R F M
Move to point 6
18 LP PR PA+180 R F M
Move to point 1
19 LP PR+80 PA+170 R0 F MAX M37
Retract tool in the working plane; eroding OFF
X
Y
50
100
50
CC
5
100
R45
60°
5
1
1
1
2
1
3
1
4
1
5
1
6