Address Substitution

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

The usual method of setting control addresses A-Z is the address followed by a number. For example:

G01 X1.5 Y3.7 F20.;

sets addresses G, X, Y and F to 1, 1.5, 3.7 and 20.0 respectively and thus instructs the control to move linearly, G01, to position X=1.5 Y=3.7 at a feed rate of 20" per minute. Macro syntax allows the address values to be replaced with any variable or expression.

G01 X1.5 Z3.7 F.02 ;

sets addresses G, X, Z, and F to 1, 1.5, 3.7, and 0.02 respectively, and thus instructs the control to move linearly, G01, to position X = 1.5 and Z = 3.7 at a feed rate of 0.02 inches per revolution. Macro syntax allows the address value to be replaced with any variable or expression.

The previous statement can be replaced by this code:

% #1=1 ; #2=1.5 ; #3=3.7 ; #4=20 ; G#1 X[#1+#2] Y#3 F#4 ; %

The permissible syntax on addresses A-Z (exclude N or O) is as follows:


If the variable value does not agree with the address range, the control generates an alarm. For example, this code causes a range error alarm because the tool diameter numbers range from 0 to 200.

% #1=250 ; D#1 ; %

When a variable or expression is used in place of an address value, the value is rounded to the least significant digit. If #1=.123456, then G01 X#1 would move the machine tool to .1235 on the X Axis. If the control is in the metric mode, the machine would be moved to .123 on the X axis.

When an undefined variable is used to replace an address value, that address reference is ignored. For example, if #1 is undefined, then the block

G00 X1.0 Y#1 ;


G00 X1.0 ;

and no Y movement takes place.

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.