Heidenhain Basic Programming

  • Uploaded by: Syed Qadir
  • 0
  • 0
  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Heidenhain Basic Programming as PDF for free.

More details

  • Words: 14,174
  • Pages: 110
Contents: Basic course G3 and Upgrade course TNC 426/430

No.

Title

PGM-No.

Cartesian contour movements 1 2 3 4 5 6 7 8 9 10

Holes Square Rounding /chamfering corners Rounding corners Linear movements Circular movements Circular arc with CC, C Tangential contour connection Circular arcs Circular arc with CR

151 152 153 154 250 251 206 207 208 209

Polar contour movements 11 12 13 14

Hexagon (polar) Circle (polar) CP Circular path with tang. connection (polar) CTP Polar coordinates (general)

213 211 212 252

Canned cycles 15 16 17 18 19 20 21 22 23

Drilling cycle Drilling with 200-series cycles Slot plate Bushing plate Die I Linear hole pattern Hole pattern Guide plate Die II

201 260 210 262 265 220 221 261 266

Program section repeats 24 25

Hexagon Drilled plate - slanted rows

268 270

HEIDENHAIN Basic course G3/Upgrade course D03

IH1

Contents: Basic course G3 and Upgrade course TNC 426/430

No.

Title

PGM-No.

Free Contour Programming 26 27 28 29

FK Cam Maltese cross FK Hammer FK Hook - type spanner wrench

288 275 289 295

Subprogramming Technique 30 31 32

Subprogram (Groups of holes) Bolt hole circle segments with several tools Milling with several settings

215 280 223

Contour Cycles 33 34 35 36 37

Contour cycles SL 2, Roughing out kidney Contour cycles SL 2, Kidney shaped island FK Mickey Mouse SL 2 FK-SL-Combination DEMO-Tree

240 241 290 273 276

Coordinate Transformations 38 39 40 41 42 43

Datum shift and mirror images Coordinate transformations (combined) Scaling factor - hammer Scaling factor Tilt working plane Tilt working plane

229 232 284 234 S285 S286

HEIDENHAIN Basic course G3/Upgrade course D02

IH2

Holes

Task:

Program(s):

100

70

8 30

0

20

100

75

50

20

0

0

HEIDENHAIN Basic course G3/Upgrade course C01

151/1

Program layout: Holes

Begin program

PGM MGT

BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z...

Define workpiece blank

Define tool Call tool data

BEGINN PGM . . . MM

TOOL DEF TOOL CALL

TOOL DEF . . . L . . . R . . . TOOL CALL . . . . . . S . . .

Move to clearance height

L

L Z+100 R0 FMAX

Move to starting point

L

L X . . . Y . . . R0 FMAX M3

Move to set up clearance

L

L Z+ . . . R FMAX M8

Drill

L

L Z– . . . R F100 M

Retract drill

L

L Z+2 R0 FMAX

Move to next position

L

L X . . . Y . . . FMAX

Drill

L

L Z– . . .

Retract drill

L

L Z+ . . . FMAX

Next hole

L

L X . . . Y . . . R0 FMAX

Drill

L

L Z–22 R0

L

L Z+100 R0 FMAX M2 (M30)

Return to clearance height End of program

HEIDENHAIN Basic course G3/Upgrade course D02

151/2

Solution:

Holes

100

70

8 30

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

BEGIN PGM 151 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 ............................ TOOL DEF 1 L+0 R+4 ............................................... TOOL CALL 1 Z S4000 ............................................. L Z+100 R0 F MAX ................................................... L X+20 Y+30 R0 F MAX M3 ..................................... L Z+2 R0 F MAX M8 L Z-22 R0 F400 ......................................................... L Z+2 R0 F MAX L X+50 Y+70 R0 F MAX ........................................... L Z-22 R0 F400 L Z+2 R0 F MAX L X+75 Y+30 R0 F MAX ........................................... L Z-22 R0 F400 L Z+100 R0 F MAX M2 END PGM 151 MM

0

20

100

75

50

20

0

0

WORKPIECE BLANK DEFINITION DEFINE TOOL CALL TOOL DATA CLEARANCE HEIGHT FIRST HOLE DRILL SECOND HOLE

THIRD HOLE

HEIDENHAIN Basic course G3/Upgrade course D02

151/3

Task:

Square

Program(s):

100

50

5 0

BEGIN PGM . . . MM BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z... TOOL DEF . . . L . . . R . . . TOOL CALL . . . . . . S . . . L Z+ . . . R0 F . . .

Begin program Define workpiece blank Define tool Call tool data Move to clearance height Move to auxiliary point

20

100

0

50

0

R0

L X... Y... R... F... L Z... R... F... M...

Plunging depth RL/RR

L X . . . Y . . . RR/RL

Contour coordinates

RL/RR

L X . . . Y . . . RR/RL

Last contour point

RL/RR

L X . . . Y . . . RR/RL

Move to auxiliary point

R0

L X... Y... R...

○ ○ ○

○ ○ ○

Contour starting point

Retract tool, PGM end

L Z... R... F... M...

HEIDENHAIN Basic course G3/Upgrade course D02

152/1

Solution:

Square

100

50

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

BEGIN PGM 152 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 ............................ TOOL DEF 1 L+0 R+8 ............................................... TOOL CALL 1 Z S4000 ............................................. L Z+100 R0 F MAX ................................................... L X-30 Y+50 R0 F MAX ............................................ L Z-5 R0 F MAX M3 ................................................. L X+0 Y+50 RL F400 ................................................ L X+50 Y+100 L X+100 Y+50 L X+50 Y+0 L X+0 Y+50 RL ......................................................... L X-30 R0 F MAX M5 ............................................... L Z+100 R0 F MAX M2 ............................................ END PGM 152 MM

5 0

20

100

0

50

0

WORKPIECE BLANK DEFINITION DEFINE TOOL CALL TOOL DATA CLEARANCE HEIGHT AUXILIARY POINT (R0) PLUNGING DEPTH CONTOUR START. POINT (RL/RR)

LAST CONTOUR POINT AUXILIARY POINT RETRACT TOOL/PGM END

HEIDENHAIN Basic course G3/Upgrade course C01

152/2

Task:

Rounding / chamfering corners

Program(s):

R1 0

100

5

45

°

50

5 0

20

100

50

0

0

HEIDENHAIN Basic course G3/Upgrade course D02

153/1

Solution:

Rounding / chamfering corners

R1 0

100

5

45

°

50

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

BEGIN PGM 153 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 ............................ TOOL DEF 1 L+0 R+8 ............................................... TOOL CALL 1 Z S4000 ............................................. L Z+100 R0 F MAX ................................................... L X-30 Y+50 R0 F MAX ............................................ L Z-5 R0 F MAX M3 L X+0 Y+50 RL F200 ................................................ L X+50 Y+100 RND R10 .................................................................. L X+100 Y+50 L X+50 Y+0 CHF 5 ........................................................................ L X+0 Y+50 RL L X-30 R0 M5 ........................................................... L Z+100 R0 F MAX M2 ............................................ END PGM 153 MM

5 0

20

100

50

0

0

WORKPIECE BLANK DEFINITION DEFINE TOOL CALL TOOL DATA CLEARANCE HEIGHT AUXILIARY POINT (R0) CONTOUT STARTING POINT RL ROUND CORNERS

CHAMFER AUXILIARY POINT (RO) PGM END

HEIDENHAIN Basic course G3/Upgrade course D02

153/2

Task:

Rounding corners

Program(s):

100 90

R1

0

50

0

R1

10

5 0

20

100

90

50

10

0

0

Define tool Call tool data Move to clearance height

BEGIN PGM . . . MM BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z... TOOL DEF . . . L . . . R . . . TOOL CALL . . . . . . S . . . L Z...

Auxiliary point anfahren

L X... Y...

Plunging depth

L Z...

Approach tangentially

APPR . . .

Contour

L...

Depart tangentially

DEP . . .

Retract tool, PGM end

L Z...

Begin program Define workpiece blank

HEIDENHAIN Basic course G3/Upgrade course D02

154/1

Solution:

Rounding corners

100 90

R1

0

50

0 R1

10

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

5 0

20

100

90

50

10

0

0

BEGIN PGM 154 MM BLK FORM 0.1 Z X-20 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL DEF 1 L+0 R+8 TOOL CALL 1 Z S4000 L Z+100 R0 F MAX L X-30 Y+70 R0 F MAX ............................................ AUXILIARY POINT (R0) L Z-5 R0 F MAX M3 APPR LCT X+10 Y+70 R5 RL F400 .......................... APPROACH STARTING POINT TANGENTIALLY L X+10 Y+90 RND R10 L X+50 Y+90 L Y+50 X+90 L X+90 Y+10 RND R10 L X+50 Y+10 L X+10 Y+50 L Y+70 ...................................................................... LAST CONTOUR POINT RL DEP LCT X-30 Y+70 R5 ............................................ DEPART TANGENTIALLY TO AUXILIARY POINT L Z+100 R0 F MAX M2 END PGM 154 MM

HEIDENHAIN Basic course G3/Upgrade course C01

154/2

Task:

Linear movements

Program(s):

100 90 80

10

70

R1

0

10

40

10

5 0

20

100

90

60

25

0 5

0

HEIDENHAIN Basic course G3/Upgrade course D02

250/1

Solution:

Linear movements

100 90 80

10

70

R1

0

10

40

10

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

BEGIN PGM 250 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 ............................ TOOL CALL 7 Z S2500 ............................................. L Z+100 R0 F9999 .................................................... L X-20 Y+40 ............................................................. L Z+2 M3 L Z-5 F1000 APPR LCT X+5 Y+40 R3 RL F300 ............................ L Y+90 CHF 20 L X+60 L X+90 Y+80 L Y+40 CHF 10 L X+60 Y+10 L X+5 RND R10 L Y+40 ...................................................................... DEP LCT X-20 Y+40 R3 ............................................ L Z+100 R0 F MAX M2 ............................................ END PGM 250 MM

5 0

20

100

90

60

25

0 5

0

WORKPIECE BLANK DEFINITION CALL TOOL DATA; R4 CLEARANCE HEIGHT AUXILIARY POINT (R0)

CONTOUR STARTING POINT (APPROACH TANGENTIALLY)

LAST CONTOUR POINT AUXILIARY POINT (R0) RETRACT TOOL

HEIDENHAIN Basic course G3/Upgrade course D02

250/2

Circular movements

Task:

Program(s):

100 95 R2

R1 0

80 75

R5

0

60 R20

50 45 R4

30 R9

R8

20

5 0

20

95 100

75

60 65

40 45

15

0

0

HEIDENHAIN Basic course G3/Upgrade course

C01

251/1

Circular movements

Solution:

100 95 R2

R1 0

R5

0

80 75

60 R20

50 45 R4

30 R9

R8

20

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

BEGIN PGM 251 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 7 Z S2500 ............................................. L Z+100 R0 F9999 L X+20 Y-20 .............................................................. L Z+2 M3 L Z-5 F500 APPR LCT X+20 Y+30 R3 RL F300 .......................... L X+0 RND R4 L X+15 Y+45 CR X+15 Y+60 R+20 DR+ L X+0 Y+75 CR X+20 Y+95 R+20 DRL X+40 CT X+65 Y+80 CC X+75 Y+80 C X+85 Y+80 DR+ L X+95 RND R5 L Y+50 L X+75 Y+30 RND R8 L Y+20 CC X+60 Y+20 C X+45 Y+20 DRL Y+30 RND R9 L X+20 ...................................................................... DEP LCT X+20 Y-20 R3 F500 ................................... L Z+100 R0 F MAX M2 END PGM 251 MM

5 0

20

95 100

75

60 65

40 45

15

0

0

R4 AUXILIARY POINT (R0)

CONTOUR STARTING POINT (APPROACH TANGENTIALLY)

LAST CONTOUR POINT AUXILIARY POINT (R0)

HEIDENHAIN Basic course G3/Upgrade course D02

251/2

Task:

Circular arc with CC, C

Program(s):

100

80

80

50

20

5 0

20

100

50

23,542

0

0

Call tool data Move to clearance height

BEGIN PGM . . . MM BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z... TOOL CALL . . . . . . S . . . L...

Move to auxiliary point R0

L...

Plunging depth

L...

Approach contour tangentially

APPR . . .

Define circle center

CC . . .

Circular movement

C...

Depart tangentially (aux.pt.)

DEP . . .

Retract tool, PGM end

L...

Begin program Define workpiece blank

R0

RL/RR

HEIDENHAIN Basic course G3/Upgrade course D02

206/1

