External Subprogram Canned Cycle Example (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
% O40010 (M98_External sub canned cycle ex) ; (G54 X0 Y0 is at the top left of the part) ; (Z0 is on top of the part) ; (T1 is a spot drill) ; (T2 is a drill) ; (T3 is a tap) ; (BEGIN PREPARATION BLOCKS) ; T1 M06 (Select tool 1) ; G00 G90 G40 G49 G54(Safe startup) ; X0.565 Y-1.875 (Rapid to 1st position) ; S1275 M03 (Spindle on CW) ; G43 H01 Z0.1 (Tool offset 1 on) ; M08 (Coolant on) ; (BEGIN CUTTING BLOCKS) ; G82 Z-0.175 P0.03 R0.1 F10. (Begin G82) ; M98 P40011 (Call external subroutine) ; (BEGIN COMPLETION BLOCKS) ; G00 Z1. M09 (Rapid retract, Coolant off) ; G53 G49 Z0 M05 (Z home, Spindle off) ; M01 (optional stop) ; (BEGIN PREPARATION BLOCKS) ; T2 M06 (Select tool 2) ; G00 G90 G40 G49 (Safe startup) ; G54 X0.565 Y-1.875 ; (Rapid back to 1st position) ; S2500 M03 (Spindle on CW) ; G43 H02 Z0.1 (Tool offset 2 on) ; M08 (Coolant on) ; (BEGIN CUTTING BLOCKS) ; G83 Z-0.72 Q0.175 R0.1 F15 (Begin G83) ; M98 P40011 (Call external subroutine) ; (BEGIN COMPLETION BLOCKS) ; G00 Z1. M09 (Rapid retract, Coolant off) ; G53 G49 Z0 M05 (Z home, Spindle off) ; M01 (optional stop) ; (BEGIN PREPARATION BLOCKS) ; T3 M06 (Select tool 3) ; G00 G90 G40 G49 (Safe startup) ; G54 X0.565 Y-1.875 ; (Rapid back to 1st position) ; S900 M03 (Spindle on CW) ; G43 H03 Z0.1 (Tool offset 3 on) ; M08 (Coolant on) ; (BEGIN CUTTING BLOCKS) ; G84 Z-0.6 R0.2 F56.25 (Begin G84) ; M98 P40011 (Call external subroutine) ; G80 G00 Z1. M09 (Cancel canned cycle) ; (BEGIN COMPLETION BLOCKS) ; G00 Z1. M09 (Rapid retract, Coolant off) ; G53 G49 Z0 M05 (Z home, Spindle off) ; G53 Y0 (Y home) ; M30 (End program) ; %

Subroutine

% O40011 (M98_Subroutine X,Y Locations) ; X1.115 Y-2.75 (2nd position) ; X3.365 Y-2.875 (3rd position) ; X4.188 Y-3.313 (4th position) ; X5. Y-4. (5th position) ; 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.

Feedback