Logical library

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > FBD language > Script objects of FBD language  >

Logical library

Previous pageReturn to chapter overviewNext page

logicallib

Inverse - this script object used to inverse input boolean value (Output = ! Input).

Logical AND - this script object used to logical operation AND for input boolean values (Output = Input & Input2).

Logical OR - this script object used to logical operation OR for input boolean values (Output = Input || Input2).

Logical XOR - this script object used to logical operation XOR for input boolean values (Output = Input XOR Input2).

 

Example:

logicalex

Tag2's value = Tag's value &(AND) Tag1's value;

Tag

Tag1

Tag2

FALSE(0)

FALSE(0)

FALSE(0)

FALSE(0)

TRUE(1)

FALSE(0)

TRUE(1)

FALSE(0)

FALSE(0)

TRUE(1)

TRUE(1)

TRUE(1)