Solution:

Circular arc with CC, C

100

80

80

50

20

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

BEGIN PGM 206 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 13 Z S2500 ........................................... L Z+100 R0 F MAX L X-30 Y+50 R0 F MAX ............................................ L Z-5 R0 F MAX M3 APPR LT X+0 Y+20 LEN10 RL F250 M8 L X+23,542 RL CC X+50 Y+50 .......................................................... C Y+80 X+23,542 DR+ ............................................. L X+0 RL DEP LT LEN10 .......................................................... L Z+100 R0 F MAX M2 END PGM 206 MM

5 0

20

100

50

23,542

0

0

R20 AUXILIARY POINT

CIRCLE CENTER CIRCULAR MOVEMENT DEPART TANGENTIALLY (AUX.PT.)

HEIDENHAIN Basic course G3/Upgrade course D02

206/2

Tangential contour connection (cartesian)

Task:

Program(s):

100

60

tangential

30

5 0

20

100

70

20

0

0

HEIDENHAIN Basic course G3/Upgrade course C01

207/1

Solution:

Tangential contour connection (cartesian) 100

60

tangential

30

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13

BEGIN PGM 207 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 11 Z S2500 ........................................... L Z+100 R0 F MAX ................................................... L X+45 Y-25 R0 F MAX ............................................ L Z-5 F MAX M13 APPR LT X+20 Y+0 LEN5 RR F250 .......................... L Y+30 CT X+70 Y+60 .......................................................... L X+100 DEP LT LEN5 L Z+100 R0 F MAX M2 END PGM 207 MM

5 0

20

100

70

20

0

0

R10 CLEARANCE HEIGHT AUXILIARY POINT APPROACH STARTING POINT OF CONTOUR TANGENTIALLY TANGENTIAL CIRCULAR PATH

HEIDENHAIN Basic course G3/Upgrade course D02

207/2

Task:

Circular arcs

Program(s):

100

P2

0

R2 0

R8

50 P1 0

30

R1

P3 R75

P4

Point

X

5 0

20

100

0

15

60

0

Y

Point

X

Y

P1

6,645

35,495

P3

58,995

30,025

P2

55,505

69,488

P4

19,732

21,191

HEIDENHAIN Basic course G3/Upgrade course C01

208/1

Solution:

Circular arcs

100

P2

0

R2

0 R8

50 P1

0

30

R1

P3

R75

P4

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

BEGIN PGM 208 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 13 Z S2500 ........................................... L Z+100 R0 F MAX ................................................... L X-30 Y+30 R0 F MAX M3 ...................................... L Z-5 F MAX ............................................................. APPR LCT X+5 Y+30 R5 RL F250 M8 ...................... CC X+15 Y+30 .......................................................... C X+6,645 Y+35,495 DR- ......................................... CT X+55,505 Y+69,488 ............................................ CC X+60 Y+50 C X+58,995 Y+30,025 DRCT X+19,732 Y+21,191 CC X+15 Y+30 C X+5 Y+30 DRDEP LCT X-30 Y+30 R5 ............................................ L Z+100 R0 F MAX M2 END PGM 208 MM

5 0

20

100

60

15

0

0

R20 CLEARANCE HEIGHT AUXILIARY POINT DEPTH APPROACH TANGENTIALLY CIRCLE CENTER CIRCLE TANGENTIAL CIRCULAR PATH

DEPART TANGENTIALLY

HEIDENHAIN Basic course G3/Upgrade course D02

208/2

Task:

Circular arc with CR

Program(s):

100

R80

50

5 0

20

100

90

50

10

0

0

Call tool data Move to clearance height

BEGIN PGM . . . MM BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z... TOOL CALL . . . . . . S . . . L...

Move to auxiliary point

...

Plunging depth

...

Approach tangentially

...

Contour

...

Depart tangentially

...

Retract tool, PGM end

...

Begin program Define workpiece blank

HEIDENHAIN Basic course G3/Upgrade course C01

209/1

Solution:

Circular arc with CR

100

R80

50

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13

5 0

20

100

90

50

10

0

0

BEGIN PGM 209 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 13 Z S2500 ........................................... R20 L Z+100 R0 F MAX L X-30 Y-30 R0 F MAX M13 ..................................... AUXILIARY POINT L Z-5 F MAX APPR LT X+10 Y+0 LEN10 RL F250 ......................... APPROACH STARTING POINT TANGENTIALLY L Y+50 CR X+90 Y+50 R+80 DR- ......................................... CIRCULAR ARC L Y+0 DEP LT LEN10 .......................................................... DEPART TANGENTIALLY (AUX.PT.) L Z+100 R0 F MAX M2 END PGM 209 MM

HEIDENHAIN Basic course G3/Upgrade course D02

209/2

Task:

Hexagon (polar)

Program(s):

50

° 60

0 R40

5 0

20

50

0

-50

-50

Call tool data Move to clearance height

BEGIN PGM . . . MM BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z... TOOL CALL . . . . . . S . . . L Z...

Define pole

CC X . . . Y . . .

Auxiliary point in polar coord.

LP PR . . . PA . . .

Plunging depth

L Z...

Approach tangentially

APPR PLCT PR . . . PA . . . R . . .

Contour

LP PR . . . PA . . . ○ ○ ○

○ ○ ○

Begin program Define workpiece blank

Depart tangentially

DEP PLCT PR . . . PA . . . R . . .

Retract tool, PGM end

L Z...

HEIDENHAIN Basic course G3/Upgrade course D02

213/1

Solution:

Hexagon (polar)

50

° 60

0 R40

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

BEGIN PGM 213 MM BLK FORM 0.1 Z X-50 Y-50 Z-20 BLK FORM 0.2 X+50 Y+50 Z+0 TOOL CALL 13 Z S2500 ........................................... L Z+100 R0 F MAX CC X+0 Y+0 .............................................................. LP PR+80 PA+0 R0 F MAX ....................................... L Z-5 F MAX M3 APPR PLCT PR+40 PA+0 R5 RR F250 M8 ................ LP PA+60 LP PA+120 LP PA+180 LP PA+240 LP PA+300 LP PA+360 DEP PLCT PR+80 PA+0 R5 ....................................... L Z+100 R0 F MAX M2 END PGM 213 MM

5 0

20

50

0

-50

-50

R20 POLE AUXILIARY POINT (POLAR) APPROACH STARTING POINT OF CONTOUR TANGENTIALLY

DEPART TANGENTIALLY

HEIDENHAIN Basic course G3/Upgrade course D02

213/2

Task:

Circle (polar) CP

Program(s):

R4 0

100

CC

50



5 0

20

100

0

50

0

Call tool data Move to clearance height

BEGIN PGM . . . MM BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z... TOOL CALL . . . . . . S . . . L...

Define pole

...

Auxiliary point in polar coord.

...

Contour

...

Auxiliary point

...

Retract tool, PGM end

...

Begin program Define workpiece blank

HEIDENHAIN Basic course G3/Upgrade course C01

211/1

Solution:

Circle (polar) CP

R4 0

100

CC

50



Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12

BEGIN PGM 211 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 13 Z S2500 ........................................... L Z+100 R0 F MAX CC X+50 Y+50 .......................................................... LP PR+80 PA+180 R0 F MAX M3 ............................ L Z-5 F MAX APPR PLCT PR+40 PA+180 R5 RL F250 M8 ............

5 0

20

100

0

50

0

R20 POLE AUXILIARY POINT

APPROACH STARTING POINT OF CONTOUR TANGENTIALLY CP IPA+360 DR- ........................................................ CIRCLE PATH (POLAR) DEP PLCT PR+80 PA+180 R5 ................................... DEPART TANGENTIALLY L Z+100 F MAX M2 END PGM 211 MM

HEIDENHAIN Basic course G3/Upgrade course D02

211/2

Task:

Circular path with tangential connection (polar) CTP

Program(s):

100

158

76,

60

30 20 23,19 9°

Begin program Define workpiece blank Call tool data Move to clearance height Define pole Auxiliary point in polar coord. Contour Auxiliary point Retract tool, PGM end

5 0

20

100

90

40

0

20

0

BEGIN PGM . . . MM BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z... TOOL CALL . . . . . . S . . . L... ... ... ... ... ...

HEIDENHAIN Basic course G3/Upgrade course C01

212/1

Circular path with tangential connection (polar) CTP

Solution:

100

158

76,

60

30 20 23,19 9°

Complete program

5 0

20

100

90

40

20

0

0

0 1 2 3 4 5 6 7 8 9 10 11

BEGIN PGM 212 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+70 Z+0 TOOL CALL 13 Z S4000 ........................................... L Z+100 R0 F MAX L X-30 Y-30 R0 F MAX M3 ....................................... L Z-5 F MAX APPR LT X+0 Y+0 LEN5 RL F250 M8 ...................... L X+0 Y+30 L X+40 Y+60 CC Y+20 X+20 .......................................................... CTP PR+76,158 PA+23,199 ......................................

12 13 14 15

L Y+0 DEP LT LEN5 ............................................................ DEPART TANGENTIALLY L Z+100 R0 F MAX M2 END PGM 212 MM

R20 AUXILIARY POINT APPROACH STARTING POINT OF CONTOUR TANGENTIALLY POLE TANGENTIAL CIRCULAR PATH (POLAR)

HEIDENHAIN Basic course G3/Upgrade course D02

212/2

Polar coordinates (general)

Task:

Program(s):

30 100

P5

88

21

P6

P7

R90

32°

29

30°

P8 P1

50

P2

30°

40

45

45°

P4

P3

5 0

20

100

0

92

0

HEIDENHAIN Basic course G3/Upgrade course D02

252/1

Solution:

Polar coordinates (general)

30 100

P5

88

21

P6

P7

R90

32°

29

30°

P8 P1

50

P2

30°

40

45

45°

P4

P3

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

BEGIN PGM 252 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 13 Z S2500 ........................................... L Z+100 R0 F MAX L X+130 Y+50 F MAX M3 L Z-5 F MAX APPR LCT X+92 Y+50 R5 RL F250 M8 .................... L Y+40 CC X+92 Y+40 .......................................................... LP PR+45 PA-135 ..................................................... CC X+92 Y+50 LP PR+90 PA-150 CP PA+148 DR- ........................................................ L IX+30 IY+0 CC ............................................................................. LP PR+21 PA-60 CC X+92 Y+88 CTP PR+29 PA-90 ..................................................... L Y+50 DEP LCT X+130 Y+50 R5 ......................................... L Z+100 R0 F MAX M2 END PGM 252 MM

5 0

20

100

0

92

0

R20

APPROACH STARTING POINT OF CONTOUR TANGENTIALLY POLE STRAIGHT LINE (POLAR)

CIRCULAR PATH (POLAR) DEFINE AS POLE POSITION

TANGENTIAL PATH (POLAR) DEPART TANGENTIALLY

HEIDENHAIN Basic course G3/Upgrade course D02

252/2

Task:

Drilling cycle

Program(s):

100

70

8 30

0

20

100

75

50

20

0

0

BEGIN PGM . . . MM BLK-FORM 0.1 . . . X . . . Y . . . Z . . . BLK-FORM 0.2 X... Y... Z... TOOL CALL . . . . . . S . . . CYCL DEF . . . L Z+ . . .

Begin program Define workpiece blank Call tool data Define cycle Move to clearance height Starting point first hole / call cycle

L X . . . Y . . . M99

Second hole / call cycle

L X . . . Y . . . M99

Third hole / call cycle

L X . . . Y . . . M99

Retract tool, PGM end

...

HEIDENHAIN Basic course G3/Upgrade course

C01

201/1

Solution:

Drilling cycle

100

70

8 30

Complete program

0 1 2 3 4

5 6 7 8 9 10

BEGIN PGM 201 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 7 Z S1000 ............................................. CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-23 .................................................................. Q206=150 ................................................................. Q202=5 ..................................................................... Q210=0 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... L Z+100 R0 F9999 M3 L X+20 Y+30 M99 .................................................... L X+50 Y+70 M99 .................................................... L X+75 Y+30 M99 .................................................... L Z+100 R0 F MAX M2 END PGM 201 MM

0

20

100

75

50

20

0

0

R4 SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE STARTING POSITION 2ND HOLE 3RD HOLE

HEIDENHAIN Basic course G3/Upgrade course D02

201/2

Task:

Drilling with 200-series cycles

Program(s):

40H7

0

39,5

M30 x 2

50

Procedure:

• • • • •

Centering Drilling diameter 28 mm Boring Reaming Tapping

Cycle Cycle Cycle Cycle Cycle

0

25

35

