Boolean Block – Equations

In order for the Boolean block to calculate its output correctly, you must enter an equation. In general, the equation syntax is:  

input operator input

where input is one of the block's inputs and operator is a Boolean operator. You specify inputs in the equation by their letter. For example, if you enter DI1 into the Boolean block's A Input field, you would refer to it in the equation as A.

You can specify any operator listed in the following table:

Enter...

To represent the operator...

Description

-

NOT

Inverts the incoming value. If A is true, -A is false.

*

AND

Evaluates to true if all inputs are true. If any input is false, the output is false.

!

NAND

Evaluates to true if A and B are not both true. Otherwise the output is false.

+

OR

Evaluates to true as long as one or more of the inputs are true. If all inputs are false, the output is false.

^

XOR

Evaluates to true if one input is true and the other false. If both inputs are true or false, the output is false.

=

Equal

Evaluates to true if A equals B. Otherwise, the output is false.

~

Not Equal

Evaluates to true if A does not equal B. Otherwise, the output is false.