Bit formulas

Previous chapterNext chapter Show allShow all    Hide allHide all

Bit formulas are mathematical variables which only possess a logical low or high state. As opposed to float formulas with Boolean processing, the raw value is already predefined (0,1).

Entering Bit formulas:

Only Boolean operators are available for calculations (see chapter Boolean algebra.)

The mathematics driver also allows to define values (e.g. multi-bit) bitwise via Boolean formulas. For this, the desired bit-pattern has to be entered in the bit formula decimally after the operator (e.g. Bit0 and Bit1 ->3).

Syntax

Description

(X01)NAND(X02)

NOT AND

(X01)NOR(X02)

NOT OR

(X01&3)

With the value of the variable, X01 bit0=1 and bit1=1 are linked with an AND

(X01|3)

With the value of the variable X01, bit0=1 and bit1=1 are linked with an OR

(X01#3)

With the value of the variable X01, bit0=1 and bit1=1 are linked with an XOR