70

50

0

-50

-50

1 203 202 201 2

HEIDENHAIN Basic course G3/Upgrade course

C01

260/1

Solution:

Drilling with 200-series cycles

40H7

0

39,5

M30 x 2

50

Complete program Centering

Drilling

0 1 2 3 4 5 6 7 8 9 10 11 12 13

0

25

35

70

50

0

-50

-50

BEGIN PGM 260 MM BLK FORM 0.1 Z X-50 Y-50 Z-70 BLK FORM 0.2 X+50 Y+50 Z+0 TOOL CALL 9 Z S1000 ............................................. R6 L Z+100 R0 F MAX CYCL DEF 1.0 PECKING CYCL DEF 1.1 SET UP 2 CYCL DEF 1.2 DEPTH -5 CYCL DEF 1.3 PECKG 5 CYCL DEF 1.4 DWELL 0 CYCL DEF 1.5 F200 L X+0 Y+0 R0 F9999 M3 L Z+2 M99 L Z+100 M6

14 TOOL CALL 11 Z S350 ............................................. 15 CYCL DEF 203 UNIVERSAL DRILLING Q200=5 ..................................................................... Q201=-80 .................................................................. Q206=100 ................................................................. Q202=15 ................................................................... Q210=0 ..................................................................... Q203=+0 ................................................................... Q204=20 ................................................................... Q212=2 ..................................................................... Q213=2 ..................................................................... Q205=5 ..................................................................... Q211=0 ..................................................................... Q208=500 ................................................................. 16 CYCL CALL M3 17 L Z+100 M6

R10 SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE DECREMENT NR OF BREAKS MIN. PLUNGING DEPTH DWELL TIME AT DEPTH RETRACTION FEED RATE

HEIDENHAIN Basic course G3/Upgrade course D02

260/2

Solution:

Drilling with 200-series cycles

Boring

18 TOOL CALL 13 Z S500 ............................................. 19 CYCL DEF 202 BORING Q200=2 ..................................................................... Q201=-35 .................................................................. Q206=250 ................................................................. Q211=0 ..................................................................... Q208=500 ................................................................. Q203=+0 ................................................................... Q204=20 ................................................................... Q214=0 ..................................................................... 20 CYCL CALL M3 21 L Z+100 M6

R20

22 TOOL CALL 13 Z S100 ............................................. 23 CYCL DEF 201 REAMING Q200=5 ..................................................................... Q201=-25 .................................................................. Q206=100 ................................................................. Q211=0 ..................................................................... Q208=300 ................................................................. Q203=+0 ................................................................... Q204=20 ................................................................... 24 CYCL CALL M3 25 L Z+100 M6

R20

Reaming

Tapping

26 27 28 29 30 31 32 33

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING DWELL TIME AT DEPTH RETRACTION FEED RATE SURFACE COORDINATE 2ND SET UP CLEARANCE DISENGAGING DIRECTION

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING DWELL TIME AT DEPTH RETRACTION FEED RATE SURFACE COORDINATE 2ND SET UP CLEARANCE

TOOL CALL 12 Z S50 ............................................... R15 CYCL DEF 2.0 TAPPING CYCL DEF 2.1 SET UP 5 CYCL DEF 2.2 DEPTH -45 CYCL DEF 2.3 DWELL 0 CYCL DEF 2.4 F100 L Z-30 M3 CYCL CALL

34 L Z+100 M2 35 END PGM 260 MM

HEIDENHAIN Basic course G3/Upgrade course D02

260/3

Task:

Slot plate

Program(s):

100

35°

R2

5 12

60

15

75

20°

25

0

10

20

100

50

40

0

0

HEIDENHAIN Basic course G3/Upgrade course C01

210/1

Solution:

Slot plate

100

35°

R2

5 12

60

15

75

20°

25

Complete program

0 1 2 3 4 5

BEGIN PGM 210 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 8 Z S1000 ............................................. L Z+100 R0 F9999 M3 CYCL DEF 210 SLOT RECIP. PLNG Q200=2 ..................................................................... Q201=-10 .................................................................. Q207=100 ................................................................. Q202=5 ..................................................................... Q215=0 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... Q216=+50 ................................................................. Q217=+25 ................................................................. Q218=75 ................................................................... Q219=15 ................................................................... Q224=+20 ................................................................. 6 CYCL CALL

7 CYCL DEF 211 CIRCULAR SLOT Q200=2 ..................................................................... Q201=-10 .................................................................. Q207=250 ................................................................. Q202=5 ..................................................................... Q215=0 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... Q216=+40 ................................................................. Q217=+60 ................................................................. Q244=50 ................................................................... Q219=12 ................................................................... Q245=+35 ................................................................. Q248=180 ................................................................. 8 CYCL CALL

0

10

20

100

50

40

0

0

R5

SET UP CLEARANCE DEPTH FEED RATE FOR MILLNG PLUNGING DEPTH MACHINING OPERATION SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS FIRST SIDE LENGTH SECOND SIDE LENGTH ANGLE OF ROTATION

SET UP CLEARANCE DEPTH FEED RATE FOR MILLNG PLUNGING DEPTH MACHINING OPERATION SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS PITCH CIRCLE DIAMETER SECOND SIDE LENGTH STARTING ANGLE ANGULAR LENGTH

9 L Z+100 M2 10 END PGM 210 MM

HEIDENHAIN Basic course G3/Upgrade course D02

210/2

Task:

Bushing plate

Program(s):

0

15

20 +0,05

6,5

11

6,6

100

60°

R3

0

85

50

15

0

6,8

15

100

85

50

15

0

0

HEIDENHAIN Basic course G3/Upgrade course

C01

262/1

Program layout:

Bushing plate

Conventional preparation:

BLK- FORM

First tool Rough out circular pocket

TOOL CALL . . . CYCL DEF . . . . . . M99

(Oversizing DR!)

Rough out first long CYCL DEF . . . slot CYCL CALL Rough out second long slot

FN 0: Q . . . CYCL CALL . . . M6

Second tool Finish first short slot

TOOL CALL . . . CYCL DEF . . . CYCL CALL

Finish second short slot

FN 0: Q . . . CYCL CALL

Tool change

Finish first long slot CYCL DEF . . . CYCL CALL Finish second long slot

FN 0: Q . . . CYCL CALL

First rounded slot

CYCL DEF . . . CYCL CALL

Second rounded slot FN 0: Q . . . CYCL CALL Finish circular pocket

CYCL DEF . . . CYCL CALL

Retract tool, end

L Z100 M2

HEIDENHAIN Basic course G3/Upgrade course

C01

262/2

Solution:

Bushing plate

0

15

20 +0,05

6,5

11

6,6

100

60°

R3 0

85

50

15

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13

14 15 16 17

BEGIN PGM 262 MM BLK FORM 0.1 Z X+0 Y+0 Z-15 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 6 Z S1500 DR+0,5 ................................ L Z+100 R0 F9999 L X+50 Y+50 M3 CYCL DEF 5.0 CIRCULAR POCKET CYCL DEF 5.1 SET UP2 CYCL DEF 5.2 DEPTH -15 CYCL DEF 5.3 PECKG 5 F100 CYCL DEF 5.4 RADIUS 10 CYCL DEF 5.5 F200 DR+ L Z+2 M99 CYCL DEF 210 SLOT RECIP. PLNG Q200=2 ..................................................................... Q201=-6 .................................................................... Q207=200 ................................................................. Q202=6 ..................................................................... Q215=0 ..................................................................... Q203=+0 ................................................................... Q204=20 ................................................................... Q216=+50 ................................................................. Q217=+15 ................................................................. Q218=81 ................................................................... Q219=11 ................................................................... Q224=+0 ................................................................... CYCL CALL FN 0: Q217 = +85 CYCL CALL L Z+100 M6

0

6,8

15

100

85

50

15

0

0

R3

SET UP CLEARANCE DEPTH FEEDRATE FOR MILNG PLUNGING DEPTH MACHINING OPERATION SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS FIRST SIDE LENGTH SECOND SIDE LENGTH ANGLE OF ROTATION

HEIDENHAIN Basic course G3/Upgrade course D02

262/3

Solution:

Bushing plate

18 TOOL CALL 5 Z S2000 ............................................. 19 CYCL DEF 210 SLOT RECIP. PLNG Q200=2 ..................................................................... Q201=-9 .................................................................... Q207=200 ................................................................. Q202=5 ..................................................................... Q215=0 ..................................................................... Q203=-6 .................................................................... Q204=20 ................................................................... Q216=+50 ................................................................. Q217=+15 ................................................................. Q218=76,6 ................................................................ Q219=6,6 .................................................................. Q224=+0 ................................................................... 20 CYCL CALL M3 21 FN 0: Q217 = +85 22 CYCL CALL 23 CYCL DEF 210 SLOT RECIP. PLNG Q200=2 ..................................................................... Q201=-6,8 ................................................................. Q207=200 ................................................................. Q202=6,8 .................................................................. Q215=0 ..................................................................... Q203=+0 ................................................................... Q204=20 ................................................................... Q216=+50 ................................................................. Q217=+15 ................................................................. Q218=81 ................................................................... Q219=11 ................................................................... Q224=+0 ................................................................... 24 CYCL CALL 25 FN 0: Q217 = +85 26 CYCL CALL 27 CYCL DEF 211 CIRCULAR SLOT Q200=2 ..................................................................... Q201=-15 .................................................................. Q207=200 ................................................................. Q202=5 ..................................................................... Q215=0 ..................................................................... Q203=+0 ................................................................... Q204=20 ................................................................... Q216=+50 ................................................................. Q217=+50 ................................................................. Q244=60 ................................................................... Q219=6,6 .................................................................. Q245=-30 .................................................................. Q248=60 ................................................................... 28 CYCL CALL 29 FN 0: Q245 = +150 30 CYCL CALL 31 CYCL DEF 214 C. POCKT FINSHNG Q200=2 ..................................................................... Q201=-15 .................................................................. Q206=250 ................................................................. Q202=8 ..................................................................... Q207=250 ................................................................. Q203=+0 ................................................................... Q204=20 ................................................................... Q216=+50 ................................................................. Q217=+50 ................................................................. Q222=19 ................................................................... Q223=20,02 .............................................................. 32 CYCL CALL 33 L Z+100 R0 F MAX M2 34 END PGM 262 MM

R2,5 SET UP CLEARANCE. DEPTH FEEDRATE FOR MILNG PLUNGING DEPTH MACHINING OPERATION SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS FIRST SIDE LENGTH SECOND SIDE LENGTH ANGLE OF ROTATION

SET UP CLEARANCE DEPTH FEED RATE FOR MILLNG PLUNGING DEPTH MACHINING OPERATION SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS FIRST SIDE LENGTH SECOND SIDE LENGTH ANGLE OF ROTATION

SET UP CLEARANCE DEPTH FEEDRATE FOR MILLING PLUNGING DEPTH MACHINING OPERATION SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS PITCH CIRCLE DIAMETER SECOND SIDE LENGTH STARTING ANGLE ANGULAR LENGTH

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH FEEDRATE FOR MILLING SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS WORKPIECE BLANK DIAMETER FINISHED PART DIAMETER

HEIDENHAIN Basic course G3/Upgrade course D02

262/4

Task:

Die I

Program(s):

100

30

50

90H7

60

25

, R5

10 5 0

20

100

50

0

0

HEIDENHAIN Basic course G3/Upgrade course

C01

265/1

Solution:

Die I

100

30

50

90H7

60

5

,2

R5

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

10 5 0

20

100

50

0

0

BEGIN PGM 265 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 9 Z S500 DR+1 ..................................... R6 L Z+100 R0 F9999 CC X+50 Y+50 LP PR+70 PA+0 L Z+2 M3 L Z-10 F200 CP PA+360 DRLP PR+60 CP PA+360 DRLP PR+45 RL CP PA+360 DRLP PR+65 PA+0 R0 L Z+2 CYCL DEF 4.0 POCKET MILLING CYCL DEF 4.1 SET UP 2 CYCL DEF 4.2 DEPTH -5 CYCL DEF 4.3 PECKG 5 F100 CYCL DEF 4.4 X60 CYCL DEF 4.5 Y30 CYCL DEF 4.6 F250 DR- RADIUS 7 L X+50 Y+50 R0 F MAX M99 L Z+100 F MAX M6

HEIDENHAIN Basic course G3/Upgrade course D02

265/2

Solution:

Die I

