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

These are the preparation code blocks in the sample program O40001:

Preparation Code Block Description
% Denotes the beginning of a program written in a text editor.
O40001 (Basic program) ; O40001 is the name of the program. Program naming convention follows the Onnnnn format: The letter “O”, or “o” is followed by a 5-digit number.
(G54 X0 Y0 is top right corner of part) ; Comment
(Z0 is on top of the part) ; Comment
(T1 is a 1/2" end mill) ; Comment
T1 M06 (Select tool 1) ; Selects tool T1 to be used. M06 commands the tool changer to load Tool 1 (T1) into the spindle.
G00 G90 G17 G40 G49 G54 (Safe startup) ; This is referred to as a safe startup line. It is good machining practice to place this block of code after every tool change. G00 defines axis movement following it to be completed in Rapid Motion mode.

G90 defines axis movements following it to be completed in absolute mode (refer to Absolute vs. Incremental Positioning (G90, G91) for more information).

G17 defines the cutting plane as the XY plane. G40 cancels Cutter Compensation. G49 cancels tool length compensation. G54 defines the coordinate system to be centered on the Work Offset stored in G54 on the Offset display.
X0 Y0 (Rapid to 1st position) ; X0 Y0 commands the table to move to the position X = 0.0 and Y = 0.0 in the G54 coordinate system.
S1000 M03 (Spindle on CW) ; M03 turns the spindle on in a clockwise direction. It takes the address code Snnnn, where nnnn is the desired spindle RPM.

On machines with a gearbox, the control automatically selects high gear or low gear, based on the commanded spindle speed. You can use an M41 or M42 to override this. Refer to for more information on these M-codes.

G43 H01 Z0.1 (Tool offset 1 on) ; G43 H01 turns on Tool Length Compensation +. The H01 specifies to use the length stored for Tool 1 in the Tool Offset display. Z0.1 commands the Z Axis to Z=0.1.
M08 (Coolant on) ; M08 commands the coolant to turn on.

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.