Programming Q Parameters | Programming examples
9
HEIDENHAIN | TNC 320 | ISO Programming User's Manual | 10/2017
419
N260 Q22 = Q4 * SIN Q36
Calculate Y coordinate for starting point
N270 Q00 G40 X+Q21 Y+Q22 M3*
Move to starting point in the plane
N280 Z+Q12*
Pre-position in spindle axis to set-up clearance
N290 G01 Z-Q9 FQ10*
Move to working depth
N300 G98 L1*
N310 Q36 = Q36 + Q35
Update the angle
N320 Q37 = Q37 + 1
Update the counter
N330 Q21 = Q3 * COS Q36
Calculate the current X coordinate
N340 Q22 = Q4 * SIN Q36
Calculate the current Y coordinate
N350 G01 X+Q21 Y+Q22 FQ11*
Move to next point
N360 D12 P01 +Q37 P02 +Q7 P03 1*
Unfinished? If not finished, return to LBL 1
N370 G73 G90 H+0*
Reset the rotation
N380 G54 X+0 Y+0*
Reset the datum shift
N390 G00 G40 Z+Q12*
Move to set-up clearance
N400 G98 L0*
End of subprogram
N99999999 %ELLIPSE G71 *