Compare library

<< Click to Display Table of Contents >>

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

Compare library

Previous pageReturn to chapter overviewNext page

comparelib

Equal - this script object used to comparison operation equal for input values (Output = Input == Input2).

Not Equal - this script object used to comparison operation not equal for input values (Output = Input != Input2).

Greater - this script object used to compare operation greater for input values (Output = Input > Input2).

Less - this script object used to compare operation less for input values (Output = Input < Input2).

Equal or Greater - this script object used to compare operation equal or greater for input values (Output = Input >= Input2).

Equal or Less - this script object used to compare operation equal or less for input values (Output = Input <= Input2).

 

Example:

compareex

This operation compare Tag's value and Tag1's value and place result in Tag2's value. If Tag's value greater than Tag1's value Tag2's value equal TRUE(1).

Tag

Tag1

Tag2

5

9

FALSE(0)

12

8

TRUE(1)