25 TOOL CALL 8 Z S1000 ............................................. 26 CYCL DEF 212 POCKET FINISHING Q200=2 ..................................................................... Q201=-5 .................................................................... Q206=250 ................................................................. Q202=5 ..................................................................... Q207=250 ................................................................. Q203=+0 ................................................................... Q204=20 ................................................................... Q216=+50 ................................................................. Q217=+50 ................................................................. Q218=60 ................................................................... Q219=30 ................................................................... Q220=5,25 ................................................................ Q221=0 ..................................................................... 27 CYCL CALL M3 28 CYCL DEF 215 C. STUD FINISHNG Q200=2 ..................................................................... Q201=-10 .................................................................. Q206=250 ................................................................. Q202=10 ................................................................... Q207=250 ................................................................. Q203=+0 ................................................................... Q204=20 ................................................................... Q216=+50 ................................................................. Q217=+50 ................................................................. Q222=92 ................................................................... Q223=90 ................................................................... 29 CYCL CALL

R5 SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH FEED RATE FOR MILLNG SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS FIRST SIDE LENGTH SECOND SIDE LENGTH CORNER RADIUS ALLOWANCE IN 1ST AXS

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH FEED RATE FOR MILLNG SURFACE COORDINATE 2ND SET UP CLEARANCE CENTER IN 1ST AXIS CENTER IN 2ND AXIS WORKPIECE BLANK DIAMETER FINISHED PART DIAMETER

30 L Z+100 R0 F MAX M2 31 END PGM 265 MM

HEIDENHAIN Basic course G3/Upgrade course D02

265/3

Linear hole pattern

Task:

Program(s):

100

84 76 68 60 52 44 6

36 28 20

0

20

40

100

85

75

65

55

45

35

25

15

0

0

HEIDENHAIN Basic course G3/Upgrade course D02

220/1

Solution:

Linear hole pattern

100

84 76 68 60 52 44 6

36 28 20

Main program

Retract tool, end

SPGM

0 1 2 3 4 5

BEGIN PGM 220 MM BLK FORM 0.1 Z X+0 Y+0 Z-40 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 6 Z S1500 ............................................. L Z+100 R0 F9999 M3 CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-20 .................................................................. Q206=100 ................................................................. Q202=5 ..................................................................... Q210=0 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... 6 CALL LBL 1

0

20

40

100

85

75

65

55

45

35

25

15

0

0

R3

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE

7 L Z+100 M2

8 LBL 1 9 CYCL DEF 221 CARTESIAN PATTRN Q225=+15 ................................................................. Q226=+20 ................................................................. Q237=+10 ................................................................. Q238=+8 ................................................................... Q242=8 ..................................................................... Q243=9 ..................................................................... Q224=+0 ................................................................... Q200=2 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... 10 LBL 0 11 END PGM 220 MM

STARTNG PNT 1ST AXIS STARTNG PNT 2ST AXIS SPACING IN 1ST AXIS SPACING IN 2ND AXIS NUMBER OF COLUMNS NUMBER OF ROWS ANGLE OF ROTATION SET UP CLEARANCE SURFACE COORDINATE 2ND SET UP CLEARANCE

HEIDENHAIN Basic course G3/Upgrade course D02

220/2

Hole pattern

Task:

100

Program(s):

20

°

0

30

R5

80

15

6

15°

10

0

20 17

100

90

30

0

0

HEIDENHAIN Basic course G3/Upgrade course C01

221/1

Solution:

Hole pattern

100

20

°

30

0 R5

80

15

6

15°

10

Main program

Retract tool, end

SPGM

0 1 2 3 4 5

BEGIN PGM 221 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 6 Z S1500 ............................................. L Z+100 R0 F9999 M3 CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-17 .................................................................. Q206=150 ................................................................. Q202=6 ..................................................................... Q210=0 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... 6 CALL LBL 1 7 CALL LBL 2

0

20 17

100

90

30

0

0

R3

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE

8 L Z+100 M2

9 LBL 1 10 CYCL DEF 220 POLAR PATTERN Q216=+90 ................................................................. Q217=+10 ................................................................. Q244=100 ................................................................. Q245=+90 ................................................................. Q246=+180 ............................................................... Q247=15 ................................................................... Q241=7 ..................................................................... Q200=2 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... 11 LBL 0

CENTER IN 1ST AXIS CENTER IN 2ND AXIS PITCH CIRCLE DIA. STARTING ANGLE STOPPING ANGLE STEPPING ANGLE NR OF REPETITIONS SET UP CLEARANCE SURFACE COORDINATE 2ND SET UP CLEARANCE

HEIDENHAIN Basic course G3/Upgrade course D02

221/2

Solution:

Hole pattern

12 LBL 2 13 CYCL DEF 221 CARTESIAN PATTRN Q225=+30 ................................................................. Q226=+30 ................................................................. Q237=+15 ................................................................. Q238=+20 ................................................................. Q242=5 ..................................................................... Q243=2 ..................................................................... Q224=+80 ................................................................. Q200=2 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... 14 LBL 0 15 END PGM 221 MM

STARTNG PNT 1ST AXIS STARTNG PNT 2ND AXIS SPACING IN 1ST AXIS SPACING IN 2ND AXIS NUMBER OF COLUMNS NUMBER OF ROWS ANGLE OF ROTATION SET UP CLEARANCE SURFACE COORDINATE 2ND SET UP CLEARANCE

HEIDENHAIN Basic course G3/Upgrade course C01

221/3

Task:

Guide plate

Program(s):

0 M6 -10 -22 -25 -30 100 90

70

50

30

10

Procedure:

• • • •

Shoulders Centering Drilling Tapping

100

85

70

30

15

0

0

Cycle 200 Cycle 200 Cycle 2

HEIDENHAIN Basic course G3/Upgrade course

C01

261/1

Solution:

Guide plate

0 M6 -10 -22 -25 -30 100 90

70

50

30

10

Main program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

100

85

70

30

15

0

0

BEGIN PGM 261 MM BLK FORM 0.1 Z X+0 Y+0 Z-30 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 13 Z S500 ............................................. R20 L Z+100 R0 F9999 L X-50 Y-50 L Z+2 M3 L Z-10 F200 APPR LCT X+30 Y+0 R2 RL L Y+100 DEP LCT X+0 Y+150 R2 L X+100 F MAX APPR LCT X+70 Y+100 R2 RL L Y+0 DEP LCT X+100 Y-50 R2 L Z+100 R0 F9999 M6

16 TOOL CALL 4 Z S2000 ............................................. 17 CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-3,5 ................................................................. Q206=250 ................................................................. Q202=3,5 .................................................................. Q210=0 ..................................................................... Q203=-10 .................................................................. Q204=20 ................................................................... 18 L Z+5 M3 19 CALL LBL 1 20 L Z+100 M6

R2,5 SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE

HEIDENHAIN Basic course G3/Upgrade course D02

261/2

Solution:

Guide plate

21 TOOL CALL 5 Z S2000 ............................................. 22 CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-15 .................................................................. Q206=250 ................................................................. Q202=5 ..................................................................... Q210=0 ..................................................................... Q203=-10 .................................................................. Q204=20 ................................................................... 23 L Z+5 M3 24 CALL LBL 1 25 L Z+100 M6 26 27 28 29 30 31 32 33

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE

TOOL CALL 6 Z S300 ............................................... R3 CYCL DEF 2.0 TAPPING CYCL DEF 2.1 SET UP 2 CYCL DEF 2.2 DEPTH -12 CYCL DEF 2.3 DWELL 0 CYCL DEF 2.4 F300 L Z+5 M3 CALL LBL 1

Retract tool, end

34 L Z+100 R0 F MAX M2

SPGM

35 LBL 1 36 CYCL DEF 221 CARTESIAN PATTRN Q225=+15 ................................................................. Q226=+10 ................................................................. Q237=+70 ................................................................. Q238=+20 ................................................................. Q242=2 ..................................................................... Q243=5 ..................................................................... Q224=+0 ................................................................... Q200=2 ..................................................................... Q203=-10 .................................................................. Q204=20 ................................................................... 37 LBL 0 38 END PGM 261 MM

SPGM, end

R2,5

STARTNG PNT 1ST AXIS STARTNG PNT 2ND AXIS SPACING IN 1ST AXIS SPACING IN 2ND AXIS NUMBER OF COLUMNS NUMBER OF LINES ANGLE OF ROTATION SET UP CLEARANCE SURFACE COORDINATE 2ND SET UP CLEARANCE

HEIDENHAIN Basic course G3/Upgrade course D02

261/3

Die II

Program(s):

12

x

30

°

Task:

8

8

5

30°

80

M5

6

10

10 0

10

20 15 12

10

HEIDENHAIN Basic course G3/Upgrade course

C01

266/1

Program layout:

Die II

Define workpc. blank BLK FORM

CALL PGM . . . Drilling

5 mm

PGM-Call

CYCL DEF . . . CALL LBL . . .

SPGM1-Call

L Z100 . . . M6

Tool change

Centering, pitch circle CYCL DEF . . .

Drilling, pitch circle

Tapping

CALL LBL . . .

SPGM2-Call

L Z100 . . . M6

Tool change

CYCL DEF . . . CALL LBL . . .

SPGM2-Call

L Z100 . . . M6

Tool change

CYCL DEF . . . CALL LBL . . .

Retract tool, end

L Z . . . M2

SPGM1

LBL 1

Cartesian pattern

CYCL DEF . . .

SPGM2-Call

LBL 0 SPGM2

LBL 2

Polar pattern

CYCL DEF . . . LBL 0

Copy help program from PGM 265

HEIDENHAIN Basic course G3/Upgrade course

C01

266/2

Die II

12

x

° 30

Solution:

8

8

5

30°

80

M5

6

10

10

Main program

0 1 2 3 4 5 6

BEGIN PGM 266 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 CALL PGM 26501 ..................................................... TOOL CALL 5 Z S2000 ............................................. L Z+100 M3 CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-6 .................................................................... Q206=200 ................................................................. Q202=6 ..................................................................... Q210=0 ..................................................................... Q203=-5 .................................................................... Q204=20 ................................................................... 7 CALL LBL 1 8 L Z+100 R0 F9999 M6

9 10 11 12 13 14 15 16 17 18

0

10

20 15 12

10

HELP PROGRAM R2,5

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE

TOOL CALL 4 Z S2000 ............................................. R2 L Z+100 M3 CYCL DEF 1.0 PECKING CYCL DEF 1.1 SET UP 2 CYCL DEF 1.2 DEPTH -2,8 CYCL DEF 1.3 PECKG 2,8 CYCL DEF 1.4 DWELL 0 CYCL DEF 1.5 F200 CALL LBL 2 L Z+100 M6

19 TOOL CALL 5 Z S1500 ............................................. 20 L Z+100 M3 21 CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-15 .................................................................. Q206=200 ................................................................. Q202=8 ..................................................................... Q210=0 ..................................................................... Q203=+0 ................................................................... Q204=20 ................................................................... 22 CALL LBL 2 23 L Z+100 M6

R2,5

SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE

HEIDENHAIN Basic course G3/Upgrade course D02

266/3

Solution:

Die II

24 25 26 27 28 29 30 31

TOOL CALL 6 Z S300 ............................................... R3 L Z+100 M3 CYCL DEF 2.0 TAPPING CYCL DEF 2.1 SET UP 2 CYCL DEF 2.2 DEPTH -12 CYCL DEF 2.3 DWELL 1 CYCL DEF 2.4 F300 CALL LBL 2

32 L Z+100 R0 F MAX M2

SPGM

33 LBL 1 34 CYCL DEF 221 CARTESIAN PATTRN Q225=+30 ................................................................. Q226=+42 ................................................................. Q237=+10 ................................................................. Q238=+8 ................................................................... Q242=5 ..................................................................... Q243=3 ..................................................................... Q224=+0 ................................................................... Q200=2 ..................................................................... Q203=-6 .................................................................... Q204=20 ................................................................... 35 LBL 0 36 LBL 2 37 CYCL DEF 220 POLAR PATTERN Q216=+50 ................................................................. Q217=+50 ................................................................. Q244=80 ................................................................... Q245=+0 ................................................................... Q246=+360 ............................................................... Q247=30 ................................................................... Q241=12 ................................................................... Q200=2 ..................................................................... Q203=+0 ................................................................... Q204=20 ................................................................... 38 LBL 0 39 END PGM 266 MM

STARTNG PNT 1ST AXIS STARTNG PNT 2ND AXIS SPACING IN 1ST AXIS SPACING IN 2ND AXIS NUMBER OF COLUMNS NUMBER OF LINES ANGLE OF ROTATION SET UP CLEARANCE SURFACE COORDINATE 2ND SET UP CLEARANCE

