Subprograms

Classic Control - Lathe 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 (subprograms):

  • Are usually a series of commands that are repeated several times in a program
  • Are written in a separate program, instead of repeating the commands many times in the main program
  • Are called in the main program with an M97 or M98 and a P code.
  • Can include an L for repeat count. The subroutine call repeats L times before the main program continues with the next block

When you useM97:

  • The P code (nnnnn) is the same as the program location (Onnnnn) of the subroutine.
  • The subprogram must be within the main program

When you use M98:

  • The P code (nnnnn) is the same as the program number (Onnnnn) of the subroutine.
  • The subprogram must reside in the control memory or hard drive (optional).

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