BinarySelectMultiPrio Function Block

The output of four numeric inputs is determined by the four binary inputs. When more than one binary input is true at the same time, the higher input takes priority. The term "multi" refers to the switching of two independent inputs, similar to a relay with two changeover contacts

Figure 1: BinarySelectMultiPrio - Function Block

Figure 2: BinarySelectMultiPrio - Property Sheet

First function block has higher priority than the second. The output from the second cascade is used as input for the first.

In the below Figure, In A1 has highest priority (fire and wind) than Default value 9 (PID and auto condition).

Figure 3: BinarySelectMultiPrio Logic Diagram

Input

Input Name

Description

Select A - Select D

It is a Boolean priority selector. Based on the true status value input will be selected for output. More than a true status then priority value will be selected. "A" means high priority "D" means low priority.

In A1 - In A2

In B1 - In B2

In C1 - In C2

In D1 - In D2

(In & Par)

These slots are 32-bit floating point input slots. One of this input is selected as an output based on priority selector "true" status.

Default 1 - Default 2

(In & Par)

This slot is 32-bit floating point input slot. If none of the priority is active default value will be set as an output.

Table 1: Inputs of BinarySelectMultiPrio Function

Output

Output Name

Description

Out 1

Output = In A1/In B1/In C1/In D1

Out 2

Output = In A2/In B2/In C2/In D2

Table 2: Outputs of BinarySelectMultiPrio Function

Parameter

Parameter Name

Description

In A1 Par

(In & Par)

If In A1 is "null", In A1 Par is used as parameter.

In A1 Par is set to "nan". In this case, it is treated like invalid.

In B1 Par

(In & Par)

If In B1 is "null", In B1 Par is used as parameter.

In B1 Par is set to "nan". In this case, it is treated like invalid.

In C1 Par

(In & Par)

If In C1 is "null", In C1 Par is used as parameter.

In C1 Par is set to "nan". In this case, it is treated like invalid.

In D1 Par

(In & Par)

If In D1 is "null", In D1 Par is used as parameter.

In D1 Par is set to "nan". In this case, it is treated like invalid.

In A2 Par

(In & Par)

If In A2 is "null", In A2 Par is used as parameter.

In A2 Par is set to "nan". In this case, it is treated like invalid.

In B2 Par

(In & Par)

If In B2 is "null", In B2 Par is used as parameter.

In B2 Par is set to "nan". In this case, it is treated like invalid.

In C2 Par

(In & Par)

If In C2 is "null", In C2 Par is used as parameter.

In C2 Par is set to "nan". In this case, it is treated like invalid.

In D2 Par

(In & Par)

If In D2 is "null", In D2 Par is used as parameter.

In D2 Par is set to "nan". In this case, it is treated like invalid.

Default1 Par

(In & Par)

If Default1 is "null", Default1 Par is used as parameter.

In Default1 Par is set to "nan". In this case, it is treated like invalid.

Default2 Par

(In & Par)

If Default2 is "null", Default2 Par is used as parameter.

In Default2 Par is set to "nan". In this case, it is treated like invalid.

Out Save

Master Sync Enabled : If you set it to "true" the last output will be set as output for one cycle after the controller restarts. The application can use it to return to the same state before the controller restart.

Out: To enable or disable the Out feature.

Table 3: Parameters of BinarySelectMultiPrio Function


 

Examples

1.       Example for priority selection, highest priority selector "true" status value is selected as output.

Figure 4: BinarySelectMultiPrio - Priority Selection

2.       Example for default selection, if all the priority selector values are "false".

Figure 5: BinarySelectMultiPrio - Default Selection

Refer to General Description for general information about IRMN4 Function Blocks.