Course: PMT 250 Multi-Axis CNC Programming (Section 060)

HA5C Lessons

Program Example
Program Example
Part print of the example part
Program
Remember that you need to download each program in the HAAS control when using a G98 Sub-Programming cycle.
Start with all the Sub-Programs and download the main program last.

Main Program

%

O01380

(5 AXIS CUBE)

G54 G00 G90 X-13.8 Y11.

T1 M06 (1/2 SPOT DRILL)

G54 G00 G90 X1.5 Y1.5 A0 B0

S5000 M03

G43 H01 M08

M98 P1381

G55 G00 G90 X1.5 Y1.5 A90. B0.

M98 P1381

G55 G00 G90 X1.5 Y1.5 A90. B90.

M98 P1381

G55 G00 G90 X1.5 Y1.5 A90. B180.

M98 P1381

G55 G00 G90 X1.5 Y1.5 A90. B270.

M98 P1381

T2 M06 (1/2 DRILL)

G54 G00 G90 X1.5 Y1.5 A0 B0

S2000 M03

G43 H02 M08

M98 P1382

G55 G00 G90 X1.5 Y1.5 A90. B0.

M98 P1382

G55 G00 G90 X1.5 Y1.5 A90. B90.

M98 P1382

G55 G00 G90 X1.5 Y1.5 A90. B180.

M98 P1382

G55 G00 G90 X1.5 Y1.5 A90. B270.

M98 P1382

T3 M06 (.470 CARBIDE END MILL)

G54 G00 G90 X1.5 Y1.5 A0 B0

S9500 M03

G43 H03 Z0.3

G01 Z0 F10.

M98 P1383

G55 G00 G90 X1.5 Y1.5 A90. B0.

G00 Z0.2

G01 Z0 F10.

M98 P1383

G55 G00 G90 X1.5 Y1.5 A90. B90.

G00 Z0.2

G01 Z0 F10.

M98 P1383

G55 G00 G90 X1.5 Y1.5 A90. B180.

G00 Z0.2

G01 Z0 F10.

M98 P1383

G55 G00 G90 X1.5 Y1.5 A90. B270.

G00 Z0.2

G01 Z0 F10.

M98 P1383

M09

T3 M06

(Chamfer all edges)

G56 G00 G90 X-0.5 Y0 A45. B0

S9500 M03

G43 H03 Z0.3

G01 Z-0.1 F10.

G01 X3.5 F150.

G00 Z2.

G00 X-0.5

G00 B90.

G00 Z0.3

G01 Z-0.1 F10.

G01 X3.5 F150.

G00 Z2.

G00 X-0.5

G00 B180.

G00 Z0.3

G01 Z-0.1 F10.

G01 X3.5 F150.

G00 Z2.

G00 X-0.5

G00 B270.

G00 Z0.3

G01 Z-0.1

G01 X3.5 F150.

G00 Z4.

G57 G00 G90 X0 Y-0.5 A90. B45.

G00 Z0.3

G01 Z-0.12 F10.

G01 Y2.3 F150.

G00 Z2.

G00 Y-0.5

G00 B135.

G00 Z0.3

G01 Z-0.12 F10.

G01 Y2.3 F150.

G00 Z2.

G00 Y-0.5

G00 B225.

G00 Z0.3

G01 Z-0.12 F10.

G01 Y2.3 F150.

G00 Z2.

G00 Y-0.5

G00 B315.

G00 Z0.3

G01 Z-0.12 F10.

G01 Y2.3 F150.

G00 Z5.

T4 M06

(1/8 Ball Nose cut on chamfered edges)

G56 G00 G90 X0.3 Y0 A45. B0

S9000 M03

G43 H04 Z0.3

G01 Z-0.12 F10.

G01 X2.7 F60.

G00 Z2.

G00 X0.3

G00 B90.

G00 Z0.3

G01 Z-0.12 F10.

G01 X2.7 F60.

G00 Z2.

G00 X0.3

G00 B180.

G00 Z0.3

G01 Z-0.12 F10.

G01 X2.7 F60.

G00 Z2.

G00 X0.3

G00 B270.

G00 Z0.3

G01 Z-0.12

G01 X2.7 F60.

G00 Z4.

G57 G00 G90 X0 Y0.3 A90. B45.

G00 Z0.3

G01 Z-0.14 F10.

G01 Y2.3 F60.

G00 Z2.

G00 Y0.3

G00 B135.

G00 Z0.3

G01 Z-0.14 F10.

G01 Y2.3 F60.

G00 Z2.

G00 Y0.3

G00 B225.

G00 Z0.3

G01 Z-0.14 F10.

G01 Y2.3 F60.

G00 Z2.

G00 Y0.3

G00 B315.

G00 Z0.3

G01 Z-0.14 F10.

G01 Y2.3 F60.

G00 Z4.

G28 G91 Z0

M30

%

First Sub-Program to Spot Drill all the Holes

%

O01381

G82 Z-0.23 R0.1 F15.

G80 G00 Z5.

M99

%

Second Sub-Program to Drill all the Holes

%

O01382

G83 Z-1.65 Q0.1 R0.1 F25.

G80 G00 Z4.

M99

%

Third Sub-Program to call up the G13 Circle Pocketing Cycle

%

O01383

G13 G91 Z-0.21 I0.225 K1.1875 Q0.225 L2 D03 F180.

G13 G91 Z-0.1385 I0.225 K0.875 Q0.225 L2 D03 F180.

G13 G91 Z-0.149 I0.225 K0.6 Q0.225 L2 D03 F180.

G90 G00 Z4.

M99

%