Logical Operators

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

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

Examples:

% #1=1.0 ; #2=2.0 ; #3=#1 OR #2 ; %

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

% #1=5.0 ; #2=3.0 ; IF [[#1 GT 3.0] AND [#2 LT 10]] GOTO1 ; %

Here control will transfer to block 1 because #1 GT 3.0 evaluates to 1.0 and #2 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.

Feedback