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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7 Programming with Q Parameters<br />

7.8 Examples for Exercise<br />

7-16<br />

N220 G98 L1 * ........................................................... Subprogram bolt hole circle<br />

N230 D00 Q10 P01 +0 * ............................................ Set the counter for finished holes<br />

N240 D10 P01 +Q6 P02 +0 P03 10 * ........................ If the hole angle increment has been entered, jump to LBL 10<br />

N250 D04 Q6 P01 +<strong>360</strong> P02 +Q3 * ........................... Calculate the hole angle increment, distribute holes over <strong>360</strong>°<br />

N260 G98 L10 *<br />

N270 D01 Q11 P01 +Q5 P02 +Q6 * .......................... Calculate second hole position from the start angle and hole<br />

angle increment<br />

N280 I+Q1 J+Q2 * ..................................................... Set pole at bolt hole circle center<br />

N290 G10 G40 G90 R+Q4H+Q5 M03 * .................... Move in the plane to 1st hole<br />

N300 G00 Z+Q7 M99 * .............................................. Move in Z to setup clearance, call cycle<br />

N310 D01 Q10 P01 +Q10 P02 +1 * ........................... Count finished holes<br />

N320 D09 P01 +Q10 P02 +Q3 P03 99 * ................... Finished?<br />

N330 G98 L2 *<br />

N340 G10 R+Q4 H+Q11 M99 * ................................. Make a second and further holes<br />

N350 D01 Q10 P01 +Q10 P02 +1 * ........................... Count finished holes<br />

N<strong>360</strong> D01 Q11 P01 +Q11 P02 +Q6 * ........................ Calculate angle for next hole (update)<br />

N370 D12 P01 +Q10 P02 +Q3 P03 2 * ..................... Not finished?<br />

N380 G98 L99 *<br />

N390 G00 G40 G90 Z+200 * ...................................... Retract in Z<br />

N400 G98 L0 * ........................................................... End of subprogram, return jump to main program<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!