ValidSelectMultiPrio Function Block
The Valid Select Multi Prio function returns the highest priority input that is not invalid. This block is similar to ValidSelectPrio, but it has two numerical lines.
Figure 1: ValidSelectMultiPrio - Function Block |
Figure 2: ValidSelectMultiPrio - Property Sheet |
First function block has higher priority than the second. The output from the second cascade in used as input for the first.
In the below Figure, In A1 has highest priority than the Default value 9 (PID and auto condition).
Figure 3: ValidSelectMultiPrio Logic Diagram
Inputs
Input Name |
Description |
In A1 (In & Par) |
If In A1 has a valid value (less or greater than zero), Out 1 = In A1. In A1 has the highest priority. |
In B1 (In & Par) |
If In A1 has an invalid value ("null"), but In B1 has a valid value (less or greater than "null"), Out = In B1. |
In C1 (In & Par) |
If In A1 and In B1 have an invalid value ("null"), but In C1 has a valid value (less or greater than "null"), Out1= In C1. |
In D1 (In & Par) |
If In A1, In B1 and In C1 have an invalid value ("null"), but In D1 has a valid value (less or greater than "null"), Out = In D1. |
In A2 (In & Par) |
If In A1 is output on Out 1, In A2 is output on Out 2. |
In B2 (In & Par) |
If In B1 is output on Out 1, In B2 is output on Out 2. |
In C2 (In & Par) |
If In C1 is output on Out 1, In C2 is output on Out 2. |
In D2 (In & Par) |
If In D1 is output on Out 1, In D2 is output on Out 2. |
Default1 (In & Par) |
If all Inputs In A1 - In D1 have invalid values ("null"), Out 1 = Default1. |
Default2 (In & Par) |
If all Inputs In A2 - In D2 have invalid values ("null"), Out 2 = Default2. |
Table 1: Inputs of ValidSelectMultiPrio Function
Output
Output Name |
Description |
Out 1 |
Output = Highest priority input that is not invalid (In A1/In B1/In C1/In D1/Default1). |
Out 2 |
Output = Highest priority input that is not invalid (In A2/In B2/In C2/In D2/Default2). |
Table 2: Output of ValidSelectMultiPrio Function
Parameter
Parameter Name |
Description |
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. Out1: To enable or disable the Out1 feature. Out2:To enable or disable the Out2 feature. |
Table 3: Parameters of ValidSelectMultiPrio Function
Examples
1. Example for priority selection, highest priority selector value is valid same value is selected as output.
Figure 4: ValidSelectMultiPrio - Priority Selection
2. Example for default selection, if all the priority selector values are "nan".
Figure 5: ValidSelectMultiPrio - Default Selection
Refer to General for general information about IRMN4 Function Blocks.