Logical Operators

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

Logical operators are operators that work on binary bit values. Macro variables are floating point numbers. When logical operators are used on macro variables, only the integer portion of the floating point number is used. The logical operators are:

OR - logically OR two values together

XOR - Exclusively OR two values together

AND - Logically AND two values together


% #10001=1.0 ; #10002=2.0 ; #10003=#10001 OR #10002 ; %

Here the variable #10003 will contain 3.0 after the OR operation.

% #10001=5.0 ; #10002=3.0 ; IF [[#10001 GT 3.0] AND [#10002 LT 10]] GOTO1 ; %

Here control transfers to block 1 because #10001 GT 3.0 evaluates to 1.0 and #10002 LT 10 evaluates to 1.0, thus 1.0 AND 1.0 is 1.0 (TRUE) and the GOTO occurs.

note: To achieve your desired results, be very careful when you use logical operators.

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.