CENTER IN 1ST AXIS CENTER IN 2ND AXIS PITCH CIRCLE DIA. STARTING ANGLE STOPPING ANGLE STEPPING ANGLE NR OF REPETITIONS SET UP CLEARANCE SURFACE COORDINATE 2ND SET UP CLEARANCE

HEIDENHAIN Basic course G3/Upgrade course D02

266/4

Task:

Hexagon

Program(s):

100

5

6

° 60

1

4

50

R40

3

2 5 0

20

100

50

0

0

HEIDENHAIN Basic course G3/Upgrade course

C01

268/1

Solution:

Hexagon

100

5

6

° 60

1

4

50

R40

3

2

Complete program

0 1 2 3 4 5 6 7 8

BEGIN PGM 268 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 12 Z S500 ............................................. L Z+100 R0 F9999 CC X+50 Y+50 .......................................................... LP PR+80 PA+0 R0 ................................................... L Z-5 M3 APPR PLCT PR+40 PA+0 R2 RL F100 ......................

5 0

20

100

0

50

0

R15 POLE AUXILIARY POINT STARTING POINT

9 LBL 1 ........................................................................ DEFINE LABEL 10 LP PR+40 IPA-60 11 CALL LBL 1 REP 5/5 ................................................. CALL LABEL WITH REPEATS 12 DEP PLCT PR+80 PA+0 R2 F200 .............................. AUXILIARY POINT 13 L Z+100 R0 F MAX M2 14 END PGM 268 MM

HEIDENHAIN Basic course G3/Upgrade course D02

268/2

Task:

Drilled plate – slanted columns

Program(s):

100

85

70

55

40

25

5

10

3

0

20 15

100

80

70

50

40

20

10

0

0

HEIDENHAIN Basic course G3/Upgrade course D02

270/1

Program layout:

100

5

10 Pre-position 0

LBL 3

LBL 2

0

20 15

100

80

70

50

20

10

0

3

40

Move up and down columns (meandering)

Drilled plate – slanted columns

Drilling pattern

LX...Y... LZ...

Absolute pre-position Set up clearance

LBL 1

Define label 1

L IX . . . M99

Cross over to first hole

LBL 2

123456789 123456789 123456789 123456789 123456789

L IY . . . M99 CALL LBL 2 REP . . .

Move up the column 123456789 123456789 123456789 123456789 123456789 123456789

L IX . . . M99 LBL 3

Cross over two second column 123456789 123456789 123456789 123456789 123456789

L IY . . . M99 CALL LBL 3 REP . . . CALL LBL 1 REP . . .

Define label 2

123456789 123456789 123456789 123456789 123456789 123456789

Define label 2 Move down the column Remaining groups

HEIDENHAIN Basic course G3/Upgrade course D02

270/2

Solution:

Drilled plate – slanted columns

100

85

70

55

40

25

5

10

3

Main program

0 1 2 3

0

20 15

100

80

70

50

40

20

10

0

0

BEGIN PGM 270 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 L Z+100 R0 F MAX

4 TOOL CALL 5 Z S4000 ............................................. 5 CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-15 .................................................................. Q206=250 ................................................................. Q202=8 ..................................................................... Q210=0 ..................................................................... Q203=+0 ................................................................... Q204=20 ...................................................................

R2,5 SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE

6 L X-10 Y+10 R0 F9999 M3 7 L Z+2 8 LBL 1 9 L IX+20 M99 10 LBL 2 11 L IX+3 IY+15 M99 12 CALL LBL 2 REP 4/4 13 L IX+10 M99 14 LBL 3 15 L IX-3 IY-15 M99 16 CALL LBL 3 REP 4/4 17 CALL LBL 1 REP 2/2 18 L Z+100 R0 F MAX M2 19 END PGM 270 MM

HEIDENHAIN Basic course G3/Upgrade course D02

270/3

Task:

FK Cam

Program(s):

100

R15

75

35

5

R2

25

R2

0

5 0

20

100

75

50

30

0

0

HEIDENHAIN Basic course G3/Upgrade course C03

288/1

Solution:

FK Cam

100

R15

75

35

5

R2

25

R2

0

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

5 0

20

100

75

50

30

0

0

BEGIN PGM 288 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 10 Z S4000 ........................................... R7,5 L Z+100 R0 F MAX L X-15 Y+35 R0 F MAX M3 L Z-5 R0 F MAX APPR LCT X+5 Y+35 R5 RL F400 FC DR- R25 CCX+30 CCY+35 FLT FCT DR- R15 CCX+50 CCY+75 FLT FCT DR- R20 CCX+75 CCY+25 FLT FCT X+5 Y+35 DR- R25 CCX+30 CCY+35 DEP LCT X-15 Y+35 R5 L Z+100 R0 F MAX M2 END PGM 288 MM

HEIDENHAIN Basic course G3/Upgrade course D02

288/2

Task:

Maltese cross

Program(s):

R3

8

50

25°

74 100

0

48

0

10

20

50

0

-50

-50

HEIDENHAIN Basic course G3/Upgrade course D02

275/1

Solution:

Maltese cross

R3 8

50

25°

74 100

0

48

Main program

0 1 2 3 4 5 6 7 8 9 10 11

0

10

20

50

0

-50

-50

BEGIN PGM 275 MM BLK FORM 0.1 Z X-50 Y-50 Z-20 BLK FORM 0.2 X+50 Y+50 Z+0 TOOL CALL 8 Z S250074 ......................................... R5 L Z+100 R0 F MAX L Z+2 R0 F MAX M3 CALL LBL 10 LBL 5 CYCL DEF 10.0 ROTATION CYCL DEF 10.1 IROT-90 CALL LBL 10 CALL LBL 5 REP 2/2

12 CYCL DEF 10.0 ROTATION 13 CYCL DEF 10.1 ROT+0 14 L Z+100 R0 F MAX M2

SPGM

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

LBL 10 CC X+0 Y+0 LP PR+70 PA+180 R0 F1000 L Z-10 APPR PLCT PR+50 PA+180 R2 RL F500 FPOL X+0 Y+0 FC DR- R50 CCX+0 CCY+0 FL AN+65 PDX+0 PDY+0 D48 FSELECT 4 FC DR+ R38 CCPR+75 CCPA+135 FSELECT 2 FL AN+25 PDX+0 PDY+0 D48 FSELECT 1 FC PR+50 PA+90 DR- R50 CCA+90 DEP PLCT PR+70 PA+90 R2 LBL 0 END PGM 275 MM

HEIDENHAIN Basic course G3/Upgrade course D02

275/2

FK Hammer

Task:

Program(s):

100

55°

R1 5

R1 1

Z

20

65

Detail Z

7,5

40

55

°

R1 5

30°

R1 1

3

R1

2,5

°

80

1

R1

15

5 0

20

100

30

15

0

0

HEIDENHAIN Basic course G3/Upgrade course D02

289/1

Solution:

FK Hammer

100

R1 5

55°

R1

1

Z

20

65

Detail Z

,5

40

55

°

R1 5

R1

30°

1

37

R1

2,5

°

80

R1

15

1

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

5 0

20

100

30

15

0

0

BEGIN PGM 289 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 11 Z S4000 L Z+100 R0 F MAX CC X+30 Y+40 LP PR+60 PA+30 R0 F MAX M3 L Z+2 R0 F MAX L Z-5 R0 F100 APPR PLCT PR+37,5 PA+30 R5 RL F400 FL LEN10 AN-60 FL AN-150 FCT DR+ R12,5 FLT AN-100 FCT DR- R11 CCX+30 CCY+15 FLT FCT DR- R11 CCX+15 CCY+65 FLT AN-55 FCT DR+ R15 FLT AN+30 FPOL X+30 Y+40 FL PR+37,5 PA+30 LEN10 AN-60 DEP PLCT PR+60 PA+30 R5 L Z+100 R0 F MAX M2 END PGM 289 MM

HEIDENHAIN Basic course G3/Upgrade course D02

289/2

Task:

FK Hook-type spanner wrench

Program(s):

35 28 5

20

30°

8

R60

R8

4

0 -5

R1

0

10°

R4

R5

R12

0 R60

R7

Depth 5 mm

160

134 138

0

100 105

-35

HEIDENHAIN Basic course G3/Upgrade course C01

295/1

Solution:

FK Hook-type spanner wrench

35 28

5

20

30°

R1

R60

R8

4

0 -5

8

10°

R4 0

R5

R12

0

R60

R7

Depth 5 mm

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

160

134 138

0

100 105

-35

BEGIN PGM 295 MM BLK FORM 0.1 Z X+0 Y-35 Z-20 BLK FORM 0.2 X+160 Y+35 Z+0 TOOL CALL 8 Z S4000 ............................................. R5 L Z+100 R0 F MAX L X-10 Y-10 R0 F MAX L Z-5 R0 F MAX M3 APPR LCT X+0 Y+0 R2 RR F400 FL AN+0 FCT DR- R70 FCT DR+ R60 CCX+105 CCY+28 FSELECT 2 FCT DR+ R12 FCT DR+ R18 CCX+138 CCY-5 FLT LEN5 AN+170 FL X+134 AN-150 FSELECT 1 FL LEN4 IAN-90 FCT DR- R8 FCT DR- R60 CCX+105 FSELECT 1 FCT DR- R40 CCX+100 FCT Y+20 DR+ R5 FSELECT 2 FLT X+0 AN+180 FSELECT 1 L Y+0 DEP LCT X-10 Y-10 R2 L Z+100 R0 FMAX M2 END PGM 295 MM

HEIDENHAIN Basic course G3/Upgrade course D02

295/2

0

100

78

Program(s):

57 63

42

0

20

35

Subprogram (Groups of holes)

20 18

Task:

0 10 12



➁ ➂

4

25 27 32

47

70

BEGIN PGM . . . MM ○ ○

Begin program

TOOL CALL . . .

Call tool data

CYCL DEF . . . L Z+ . . .

Define cycle Move to clear. height

L X... Y... L Z...

Start. pos.-hole group ➀ Set up clearance

CALL LBL . . .

Call SPGM

L X... Y...

Start. pos.-hole group ➁

CALL LBL . . .

Call SPGM

L X... Y...

Start. pos.-hole group ➂ Call SPGM

CALL LBL . . . Retract tool, end

L Z +100 R0 F9999 M2

SPGM

LBL . . .

SPGM end

LBL 0

HEIDENHAIN Basic course G3/Upgrade course D02

215/1

0

20 18

100

78

57 63

42

20

35

Subprogram (Groups of holes)

0

Solution:

0 10 12



➁ ➂

4

25 27 32

47

70

Main program

0 1 2 3 4

5 6 7 8

BEGIN PGM 215 MM BLK FORM 0.1 Z X+0 Y-70 Z-20 BLK FORM 0.2 X+100 Y+0 Z+0 TOOL CALL 4 Z S4000 ............................................. CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-18 .................................................................. Q206=200 ................................................................. Q202=4 ..................................................................... Q210=0 ..................................................................... Q203=+0 ................................................................... Q204=2 ..................................................................... L Z+100 R0 F MAX ................................................... L X+20 Y-10 R0 F MAX ............................................ L Z+2 R0 F MAX M13 CALL LBL 1 ..............................................................

CALL TOOL DATA, R2 SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE CLEARANCE HEIGHT STARTING POINT-HOLE GROUP ➀ CALL SPGM

9 L X+63 Y-12 F MAX ................................................. STARTING POINT-HOLE GROUP ➁ 10 CALL LBL 1 .............................................................. CALL SPGM 11 L X+42 Y-32 F MAX ................................................. STARTING POINT-HOLE GROUP ➂ 12 CALL LBL 1 .............................................................. CALL SPGM Retract tool, end

13 L Z+100 R0 F MAX M2

SPGM

14 15 16 17 18 19 20

SPGM, end

LBL 1 CYCL CALL L IX+15 F MAX M99 L IY-15 F MAX M99 .................................................. DRILLING PATTERN L IX-15 F MAX M99 LBL 0 END PGM 215 MM

HEIDENHAIN Basic course G3/Upgrade course D02

215/2

Task:

Bolt hole circle segments with several tools

Program(s):

M6

90

11

0

60

60°

70 50

60°

30 0

20 15 12

150

110

40

0

0

HEIDENHAIN Basic course G3/Upgrade course C02

280/1

Program layout:

Nesting for double bolt hole circles

Conventional Preparation:

BLK- FORM

Centering

TOOL CALL . . . CYCL DEF / L Z+100 CALL LBL 1

Drilling

TOOL CALL . . . CYCL DEF . . . CALL LBL 1

