HEIDENHAIN TNC 640 (34059x-02) ISO programming User Manual
Page 308
Advertising

Programming: Q Parameters
9.12 Programming examples
9
308
TNC 640 | User's Manual for DIN/ISO Programming | 5/2013
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 *
Advertising