beautypg.com

HEIDENHAIN TNC 640 (34059x-04) ISO programming User Manual

Page 324

background image

Programming: Q Parameters

9.12 Programming examples

9

324

TNC 640 | User's Manual for DIN/ISO Programming | 3/2014

N270 G73 G90 H+Q8 *

Account for rotational position in the plane

N280 G00 G40 X+0 Y+0 *

Pre-position in the plane to the cylinder center

N290 G01 Z+5 F1000 M3 *

Pre-position in the spindle axis

N300 G98 L1 *
N310 I+0 K+0 *

Set pole in the Z/X plane

N320 G11 R+Q16 H+Q24 FQ11 *

Move to starting position on cylinder, plunge-cutting

obliquely into the material

N330 G01 G40 Y+Q7 FQ12 *

Longitudinal cut in Y+ direction

N340 D01 Q20 P01 +Q20 P02 +1 *

Update the counter

N350 D01 Q24 P01 +Q24 P02 +Q25 *

Update solid angle

N360 D11 P01 +Q20 P02 +Q13 P03 99 *

Finished? If finished, jump to end

N370 G11 R+Q16 H+Q24 FQ11 *

Move in an approximated "arc" for the next longitudinal cut

N380 G01 G40 Y+0 FQ12 *

Longitudinal cut in Y– direction

N390 D01 Q20 P01 +Q20 P02 +1 *

Update the counter

N400 D01 Q24 P01 +Q24 P02 +Q25 *

Update solid angle

N410 D12 P01 +Q20 P02 +Q13 P03 1 *

Unfinished? If not finished, return to LBL 1

N420 G98 L99 *
N430 G73 G90 H+0 *

Reset the rotation

N440 G54 X+0 Y+0 Z+0 *

Reset the datum shift

N450 G98 L0 *

End of subprogram

N99999999 %ZYLIN G71 *