Tapping

TOOL CALL . . . CYCL DEF . . . CALL LBL 1

Retract tool, end

L Z100 M2

SPGM1

LBL 1 Circle center-left

CALL LBL 2

Call bolt hole circle seg.

CC X . . . Y . . .

Circle center-right

CALL LBL 2

Call bolt hole circle seg.

○ ○ ○

CC X . . . Y . . .

SPGM1 end

LBL 0

SPGM2, Bolt hole circle segments

LBL 2 LP PR . . . PA . . . M3 L Z+2 M99 ○ ○

LBL 3 CALL LBL 3 REP . . . Partial repeat

LP PR . . . PA . . . ○ ○

LBL 4 CALL LBL 4 REP . . . SPGM2 end

Starting position 123456789 123456789 123456789 123456789 123456789 123456789

Remaining holes

123456789 123456789 123456789 123456789 123456789 123456789

123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789

LBL 0

HEIDENHAIN Basic course G3/Upgrade course C03

280/2

Solution:

Bolt hole circle segments with several tools

M6

90

11

0

60

60°

70

50

60°

30

Main program

0 1 2 3 4 5 6 7 8 9 10 11 12

0

20 15 12

150

BEGIN PGM 280 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+150 Y+60 Z+0 TOOL CALL 4 Z S2000 ............................................. R2 L Z+100 R0 F9999 CYCL DEF 1.0 PECKING CYCL DEF 1.1 SET UP 2 CYCL DEF 1.2 DEPTH -3,5 CYCL DEF 1.3 PECKG 3,5 CYCL DEF 1.4 DWELL 0 CYCL DEF 1.5 F200 CALL LBL 1 L Z+100 M6

13 TOOL CALL 5 Z S1500 ............................................. 14 CYCL DEF 200 DRILLING Q200=2 ..................................................................... Q201=-15 .................................................................. Q206=250 ................................................................. Q202=8 ..................................................................... Q210=0 ..................................................................... Q203=+0 ................................................................... Q204=20 ................................................................... 15 CALL LBL 1 16 L Z+100 M6 17 18 19 20 21 22 23

110

0

40

0

R2,5 SET UP CLEARANCE DEPTH FEED RATE FOR PLUNGING PLUNGING DEPTH DWELL TIME AT TOP SURFACE COORDINATE 2ND SET UP CLEARANCE

TOOL CALL 6 Z S300 ............................................... R3 CYCL DEF 2.0 TAPPING CYCL DEF 2.1 SET UP 2 CYCL DEF 2.2 DEPTH -12 CYCL DEF 2.3 DWELL 1 CYCL DEF 2.4 F300 CALL LBL 1

24 L Z+100 R0 M2

HEIDENHAIN Basic course G3/Upgrade course D02

280/3

Solution:

Bolt hole circle segments with several tools

SPGM

25 26 27 28 29 30

LBL 1 CC X+40 Y+0 CALL LBL 2 CC X+110 Y+0 CALL LBL 2 LBL 0

31 LBL 2 32 LP PR+55 PA+120 R0 M3 33 L Z+2 M99 34 LBL 3 35 LP IPR-10 M99 36 CALL LBL 3 REP 3/3 37 LP PR+15 PA+60 R0 M99 38 LBL 4 39 LP IPR+10 M99 40 CALL LBL 4 REP 3/3 41 LBL 0 42 END PGM 280 MM

HEIDENHAIN Basic course G3/Upgrade course C01

280/4

Milling with several settings

Task:

Program(s):

100 90

R1

R20

0

R20 50

R20

R20

0

R1

10

0

30

40

100

90

50

10

0

0

HEIDENHAIN Basic course G3/Upgrade course C01

223/1

Solution:

Milling with several settings

100 90

R1

R20

0

R20

50

R20

R20

0 R1

10

Main program

0 1 2 3 4 5 6

0

30

40

100

90

50

10

0

0

BEGIN PGM 223 MM BLK FORM 0.1 Z X+0 Y+0 Z-40 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 13 Z S2500 ........................................... R20 L Z+100 R0 F MAX M3 L X-30 Y+70 R0 F MAX ............................................ STARTING POSITION L Z+0 F MAX

7 LBL 2 8 L IZ-5 R0 F MAX M3 ................................................ SETTING 9 CALL LBL 1 .............................................................. CALL CONTOUR 10 CALL LBL 2 REP 5/5 ................................................. FURTHER CONTOUR SECTIONS Retract tool, end

11 L Z+100 R0 F MAX M2

SPGM, Contour

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

SPGM end

LBL 1 APPR LCT X+10 Y+70 R5 RL F250 M3 L X+10 Y+90 RL RND R10 L X+50 Y+90 RND R20 L X+90 Y+50 RND R20 .................................................................. CONTOUR L X+90 Y+10 RND R10 L X+50 Y+10 RND R20 L X+10 Y+50 RND R20 L X+10 Y+70 DEP LCT X-20 Y+70 R5 F500 LBL 0 END PGM 223 MM

HEIDENHAIN Basic course G3/Upgrade course D02

223/2

Contour cycles SL II, Roughing out kidney

Task:

Program(s):

100

0

R2

0 R8

50

0

30

R1

R75 0

20 18

100

60

15

0

0

HEIDENHAIN Basic course G3/Upgrade course C01

240/1

Solution:

Contour cycles SL II, Roughing out kidney

100

0

R2

0 R8

50

0

30

R1

R75

Main program

0 1 2 3 4 5 6 7

BEGIN PGM 240 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 7 Z S1500 ............................................. L Z+100 R0 F9999 M3 CYCL DEF 14.0 CONTOUR GEOMETRY CYCL DEF 14.1 CONTOUR LABEL 1 CYCL DEF 20.0 CONTOUR DATA Q1=-18 ...................................................................... Q2=1 ......................................................................... Q3=+0,5 .................................................................... Q4=+0,5 .................................................................... Q5=+0 ....................................................................... Q6=2 ......................................................................... Q7=+10 ..................................................................... Q8=0 ......................................................................... Q9=-1 ....................................................................... 8 CYCL DEF 22.0 ROUGH OUT Q10=10 ..................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q18=0 ....................................................................... Q19=150 ................................................................... 9 CYCL CALL 10 L Z+100 R0 F MAX M6 11 TOOL CALL 8 Z S2000 ............................................. 12 CYCL DEF 23.0 FLOOR FINISHING Q11=100 ................................................................... Q12=200 ................................................................... 13 CYCL CALL M3 14 CYCL DEF 24.0 SIDE FINISHING Q9=-1 ....................................................................... Q10=1 ....................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q14=+0 ..................................................................... 15 CYCL CALL M3

Retract tool, end

0

20 18

100

60

15

0

0

R4

MILLING DEPTH TOOL PATH OVERLAP ALLOWANCE FOR SIDE ALLOWANCE FOR FLOOR WORKPIECE SURFACE COORD. SET UP CLEARANCE CLEARANCE HEIGHT ROUNDING RADIUS DIRECTION OF ROTATION PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING COARSE ROUGHING TOOL RECIPROCATION FEED RATE

R5 FEED RATE FOR PLUNGING FEED RATE FOR MILLING

DIRECTION OF ROTATION PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING ALLOWANCE FOR SIDE

16 L Z+100 R0 F MAX M2

HEIDENHAIN Basic course G3/Upgrade course D02

240/2

Solution:

Contour cycles SL II, Roughing out kidney

SPGM

17 18 19 20 21 22 23 24 25 26

LBL 1 L X+5 Y+30 RR CC X+15 Y+30 C X+6,645 Y+35,495 DRCT X+55,505 Y+69,488 CT X+58,995 Y+30,025 CT X+19,732 Y+21,191 C X+5 Y+30 DRLBL 0 END PGM 240 MM

HEIDENHAIN Basic course G3/Upgrade course C01

240/3

Task:

Contour cycles SL II, Kidney shaped island

Program(s):

100

0

R2 0

R8

50

0

30

R1

R75 0

20 18

100

60

15

0

0

HEIDENHAIN Basic course G3/Upgrade course C01

241/1

Solution:

Contour cycles SL II, Kidney shaped island

100

0

R2

0 R8

50

0

30

R1

R75

Main program

0 1 2 3 4 5 6 7

BEGIN PGM 241 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 7 Z S1500 ............................................. L Z+100 R0 F9999 M3 CYCL DEF 14.0 CONTOUR GEOMETRY CYCL DEF 14.1 CONTOUR LABEL 1 /2 CYCL DEF 20.0 CONTOUR DATA Q1=-18 ...................................................................... Q2=1 ......................................................................... Q3=+0,5 .................................................................... Q4=+0,5 .................................................................... Q5=+0 ....................................................................... Q6=2 ......................................................................... Q7=+10 ..................................................................... Q8=0 ......................................................................... Q9=-1 ....................................................................... 8 CYCL DEF 22.0 ROUGH OUT Q10=10 ..................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q18=0 ....................................................................... Q19=150 ................................................................... 9 CYCL CALL 10 L Z+100 R0 F MAX M6 11 TOOL CALL 8 Z S2000 ............................................. 12 CYCL DEF 23.0 FLOOR FINISHING Q11=100 ................................................................... Q12=200 ................................................................... 13 CYCL CALL M3 14 CYCL DEF 24.0 SIDE FINISHING Q9=-1 ....................................................................... Q10=1 ....................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q14=+0 ..................................................................... 15 CYCL CALL M3

Retract tool, end

0

20 18

100

60

15

0

0

R3

MILLING DEPTH TOOL PATH OVERLAP ALLOWANCE FOR SIDE ALLOWANCE FOR FLOOR WORKPIECE SURFACE COORD. SET UP CLEARANCE CLEARANCE HEIGHT ROUNDING RADIUS DIRECTION OF ROTATION PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING COARSE ROUGHING TOOL RECIPROCATION FEED RATE

R4 FEED RATE FOR PLUNGING FEED RATE FOR MILLING

DIRECTION OF ROTATION PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING ALLOWANCE FOR SIDE

16 L Z+100 R0 F MAX M2

HEIDENHAIN Basic course G3/Upgrade course D02

241/2

Solution:

Contour cycles SL II, Kidney shaped island

SPGM

17 18 19 20 21 22 23 24 25

LBL 1 ........................................................................ ISLAND L X+5 Y+30 RL CC X+15 Y+30 C X+6,645 Y+35,495 DRCT X+55,505 Y+69,488 CT X+58,995 Y+30,025 CT X+19,732 Y+21,191 C X+5 Y+30 DRLBL 0

26 27 28 29 30 31 32 33

LBL 2 ........................................................................ CHAMBER L X-10 Y-10 RR L Y+110 L X+110 L Y-10 L X-10 LBL 0 END PGM 241 MM

HEIDENHAIN Basic course G3/Upgrade course D02

241/3

FK Mickey Mouse

Program(s):

R3

8

Task:

R2

2

0

60 °

Z

R9

R1

0

Detail Z

R9

8

straight segment

40

R80 0

-30

-40

76 80

-8

30°

18

R8

HEIDENHAIN Basic course G3/Upgrade course D02

290/1

FK Mickey Mouse with 20-series cycles

R3 8

Solution:

R2

2

0

60

°

Z

R9

R1

0

Detail Z

R9

8

40

R80 0

-30

-40

-8

30°

18

76 80

Main program

straight segment

R8

0 1 2 3 4 5 6 7 8 9

BEGIN PGM 290 MM ................................................................................. ................................................................................. BLK FORM 0.1 Z X-70 Y-90 Z-12 BLK FORM 0.2 X+70 Y+30 Z+0 TOOL CALL 7 Z S2500 ............................................. L Z+20 R0 F9999 M3 CYCL DEF 14.0 CONTOR GEOMETRY CYCL DEF 14.1 CONTOUR LABEL 1 /2 CYCL DEF 20.0 CONTOR DATA Q1=-10 ...................................................................... Q2=1 ......................................................................... Q3=+1 ....................................................................... Q4=+1 ....................................................................... Q5=+0 ....................................................................... Q6=-2 ....................................................................... Q7=+20 ..................................................................... Q8=+0 ....................................................................... Q9=-1 ....................................................................... 10 CYCL DEF 22.0 ROUGH OUT Q10=-5 ...................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q18=0 ....................................................................... Q19=150 ................................................................... 11 L X-65 Y+0 M99 12 CYCL DEF 23.0 FLOOR FINISHING Q11=100 ................................................................... Q12=200 ................................................................... 13 CYCL CALL 14 YCL DEF 24.0 SIDE FINISHING Q9=-1 ....................................................................... Q10=-5 ...................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q14=+0 ..................................................................... 15 CYCL CALL

