UniSwitch (BUniSwitchBlock)

This block evaluates a Boolean input, Test In, and outputs either the True In or False In value. This block supports both value and trend requests.

If the True In slot is not linked, the block outputs the default numeric value of true, one (1). If the False In slot is not linked, the block outputs the default numeric value of false, zero (0).

For trend requests, at least one of the inputs, Test In, True In or False In, must map to a trend.

This block functions the same as the Bi Switch Block except the Boolean logic is tested externally using another logic block or Boolean data source in the algorithm, which is linked to the Test In slot.

Figure 212.   UniSwitch 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 evaluating the Boolean condition.
Test In value slot Links from the output of other logic blocks or data sources to supply one or more input values to be tested for validity in the logic block.
True In optional value slot (defaults to True if not linked) 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 not linked) Links from the output of other logic blocks or data sources to supply one or more invalid values to a logic block.

Example

Consider a Boolean point with an interval history for HVAC Heating and Cooling Mode that is tagged with b:HtgClgMode and a:a marker tags, and numeric points with interval histories for Heating and Cooling Setpoints that are tagged with b:zoneAirTempClgStpt or b:zoneAirTempHtgStpt marker tag and a:a marker tags. An algorithm with a Uni Switch Block can use the HVAC Heating and Cooling Mode to determine the effective setpoint.

Figure 213.   Uni Switch algorithm
Image

The Analytic Table Binding configuration and example output could be:

Figure 214.   Configuration and example
Image