Beispiel: bohrungsgruppen – HEIDENHAIN TNC 640 (34059x-05) Benutzerhandbuch

Seite 294

Advertising
background image

Programmieren: Unterprogramme und Programmteil-Wiederholungen

8.6

Programmier-Beispiele

8

294

TNC 640 | Benutzer-Handbuch HEIDENHAIN-Klartext-Dialog | 1/2015

Beispiel: Bohrungsgruppen

Programm-Ablauf:

Bohrungsgruppen anfahren im Hauptprogramm

Bohrungsgruppe (Unterprogramm 1) aufrufen im
Hauptprogramm

Bohrungsgruppe nur einmal im Unterprogramm 1
programmieren

0 BEGIN PGM UP1 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL CALL 1 Z S5000

Werkzeug-Aufruf

4 L Z+250 R0 FMAX

Werkzeug freifahren

5 CYCL DEF 200 BOHREN

Zyklus-Definition Bohren

Q200=2

;SICHERHEITS-ABST.

Q201=-10

;TIEFE

Q206=250

;VORSCHUB TIEFENZ.

Q202=5

;ZUSTELL-TIEFE

Q210=0

;VERWEILZEIT OBEN

Q203=+0

;KOOR. OBERFLAECHE

Q204=10

;2. SICHERHEITS-ABST.

Q211=0.25

;VERWEILZEIT UNTEN

6 L X+15 Y+10 R0 FMAX M3

Startpunkt Bohrungsgruppe 1 anfahren

7 CALL LBL 1

Unterprogramm für Bohrungsgruppe rufen

8 L X+45 Y+60 R0 FMAX

Startpunkt Bohrungsgruppe 2 anfahren

9 CALL LBL 1

Unterprogramm für Bohrungsgruppe rufen

10 L X+75 Y+10 R0 FMAX

Startpunkt Bohrungsgruppe 3 anfahren

11 CALL LBL 1

Unterprogramm für Bohrungsgruppe rufen

12 L Z+250 R0 FMAX M2

Ende des Hauptprogramms

13 LBL 1

Anfang des Unterprogramms 1: Bohrungsgruppe

14 CYCL CALL

Bohrung 1

15 L IX+20 R0 FMAX M99

Bohrung 2 anfahren, Zyklus aufrufen

16 L IY+20 R0 FMAX M99

Bohrung 3 anfahren, Zyklus aufrufen

17 L IX-20 R0 FMAX M99

Bohrung 4 anfahren, Zyklus aufrufen

18 LBL 0

Ende des Unterprogramms 1

19 END PGM UP1 MM

Advertising