HEIDENHAIN TNC 360 ISO Programming User Manual
Page 154
![background image](https://www.manualsdir.com/files/815326/content/doc154.png)
TNC 360
7-20
7
Programming with Q Parameters
Determine starting and calculation values
7.8
Examples for Exercise
Mill the sphere upward until the highest point is reached
Mill the highest point and then retract the tool
Rotate the coordinate system about the Z axis until plane end
angle is reached
N200 G98 L10 *
N200 D01 Q15 P01 +Q5 P02 +Q4 *
N220 D00 Q21 P01 +Q1 *
N230 D01 Q24 P01 +Q4 P02 +Q108 *
N240 D00 Q26 P01 +Q6 *
N250 G54 X+Q9 Y+Q10 Z-Q4 * ................................. Shift datum to center of sphere
N260 G73 G90 H+Q06 * ............................................ Rotation for program start (starting plane angle)
N270 I+0 J+0 * .......................................................... Pole for pre-positioning
N280 G10 G40 G90 R+Q24 H+Q6 * .......................... Pre-positioning before machining
N290 G98 L1 *
N300 K+0 I+Q108 *
N310 G01 Y+0 Z+0 FQ11 * ........................................ Pre-positioning at the beginning of each arc
N320 G98 L2 *
N330 G11 G40 R+Q4 H+Q21 FQ11 *
N340 D02 Q21 P01 +Q21 P02 +Q03 *
N350 D11 P01 +Q21 P02 +Q02 P03 2 *
N360 R+Q04 H+Q02 *
N370 G01 Z+Q15 F1000 *
N380 G00 G40 X+Q24 *
N390 D01 Q26 P01 +Q26 P02 +Q08 * ...................... Prepare the next rotation increment
N400 D00 Q21 P01 Q01 * .......................................... Reset solid angle for machining to the starting value
N410 G73 G90 H+Q26 *
N420 D12 P01 +Q26 P02 +Q07 P03 1 *
N430 D09 P01 +Q26 P02 + Q07 P03 1 *
N440 G73 G90 H+0 * ................................................. Reset rotation
N450 G54 X+0 Y+0 Z+0 * .......................................... Reset datum shift
N460 G98 L0 * ........................................................... End of subprogram
N9999 %360712 G71 *