Retract tool, end

MICKEY WITH 20-SERIES CYCLES B06

R4

MILLING DEPTH TOOL PATH OVERLAP ALLOWANCE FOR SIDE ALLOWANCE FOR FLOOR WORKPIECE SURFACE COORD. SET UP CLEARANCE CLEARANCE HEIGHT ROUNDING RADIUS DIRECTION OF ROTATION PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING COARSE ROUGHING TOOL RECIPROCATION FEED RATE

FEED RATE FOR PLUNGING FEED RATE FOR MILLING

DIRECTION OF ROTATION PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING ALLOWANCE FOR SIDE

16 L Z+100 R0 F MAX M2

HEIDENHAIN Basic course G3/Upgrade course D02

290/2

Solution:

FK Mickey Mouse with 20-series cycles

SPGM

17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

LBL 1 L X-62 Y+0 RL FC DR- R22 CLSD+ CCX-40 CCY+0 FCT DR+ R38 CCX+0 FSELECT 1 FCT DR- R22 CCX+40 CCY+0 FCT DR+ R10 FLT AN-60 PDX+0 PDY+0 D0 FSELECT 3 FCT DR- R8 FCT X+0 Y-80 DR- R80 CCX+0 CCY+0 FLT X-40 AN+180 FL AN+90 FL AN+30 FCT DR+ R9 CCX-17 FLT X-30 PAR31 DP18 FSELECT 2 FL AN+90 FL PAR33 DP8 FSELECT 2 FCT DR+ R9 CCX-17 FCT DR- R22 CLSD- CCX-40 CCY+0 FSELECT 2 LBL 0

41 42 43 44 45 46 47 48 49

LBL 2 L X-74 Y+20 RR L Y+35 L X+74 L Y-100 L X-74 L Y+0 LBL 0 END PGM 290 MM

HEIDENHAIN Basic course G3/Upgrade course C01

290/3

Task:

FK-SL Combination

Program(s):

56

R4

44

88,15°

28

R5 45°

0

10

20

32

80

30

R5

HEIDENHAIN Basic course G3/Upgrade course D02

273/1

Solution:

FK-SL Combination

56

R4

44

88,15°

28

R5 45°

Retract tool, end

0 1 2 3 4 5 6

BEGIN PGM 273 MM BLK FORM 0.1 Z X-50 Y-50 Z-30 BLK FORM 0.2 X+50 Y+50 Z+0 TOOL CALL 6 Z S1500 ............................................. CYCL DEF 14.0 CONTOUR GEOMETRY CYCL DEF 14.1 CONTOUR LABEL 1 /2 CYCL DEF 20.0 CONTOUR DATA Q1=-10 ...................................................................... Q2=1 ......................................................................... Q3=+1 ....................................................................... Q4=+1 ....................................................................... Q5=+0 ....................................................................... Q6=2 ......................................................................... Q7=+20 ..................................................................... Q8=0 ......................................................................... Q9=-1 ....................................................................... 7 CALL LBL 10

0

10

20

80

30

32

Main program

R5

R3

MILLING DEPTH TOOL PATH OVERLAP ALLOWANCE FOR SIDE ALLOWANCE FOR FLOOR WORKPIECE SURFACE COORD. SET UP CLEARANCE CLEARANCE HEIGHT ROUNDING RADIUS DIRECTION OF ROTATION

8 9 10 11 12

CYCL DEF 14.0 CONTOUR GEOMETRY CYCL DEF 14.1 CONTOUR LABEL 1 /3 FN 0: Q5 = -10 CALL LBL 10 L Z+100 R0 F MAX M6

13 14 15 16

TOOL CALL 4 Z S2000 ............................................. R2 CYCL DEF 14.0 CONTOUR GEOMETRY CYCL DEF 14.1 CONTOUR LABEL 1 /3 CALL LBL 11

17 18 19 20

CYCL DEF 14.0 CONTOUR GEOMETRY CYCL DEF 14.1 CONTOUR LABEL 1 /2 FN 0: Q5 = +0 CALL LBL 11

21 L Z+100 R0 F MAX M2

HEIDENHAIN Basic course G3/Upgrade course D02

273/2

Solution:

FK-SL Combination

SPGM

22 LBL 10 23 CYCL DEF 22.0 ROUGH OUT Q10=10 ..................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q18=0 ....................................................................... Q19=150 ................................................................... 24 CYCL CALL M3 25 LBL 0 26 LBL 11 27 CYCL DEF 23.0 FLOOR FINISHING Q11=100 ................................................................... Q12=200 ................................................................... 28 CYCL CALL M3 29 CYCL DEF 24.0 SIDE FINISHING Q9=-1 ....................................................................... Q10=5 ....................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q14=+0 ..................................................................... 30 CYCL CALL 31 LBL 0 32 33 34 35 36 37 38 39 40 41 42 43

LBL 1 L X-40 Y+0 RR L Y+40 RND R5 L X+40 RND R5 L Y-40 RND R5 L X-40 RND R5 L Y+0 LBL 0

44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

LBL 2 CC X+0 Y+0 FPOL X+0 Y+0 LP PR+22 PA+45 RL FC DR- R4 CLSD+ FLT AN-91,85 FCT DR- R16 CCX+0 CCY+0 FSELECT 1 FLT AN-178,15 FCT DR- R4 FLT AN+88,15 FCT DR- R16 CCX+0 CCY+0 FLT AN+1,85 FCT PR+22 PA+45 DR- R4 CLSDFSELECT 2 LBL 0

PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING COARSE ROUGHING TOOL RECIPROCATION FEED RATE

FEED RATE FOR PLUNGING FEED RATE FOR MILLING

DIRECTION OF ROTATION PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING ALLOWANCE FOR SIDE

HEIDENHAIN Basic course G3/Upgrade course D02

273/3

Solution:

FK-SL Combination

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85

LBL 3 CC X+0 Y+0 LP PR+28 PA+180 RL FC Y+14 DR- R28 CCX+0 CCY+0 FSELECT 2 FL AN+0 FCT X-14 DR+ R5 FLT AN+90 FC X+14 DR- R28 CCX+0 CCY+0 FSELECT 1 FL AN-90 FCT Y+14 DR+ R5 FLT AN+0 FC Y-14 DR- R28 CCX+0 CCY+0 FSELECT 1 FL AN-180 FCT X+14 DR+ R5 FLT AN-90 FC X-14 DR- R28 CCX+0 CCY+0 FSELECT 2 FL AN+90 FCT Y-14 DR+ R5 FLT AN+180 FC X-28 Y+0 DR- R28 CCX+0 CCY+0 LBL 0 END PGM 273 MM

HEIDENHAIN Basic course G3/Upgrade course D02

273/4

DEMO Tree

Task:

Program(s):

170

130

80

30

5

M2

Point

M1 M3 P2 P1

R36

P0 R40 M5 R2

R8

M4

X

10 5 0

140

100

80

P0 ≠ Contour point

R8,

R6,5

60

40

0

20

0

Y

Point

X

Y

0,0 9,0 10,0

M1 M2 M3 M4 M5 M6

-5,5 2,5 12,0 – -3,0 8,0

13,5 24,0 13,0 -2,0 -18,0 -18,0

R7,5

P0 P1 P2

R10 M6 R2

0,0 – –

HEIDENHAIN Basic course G3/Upgrade course D02

276/1

Program layout:

DEMO Tree

Conventional Preparation

BLK FORM TOOL CALL 1 . . .

SL II Cycles

CYCL DEF 14.0 CONT. GEOM. CYCL DEF 14.1 CONT. LABEL 1 CYCL DEF 20.0 CONTOUR DATA CYCL DEF 22.0 ROUGH OUT

First datum Call contour

CYCL DEF 7.0 DATUM SHIFT CYCL CALL . . .

○ ○ ○

Second datum Call contour

L Z100 . . . M2

Contour, SPGM 1

LBL 1 ○ ○ ○ ○ ○ ○ ○

Retract tool, end

Z +0 +0

C +0 +0

A +0 +0

○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○

○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○

.D MM Y +0 +30 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○

○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○

BEGIN 276 D X 0 +0 1 +20 2 3 4 ○ ○ ○ ○ ○ ○ ○

Set up datum table

○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○

LBL 0

END

HEIDENHAIN Basic course G3/Upgrade course C01

276/2

Solution:

DEMO Tree

170

130

80

30

10 5 0

140

R8,

100

80

60

40

0

20

0

5 M2

P0 ≠ Contour point

M1 M3 P1 P2

R6,5

R36 M4

P0 R40

R2

Main program

0 1 2 3 4 5 6 7 8 9

R8

M5

R10 M6 R2

R7,5

Point

X

Y

Point

X

Y

P0 P1 P2

0,0 – –

0,0 9,0 10,0

M1 M2 M3 M4 M5 M6

-5,5 2,5 12,0 – -3,0 8,0

13,5 24,0 13,0 -2,0 -18,0 -18,0

BEGIN PGM 276 MM BLK FORM 0.1 Z X+0 Y+0 Z-10 BLK FORM 0.2 X+130 Y+170 Z+0 TOOL CALL 3 Z S3000 ............................................. L Z+100 R0 F MAX L X+0 Y+0 R0 F9999 L Z+2 M3 CYCL DEF 14.0 CONTOUR GEOMETRY CYCL DEF 14.1 CONTOUR LABEL 1 CYCL DEF 20.0 CONTOUR DATA Q1=-5 ....................................................................... Q2=1 ......................................................................... Q3=+0 ....................................................................... Q4=+0 ....................................................................... Q5=+0 .......................................................................

R1,5

MILLING DEPTH TOOL PATH OVERLAP ALLOWANCE FOR SIDE ALLOWANCE FOR FLOOR WORKPIECE SURFACE COORD.

HEIDENHAIN Basic course G3/Upgrade course D02

276/3

Solution:

DEMO Tree

10

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

Q6=2 ......................................................................... Q7=+5 ....................................................................... Q8=0 ......................................................................... Q9=-1 ....................................................................... CYCL DEF 22.0 ROUGH OUT Q10=5 ....................................................................... Q11=100 ................................................................... Q12=200 ................................................................... Q18=0 ....................................................................... Q19=150 ................................................................... CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 #1 CYCL CALL CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 #2 CYCL CALL CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 #3 CYCL CALL CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 #4 CYCL CALL CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 #5 CYCL CALL CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 #6 CYCL CALL CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 #7 CYCL CALL CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 #8 CYCL CALL

Retract tool, end

35 L Z+100 R0 F MAX M2

SPGM

36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

SET UP CLEARANCE CLEARANCE HEIGHT ROUNDING RADIUS DIRECTION OF ROTATION PLUNGING DEPTH FEED RATE FOR PLUNGING FEED RATE FOR MILLING COARSE ROUGHING TOOL RECIPROCATION FEED RATE

LBL 1 L X+2,5 Y+32,5 RR FC DR- R8,5 CCX+2,5 CCY+24 FC Y+10 DR- R7,5 CCX+12 CCY+13 FSELECT 2 FC DR- R40 CCY-2 FSELECT 2 FCT DR+ R10 FCT DR- R2 CCX+8 CCY-18 FSELECT 1 FCT DR+ R8 FCT DR- R2 CCX-3 CCY-18 FSELECT 2 FCT Y+9 DR+ R36 FC DR- R6,5 CCX-5,5 CCY+13,5 FC X+2,5 Y+32,5 DR- R8,5 CCX+2,5 CCY+24 FSELECT 2 LBL 0 END PGM 276 MM

HEIDENHAIN Basic course G3/Upgrade course C01

276/4

Solution:

DEMO Tree

Datum table

BEGIN 276 .D MM D X Y 0 +0 +0 1 +20 +30 2 +60 +30 3 +100 +30 4 +40 +80 5 +80 +80 6 +20 +130 7 +60 +130 8 +100 +130 9 +0 +0 10 +0 +0 11 +0 +0 12 +0 +0 13 +0 +0 14 +0 +0 15 +0 +0 16 +0 +0 17 +0 +0 18 +0 +0 19 +0 +0 20 +0 +0 [END]

Z +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0

C +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0

A +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0

HEIDENHAIN Basic course G3/Upgrade course C01

276/5

Task:

Datum shift and mirror images

Program(s):

100 95









60

40

0

20

40

100

80

60

40

0

20

5 0

○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○

BEGIN PGM . . . MM

Retract tool, end

L Z +100 R0 F9999 M2

SPGM

LBL . . .

SPGM end

LBL 0

