Variable Usage

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

All variables are referenced with a number sign (#) followed by a positive number: #1, #101, and #501.

Variables are decimal values that are represented as floating point numbers. If a variable has never been used, it can take on a special undefined value. This indicates that it has not been used. A variable can be set to undefined with the special variable #0. #0 has the value of undefined or 0.0 depending on its context. Indirect references to variables can be accomplished by enclosing the variable number in brackets: #[]

The expression is evaluated and the result becomes the variable accessed. For example:

#1=3 ; #[#1]=3.5 + #1 ;

This sets the variable #3 to the value 6.5.

A variable can be used in place of a G-code address where address refers to the letters A-Z.

In the block:

N1 G0 X1.0 ;

the variables can be set to the following values:

#7 = 0 ; #1 = 1.0 ;

and replaced by:

N1 G#7 X#1 ;

Values in the variables at runtime are used as the address values.

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