31.07.2013 Views

User's Manual TNC 360 (from 259 900-11) - heidenhain

User's Manual TNC 360 (from 259 900-11) - heidenhain

User's Manual TNC 360 (from 259 900-11) - 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.8 Examples for Exercise<br />

7-16<br />

27 LBL 1 ..................................................................... Subprogram bolt hole circle<br />

28 FN 0: Q10 = +0 ..................................................... Set the counter for finished holes<br />

29 FN 10: IF +Q6 NE +0 GOTO LBL 10 .................... If the hole angle increment has been entered, jump to LBL 10<br />

30 FN 4: Q6 = +<strong>360</strong> DIV +Q3 .................................... Calculate the hole angle increment, distribute holes over <strong>360</strong>°<br />

31 LBL 10<br />

32 FN 1: Q<strong>11</strong> = +Q5 + +Q6 ....................................... Calculate second hole position <strong>from</strong> the start angle and hole<br />

angle increment<br />

33 CC X+Q1 Y+Q2 .................................................... Set pole at bolt hole circle center<br />

34 LP PR+Q4 PA+Q5 R0 F MAX M3 ........................ Move in the plane to 1st hole<br />

35 L Z+Q7 R0 F MAX M99 ........................................ Move in Z to setup clearance, call cycle<br />

36 FN 1: Q10 = +Q10 + +1 ....................................... Count finished holes<br />

37 FN 9: IF +Q10 EQU +Q3 GOTO LBL 99 ............... Finished?<br />

38 LBL 2<br />

39 LP PR+Q4 PA+Q<strong>11</strong> R0 F MAX M99 .................... Make a second and further holes<br />

40 FN 1: Q10 = +Q10 + +1 ....................................... Count finished holes<br />

41 FN 1: Q<strong>11</strong> = +Q<strong>11</strong> + +Q6..................................... Calculate angle for next hole<br />

(update)<br />

42 FN 12: IF + Q10 LT + Q3 GOTO LBL 2 ................ Not finished?<br />

43 LBL 99<br />

44 L Z+200 R0 F MAX ............................................... Retract in Z<br />

45 LBL 0 ..................................................................... End of subprogram<br />

46 END PGM <strong>360</strong>0715 MM<br />

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

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

Saved successfully!

Ooh no, something went wrong!