BiSwitch (BBiSwitchBlock)

This block evaluates the values of In1 and In2 using the configured Boolean operator and outputs either a True In or False In value. The block supports both value and trend requests.

If the True In slot is not linked, the block uses a default true value of (1). If the False In slot is not linked, it uses a default false value of (0).

For trend requests, at least one of the inputs (In1 or In2) must map to a trend.

Figure 192.   BiSwitch properties
Image

To view these properties, double-click the block on the Wire Sheet or the block name in the Nav tree.

Property Value Description
Out read-only value slot Outputs either the True In or False In value based on the evaluating the Boolean condition.
In 1 operand Defines the first operand used in the expression. Links from the output of other logic blocks or data sources to supply one or more input values to another logic block.
Operator drop-down list (defaults to Equals) Defines the function to perform.

Equals indicates that In1 = In2.

Greater Than indicates that In1 > In2.

Greater Than Equal To indicates that In1In2.

Less Than indicates that In1 < In2.

Equal To indicates that In1 = In2.

Not Equal indicates that In1In2.

And

Or

In 2 operand Defines the second operand used in the expression. Links from the output of other logic blocks or data sources to supply one or more input values to a logic block.
True In optional value slot (defaults to True if unlinked) Links from the output of other logic blocks or data sources to supply one or more valid values to the logic block.
False In optional value slot (defaults to False if unlinked) Links from the output of other logic blocks or data sources to supply one or more invalid values to a logic block.

Example

This block supports the Boolean operator functions including: Equals, Greater Than, Greater Than Equal To, Less Than, Less Than Equal To, Not Equal, And, Or.

Consider a numeric point with an interval history for electrical power marked by hs:power and a:a marker tags. To identify when the electrical power exceeds some high limit (fault detection) an algorithm with a Bi Swtich Block may be used. In this case, since the True In and False In slots on the block are not linked, the block outputs the default values of either true (1) or false (0).

Figure 193.   Bi Switch Block algorithm
Image

The alg:HighPowerBoolean would be particularly useful with a Boolean Point using an Analytic Proxy Ext in conjunction with a standard BooleanChangeOfStateAlarmExt for fault detection.

Figure 194.   HighPower Boolean Point
Image

You could duplicate and modify the above alg:HighPowerBoolean as below in alg:HighPowerValue.

Figure 195.   HighPower Value
Image

The Power data source links to both the In1 and True In slots on the Bi Switch Block, which makes the block either pass the actual power value when the condition is true or a false (0) value when the condition is false. The downstream Logic Filter Block is configured with Mode = Retain True so it only passes values greater than zero, meaning the result set only includes the trend records with a value greater than 475 KW.

Figure 196.   Analytic Web Chart Binding
Image
Figure 197.   Chart
Image