External Subprogram (M98)

Classic Control - Mill Operator's Manual

The Online Interactive Operator's Manual is currently available in English only.

A PDF version of the Operator's Manual is available for download in multiple languages.
Click the link below to view the Operator's Manual in your language. Click "Continue" to view the online version in English.

An external subroutine is a separate program that the main program references. Use M98 to command (call) an external subroutines, with Pnnnnn to refer to the program number you want to call.

In this example, the subroutine (program O40008) specifies (8) positions. It also includes a G98 command at the move between positions 4 and 5. This causes the Z Axis to return to the initial starting point instead of the R plane, so the tool passes over the workholding.

The main program (Program O40007) specifies (3) different canned cycles:

G81 Spot drill at each position

G83 Peck drill at each position

G84 Tap at each position

Each canned cycle calls the subroutine and does the operation at each position.

Be aware: Many service and repair procedures should be done only by authorized personnel. The service technicians at your Haas Factory Outlet (HFO) have the training, experience, and are certified to do these tasks safely and correctly. You should not do machine repair or service procedures unless you are qualified and knowledgeable about the processes.

Danger: Some service procedures can be dangerous or life-threatening. DO NOT attempt a procedure that you do not completely understand. Contact your Haas Factory Outlet (HFO) and schedule a service technician visit if you have any doubts about doing a procedure.