Subprograms

Next Generation 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

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 subprogram 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 block number (Nnnnnn) of the local subprogram.
  • 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 subprogram.
  • The subprogram must reside in the active directory, or in a location specified in Settings 251/252. Refer to Setting 252 for more information on subprogram search locations.

Canned Cycles are the most common use of subprograms. For example, you might put the X and Y locations of a series of holes in a separate program. Then you can call that program as a subprogram with a canned cycle. Instead of writing the locations once for each tool, you write the locations only once for any number of tools.

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