ese power tools and they can be di vided into two groups:


Logical functions used for creating a CONDITION or a COMPARISON


Logical operators performed on BINARY NUMBERS

Boolean Functions

To the first group be long copper busbar bending machine the six stan dard com par i son op er a tors (of ten called Boolean op er a –

tors, or Boolean func tions):


Boring Machine hole

Boolean func tions com pare two val ues and re turn a true or false con punch machine for Head di tion:

EQ = Equal to

NE = Not equal to

GT = Greater than

LT = Less than

GE = Greater than or equal to

LE = Less than or equal to

Copyright 2005, Industrial Press Inc, New York, NY –

FANUC CNC Custom Macros



Bi nary drilling steel Num bers Functions

To the sec ond group be long the three log i cal op er a tors, used to per form log i cal op er a tion on a

bi nary num ber, bit by bit:


These three macro func tions are used for log i cal com par i sons in var i ous pro gram ming ap pli ca –

tions The two most com monly used func tions are the AND and the OR func tions; the XOR (Ex clu –

sive OR) is used very sel dom All three are used at ev ery bit of 32 bits

The AND and OR func tions com pare two given con di tions The com pared con di tions are eval u –

ated, and re turn ei ther the TRUE value or the FALSE value True value means 鈥楾rue锟? and False

value means 鈥楴ot True锟? In plain Eng lish, it is easy to un der stand the dif fer ence be tween the AND

and the OR func tions, be cause they fol low the ba sic logic of the Eng lish lan guage

For ex am ple, the sen tence 鈥淛ack and Jill will go shop ping锟?, means that both of them will go

shop ping The sen tence 鈥淛ack or Jill will go shop ping锟?, says some thing dif fer ent – that only one of them will go shop ping These func tions have their equiv a lent in all high level lan guages – they are

called the bit val ues of TRUE and FALSE, and have one of the two pos si ble val ues – 1 or 0

For ex am ple, if a given is com pared with a given , and used with the AND fu