30.07.2013 Views

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7 Programming with Q Parameters<br />

7.1 Q Parameters Instead of Numerical Values<br />

7-4<br />

Example for exercise: Full circle<br />

Circle center I,J:<br />

X = 50 mm Y = 50 mm<br />

Beginning and end of the circular arc:<br />

X = 50 mm Y = 0 mm<br />

Milling depth: ZM = –5 mm<br />

Tool radius: R = 15 mm<br />

Part program without Q parameters<br />

%S520I G71 * ............................................................ Start of program<br />

N10 G30 G17 X+1 Y+1 Z-20 * ................................... Definition of blank form MIN point<br />

N20 G30 G90 X+100 Y+100 Z+0 * ............................ Definition of blank form MAX point<br />

N30 G99 T6 L+0 R+15 * ............................................ Tool definition<br />

N40 T6 G17 S500 * .................................................... Tool call<br />

N50 I+50 J+50 * ........................................................ Coordinates of the circle center<br />

N60 G00 G40 G90 Z+100 M06 * ............................... Retract the spindle and insert the tool<br />

N70 X+30 Y–20 * ....................................................... Pre-position the tool<br />

N80 Z–5 M03 * .......................................................... Pre-position the tool to working depth<br />

N90 G01 G41 X+50 Y+0 F100 * ................................ Move to first contour point with radius compensation<br />

N100 G02 X+50 Y+0 * ............................................... Mill circular arc around circle center I,J; coordinates of end<br />

point X = +50 and Y = 0; positive direction of rotation (G02)<br />

N110 G00 G40 X+70 Y–20 * ...................................... Retract the tool in X, Y; cancel radius compensation<br />

N120 Z+100 M02 * .................................................... Retract the tool in Z<br />

N9999 %S520I G71 *<br />

Part program with Q parameters<br />

%<strong>360</strong>0741 G71 *<br />

N10 D00 Q01 P01 +100 * .......................................... Clearance height<br />

N20 D00 Q02 P01 +30 * ............................................ Start pos. X<br />

N30 D00 Q03 P01 –20 * ............................................ Start-End pos. Y<br />

N40 D00 Q04 P01 +70 * ............................................ End pos. X<br />

N50 D00 Q05 P01 –5 * .............................................. Milling depth<br />

N60 D00 Q06 P01+50 * ............................................. Circle center X<br />

N70 D00 Q07 P01 +50 * ............................................ Circle center Y<br />

N80 D00 Q08 P01 +50 * ............................................ Circle start point X<br />

N90 D00 Q09 P01 +0 * .............................................. Circle start point Y<br />

N100 D00 Q10 P01 +0 * ............................................ Tool length L<br />

N110 D00 Q11 P01 +15 * .......................................... Tool radius R<br />

N120 D00 Q20 P01 +100 * ........................................ Milling feed rate F<br />

N130 G30 G17 X+0 Y+0 Z–20 *<br />

N140 G31 G90 X+100 Y+100 Z+0 *<br />

N150 G99 T1 L+Q10 R+Q11 *<br />

N160 T1 G17 S500 *<br />

N170 I+Q6 J+Q7 *<br />

N180 G00 G40 G90 Z+Q1 M06 *<br />

N190 X+Q2 Y+Q3 *<br />

N200 Z+Q5 M03 *<br />

N210 G01 G41 X+Q8 Y+Q9 FQ20 *<br />

N220 G02 X+Q8 Y+Q9 *<br />

N230 G01 G40 X+Q4 Y+Q3 *<br />

N240 Z+Q1 M02 *<br />

N9999 %<strong>360</strong>0741 G71 *<br />

Y<br />

50<br />

–5<br />

Z<br />

I, J<br />

50<br />

Blocks N10 to N120:<br />

Assign numerical values to the<br />

Q parameters<br />

Blocks N130 to N240:<br />

Corresponding to blocks N10 to<br />

N120 from program S520I<br />

X<br />

<strong>TNC</strong> <strong>360</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!