M98 Subprogram Call

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

M98 Subprogram Call

P - Subprogram number to go to when conditional test is met L - Repeats subprogram call (1-99) times.

M98 is used to call a subprogram, the format is M98 Pnnnn (Pnnnn is the number of the program being called). The subprogram must be in the program list, and it must contain an M99 to return to the main program. An Lnn count can be put on the line containing M98 and causes the sub-program to be called nn times before continuing to the next block.

When an M98 subprogram is called, the control looks for the subprogram on the active drive, and then in memory if the subprogram cannot be located. The active drive may be memory, USB drive, or hard drive. An alarm occurs if the control does not find the subprogram on either the active drive or in memory.

M98 Example:

The subprogram is a separate program (O00100) from the main program (O00002).

% O00002 ; M98 P100 L4 (CALLS O00100 SUB 4 TIMES) ; M30 ; % % O00100 (SUBPROGRAM); M00 ; M99 (RETURN TO MAIN PROGRAM) ; %

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.