Datum shift Part ➀ SPGM-Call Part ➁ Mirror images SPGM-Call Part ➂ Mirror images SPGM-Call Part ➃ Mirror images SPGM-Call Reset cycle

HEIDENHAIN Basic course G3/Upgrade course C01

229/1

Solution:

Datum shift and mirror images

100 95









60

40

MAIN PROGRAM

0 1 2 3 4 5 6 7 8

0

20

40

100

80

60

40

20

0

5 0

BEGIN PGM 229 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 7 Z S4000 ............................................. R4 L Z+100 R0 F MAX CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+50 CYCL DEF 7.2 Y+50 CALL LBL 1

9 CYCL DEF 8.0 MIRROR IMAGE 10 CYCL DEF 8.1 X 11 CALL LBL 1 12 CYCL DEF 8.0 MIRROR IMAGE 13 CYCL DEF 8.1 Y 14 CALL LBL 1 15 CYCL DEF 8.0 MIRROR IMAGE 16 CYCL DEF 8.1 X Y 17 CALL LBL 1 Retract tool, end

18 L Z+100 R0 F MAX M2

SPGM, Contour

19 20 21 22 23 24 25 26 27 28 29

LBL 1 L X+0 Y+0 R0 F MAX M3 ........................................ AUXILIARY POINT R0 L Z+2 F MAX L Z-15 R0 F100 ......................................................... PLUNGING DEPTH APPR LCT X+10 Y+10 R5 RL F200 .......................... APPROACH STARTING POINT OF CONTOUR TANGENTIALLY L Y+45 L X+30 Y+10 L X+10 Y+10 DEP LCT X+0 Y+0 R5 ............................................... DEPART TANGENTIALLY LBL 0 END PGM 229 MM

HEIDENHAIN Basic course G3/Upgrade course D02

229/2

Coordinate transformations

Task:

Program(s):

100



20°

➂ 60



R4

30



SF 1,2

10

0

20 15

100

70

60

20

0

40

R5

0

HEIDENHAIN Basic course G3/Upgrade course C01

232/1

Solution:

Coordinate transformations

100



20°

➂ 60



R4

30



SF 1,2

10

0 1 2 3 4 5 6 7 8

0

20 15

100

70

60

20

0

MAIN PROGRAM

40

R5

0

BEGIN PGM 232 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 6 Z S4000 ............................................. R3 L Z+100 R0 F MAX M3 CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+20 CYCL DEF 7.2 Y+10 CALL LBL 1

9 10 11 12 13 14

CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+60 CYCL DEF 7.2 Y+10 CYCL DEF 11.0 SCALING CYCL DEF 11.1 SCL1,2 CALL LBL 1

15 16 17 18 19 20 21 22

CYCL DEF 11.0 SCALING CYCL DEF 11.1 SCL1 CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+20 CYCL DEF 7.2 Y+60 CYCL DEF 10.0 ROTATION CYCL DEF 10.1 ROT+20 CALL LBL 1

23 24 25 26 27 28 29 30

CYCL DEF 10.0 ROTATION CYCL DEF 10.1 ROT+0 CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+90 CYCL DEF 7.2 Y+60 CYCL DEF 8.0 MIRROR IMAGE CYCL DEF 8.1 X CALL LBL 1

HEIDENHAIN Basic course G3/Upgrade course D02

232/2

Solution:

Coordinate transformations

31 32 33 34 35

CYCL DEF 8.0 ROTATION CYCL DEF 8.1 CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+0 CYCL DEF 7.2 Y+0

Retract tool, end

36 L Z+100 R0 F MAX M2

SPGM, Contour

37 38 39 40 41 42 43 44 45 46 47 49 49 50 51 52 53 54 55

LBL 1 L X+10 Y+10 R0 F MAX M3 L Z+2 F MAX L Z-15 R0 F100 APPR LCT X+0 Y+10 R2 RR L Y+20 X+0 RND R4 L X+20 Y+20 RND R4 L Y+0 CC X+15 Y+0 C X+10 Y+0 DRL X+0 Y+0 RND R4 L X+0 Y+10 DEP LCT X+10 Y+10 R2 L Z+2 R0 F MAX LBL 0 END PGM 232 MM

HEIDENHAIN Basic course G3/Upgrade course C01

232/3

Task:

Scaling factor – hammer

Program(s):

100 95

SF X = 1,90

50 45

15

Tool radius R3 SF =

R3

30 25

R3

15°

1,2

10 5 0

95 100

45

30

15

0 5

5 0

HEIDENHAIN Basic course G3/Upgrade course D02

284/1

Solution:

Scaling factor – hammer

100 95

SF X = 1,90

50 45

R3

15°

30 25

Tool radius R3

SF =

R3

15

1,2

Main program

0 1 2 3 4 5 6 7

10 5 0

95 100

45

30

15

0 5

5 0

BEGIN PGM 284 MM BLK FORM 0.1 Z X+0 Y+0 Z-10 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 6 Z S2000 ............................................... R3 CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+5 CYCL DEF 7.2 Y+5 CALL LBL 1

8 CYCL DEF 7.0 DATUM SHIFT 9 CYCL DEF 7.1 X+95 10 CYCL DEF 7.2 Y+15 11 CYCL DEF 10.0 ROTATION 12 CYCL DEF 10.1 ROT+105 13 CALL LBL 1 14 15 16 17 18 19 20 21 22 23

CYCL DEF 10.0 ROTATION CYCL DEF 10.1 ROT+0 CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+20 CYCL DEF 7.2 Y+95 CYCL DEF 8.0 MIRROR IMAGE CYCL DEF 8.1 Y CYCL DEF 26.0 AXIS-SPEC. SCALING CYCL DEF 26.1 X1,9 Y1 CCX+10 CCY+95 CALL LBL 1

24 25 26 27 28 29 30

CYCL DEF 26.0 AXIS-SPEC. SCALING CYCL DEF 26.1 X1 Y1 CCX+0 CCY+0 CYCL DEF 8.0 MIRROR IMAGE CYCL DEF 8.1 CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+0 CYCL DEF 7.2 Y+0

31 L Z+100 R0 F MAX M2

HEIDENHAIN Basic course G3/Upgrade course D02

284/2

Solution:

Scaling factor – hammer

SPGM

32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

LBL 1 L X+7 Y+15 R0 F300 L Z-5 APPR LCT X+0 Y+15 R1 RR L Y+25 L X+5 Y+40 L X+10 Y+25 L Y+20 L X+40 L Y+10 L X+10 L Y+0 L X+0 L Y+15 DEP LCT X+8 Y+15 R1 L Z+2 R0 LBL 0 END PGM 284 MM

HEIDENHAIN Basic course G3/Upgrade course D02

284/3

Scaling factor

Task:

Program(s):

100

➁ CC

50

SF 1,5 in X

20 16

➀ 0

20 15

100

60

50

31 35

10

0

0

HEIDENHAIN Basic course G3/Upgrade course C01

234/1

Solution:

Scaling factor

100

➁ CC

50

SF 1,5 in X

20 16



MAIN PROGRAM

0

20 15

100

60

50

31 35

10

0

0

0 1 2 3 4 5

BEGIN PGM 234 MM BLK FORM 0.1 Z X+0 Y+0 Z-20 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 8 Z S4000 ............................................. R5 L Z+100 R0 F MAX M3 CALL LBL 1 .............................................................. SPGM-CALL PART



6 7 8 9 10 11

CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+50 CYCL DEF 7.2 Y+50 CYCL DEF 26.0 AXIS-SPEC. SCALING CYCL DEF 26.1 X1,5 CCX+10 CALL LBL 1 .............................................................. SPGM-CALL PART



12 13 14 15 16

CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+0 CYCL DEF 7.2 Y+0 CYCL DEF 26.0 AXIS-SPEC. SCALING CYCL DEF 26.1 X1 ................................................... CYCLE RESET

Retract tool, end

17 L Z+100 R0 F MAX M2

SPGM, Contour

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

LBL 1 L X+0 Y+0 R0 F MAX L Z+2 F MAX L Z-10 R0 F100 M8 APPR LT X+10 Y+10 LEN5 RL F200 L IY+20 L IX+21 L IX+4 IY-4 L Y+10 L X+10 DEP LT LEN5 L X+0 Y+0 R0 L Z+2 R0 F MAX LBL 0 END PGM 234 MM

HEIDENHAIN Basic course G3/Upgrade course D02

234/2

Task:

Tilt working plane

Program(s):

0

0

+Z

1

A

Y

16

+

B

20

+X

HEIDENHAIN Basic course G3/Upgrade course C03

S285/1

Solution:

Tilt working plane

0

0

+Z

1

A

Y

16

+

B

20

+X

Complete program

0 1 2 3 4 5 6 7 8 9

BEGIN PGM 285 MM BLK FORM 0.1 Z X+0 Y+0 Z-40 BLK FORM 0.2 X+100 Y+100 Z+0 TOOL CALL 19 Z S4000 ........................................... CALL TOOL DATA, L ABSOLUTE IN TOOL TABLE! CYCL DEF 1.0 PECKING .......................................... DEFINE CYCLE CYCL DEF 1.1 SET UP +2 CYCL DEF 1.2 DEPTH -20 CYCL DEF 1.3 PECKG-5 CYCL DEF 1.4 DWELL 0 CYCL DEF 1.5 F400

10 L Z+100 R0 F MAX ................................................... RETRACT TOOL AXIS 11 L X+100 Y+50 R0 F MAX ......................................... PRE-POSITIONING 12 L B+27 R0 F MAX .................................................... TILT HEAD (MOVE) 13 14 15 16 17 18

CYCL DEF 19.0 WORKING PLANE CYCL DEF 19.1 B+27 ................................................ L X+50 Y+50 R0 F MAX M3 ..................................... L Z+2 R0 F MAX M99 .............................................. CYCL DEF 19.0 WORKING PLANE CYCL DEF 19.1 B+0 ..................................................

TILT HEAD (CALCULATE) MOVE TO DRILLING POSITION Z-CLEARANCE, CALL CYCLE 1 TILT RESET

19 L Z+100 R0 F MAX M5 ............................................ RETRACT TOOL 20 L B+0 R0 F MAX M30 .............................................. TILT HEAD BACK 21 END PGM 285 MM

HEIDENHAIN Basic course G3/Upgrade course C03

S285/2

Tilt working plane

Program(s):

+Z

100

Y

+

+X

A 16

50

Task:

B

30

HEIDENHAIN Basic course G3/Upgrade course C03

S286/1

Solution:

Tilt working plane

+Z

100

Y

+X

A 16

50

+

B

30

Complete program

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

BEGIN PGM 286 MM BLK FORM 0.1 Z X-50 Y-50 Z-40 BLK FORM 0.2 X+50 Y+50 Z+0 TOOL CALL 19 Z S4000 ........................................... CALL TOOL DATA, L ABSOLUTE IN TOOL TABLE! CYCL DEF 1.0 PECKING .......................................... DEFINE CYCLE CYCL DEF 1.1 SET UP +2 CYCL DEF 1.2 DEPTH -20 CYCL DEF 1.3 PECKG -5 CYCL DEF 1.4 DWELL 0 CYCL DEF 1.5 F400 L Z+100 R0 F MAX ................................................... RETRACT TOOL AXIS L X+150 R0 F MAX .................................................. PRE-POSITIONING CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+50 ................................................. ZERO POINT ON RIGHT EDGE L B+90 R0 F MAX .................................................... TILT HEAD (MOVE)

15 16 17 18 19 20

CYCL DEF 19.0 WORKING PLANE CYCL DEF 19.1 B+90 ................................................ L X+25 Y+0 R0 F MAX M3 ....................................... L Z+2 R0 F MAX M99 .............................................. CYCL DEF 19.0 WORKING PLANE CYCL DEF 19.1 B+0 ..................................................

21 22 23 24 25

CYCL DEF 7.0 DATUM SHIFT CYCL DEF 7.1 X+0 L Z+100 R0 F MAX M5 ............................................ RETRACT TOOL L B+0 R0 F MAX M30 .............................................. TILT HEAD BACK END PGM 286 MM

TILT HEAD (CALCULATE) MOVE TO DRILLING POSITION Z-CLEARANCE, CALL CYCLE 1 TILT RESET

HEIDENHAIN Basic course G3/Upgrade course C03

S286/2

Related Documents

Heidenhain Basic Programming
December 2019 12
Heidenhain Programming
December 2019 11
Basic Programming
November 2019 20
Heidenhain Diadur
December 2019 12
Perl Programming Basic
December 2019 29

More Documents from "John"