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

HAAS HRT210 Lessons

Sub-Programs
Sub-Programs

First Sub-Program to Spot Drill all the Holes

%

O00101 (Matches the P number on the M98)

G82 G99 Z-0.11 R0.1 F12.

X-0.25 Y0.2

Y3.7

X-1.75

Y0.2

G80 G00 Z2. (Notice the “Z” move for “A” axis clearance)

M99

%
Forth Sub-Program for the axis movements for the G150 Pocket

%

O00201 (Notice the P number in the G150 line matches this program number)

G01 X-0.25 Y2.

G01 X-0.25 Y3.2

G03 X-0.75 Y3.7 R0.5

G01 X-1.25 Y3.7

G03 X-1.75 Y3.2 R0.5

G01 X-1.75 Y0.7

G03 X-1.25 Y0.2 R0.5

G01 X-0.75 Y0.2

G03 X-0.25 Y0.7 R0.5

G01 X-0.25 Y2. (Must match the first line in this sub-program)

M99

%
Second Sub-Program to Drill all the Holes

%

O00102

G83 G99 Z-0.55 Q0.1 R0.1 F15.

X-0.25 Y0.2

Y3.7

X-1.75

Y0.2

G80 G00 Z2.

M99

%
Fifth Sub-Program for facing part to the 4” length

%

O00104

G90 G00 X0.3 Y-0.3

G00 Z-0.775

G01 X-2.3 F40.

G00 Z0.25

G00 Y4.2

G00 Z-0.775

G01 X0.3

G00 Z2.

M99

%
Third Sub-Program to call up the G150 Pocketing Cycle

%

O00103

G90 G00 Z0.01

G150 P201 Z-0.55 G41 D03 I0.2 K0.01 Q0.108 R0.01 F200.

G40 X-1. Y2.

G00 Z2.

M99

%
Sixth Sub-Program for Machining the Holes on the ends of the parts

%

O00105

G90 G00 Z0.2

G01 Z0 F10.

G13 G91 D03 I0.275 Z-0.05 F12. L4

G90 G00 Z0.2

G00 X1.3 Y0.375

G01 Z0 F10.

G13 G91 D03 I0.275 Z-0.05 F12. L4

G90 G00 Z7.

M99

%