External Subprograms With Multiple Fixtures (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.

Get a translated PDF Download Continue

Subroutines can be useful when cutting the same part in different X and Y locations within the machine. For example, there are six vises mounted on the table. Each of these vises uses a new X, Y zero. They are referenced in the program using the G54 through G59 work offsets in absolute coordinates. Use an edge finder or an indicator to establish the zero point on each part. Use the part zero set key in the work offset page to record each X, Y location. Once the X, Y zero position for each workpiece is in the offset page, the programming can begin.

The figure shows what this setup would look like on the machine table. For an example, each of these six parts will need to be drilled at the center, X and Y zero.

Main Program

% O40012 (M98_External sub multi fixture); (G54-G59 X0 Y0 is center of each part) ; (G54-G59 Z0 is on top of the part) ; (T1 is a drill) ; (BEGIN PREPARATION BLOCKS) ; T1 M06 (Select tool 1) ; G00 G90 G40 G49 G54(Safe startup) ; X0 Y0 (Rapid to 1st position) ; S1500 M03 (Spindle on CW) ; G43 H01 Z0.1 (Tool offset 1 on) ; M08 (Coolant on) ; (BEGIN CUTTING BLOCKS) ; M98 P40013 (Call external subroutine) ; G55 (Change work offset) ; M98 P40013 (Call external subroutine) ; G56 (Change work offset) ; M98 P40013 (Call external subroutine) ; G57 (Change work offset) ; M98 P40013 (Call external subroutine) ; G58 (Change work offset) ; M98 P40013 (Call external subroutine) ; G59 (Change work offset) ; M98 P40013 (Call external subroutine) ; (BEGIN COMPLETION BLOCKS) ; G00 Z0.1 M09 (Rapid retract, Coolant off) ; G53 G49 Z0 M05 (Z home, Spindle off) ; G53 Y0 (Y home) ; M30 (End program) ; %

Subroutine Multiple Fixture Drawing


% O40013 (M98_Subroutine) ; X0 Y0 (Move to zero of work offset) ; G83 Z-1. Q0.2 R0.1 F15. (Begin G83) ; G00 G80 Z0.2 M09 (Cancel canned cycle) ; M99 ; %

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.