HEIDENHAIN TNC 360 ISO Programming User Manual

Page 152

Advertising
background image

TNC 360

7-18

7

Programming with Q Parameters

7.8

Examples for Exercise

N200 G98 L10 *
N210 G54 X+Q1 Y+Q2 * ........................................... Shift datum to center of ellipse
N220 G73 G90 H+Q8 * ............................................. Activate rotation, if Q8 is loaded
N230 D02 Q35 P01 +Q6 P02 +Q5 *
N240 D04 Q35 P01 +Q35 P02 +Q7 * ....................... Calculate angle increment
N250 D00 Q36 P01 +Q5 * ........................................ Current angle for calculation = set start angle
N260 D00 Q37 P01 +0 * ........................................... Set counter for milled steps
N270 L11,0 * ............................................................. Call subprogram for calculating the points of the ellipse
N280 G00 G40 X+Q21 Y+Q22 M03 * ....................... Move to start point in the plane
N290 Z+Q12 * ........................................................... Rapid traverse in Z to setup clearance
N300 G01 Z-Q9 FQ10 * ............................................. Plunge to milling depth at plunging feed rate

N310 G98 L1 *
N320 D01 Q36 P01 +Q36 P02 +Q35 * ..................... Update the angle
N330 D01 Q37 P01 +Q37 P02 +1 * .......................... Update the counter
N340 L11,0 * ............................................................. Call subprogram for calculating the points of the ellipse
N350 G01 X+Q21 Y+Q22 FQ11 * ............................. Move to next point
N360 D12 P01 +Q37 P02 +Q7 P03 1 * .................... Not finished?

N370 G73 G90 H+0 * ................................................ Reset rotation
N380 G54 X+0 Y+0 * ................................................ Reset datum shift
N390 G00 G40 Z+Q12 * ............................................ Move in Z to setup clearance
N400 G98 L0 * .......................................................... End of subprogram for milling the ellipse

N410 G98 L11 *
N420 D07 Q21 P01 +Q36 *
N430 D03 Q21 P01 +Q21 P02 +Q3 * ....................... Calculate X coordinate
N440 D06 Q22 P01 +Q36 *
N450 D03 Q22 P01 +Q22 P02 +Q4 * ....................... Calculate Y coordinate
N460 G98 L0 *
N9999 %376015 G71 *

Advertising
This manual is related to the following products: