BinarySelectPrio Function Block
The Binary Select Prio function allows for input selection based on a select value. Each of the four numeric inputs is output is determined by the four binary inputs. If more than one binary input is "true" at the same time, the upper input takes priority.
Figure 1: BinarySelectPrio - Function Block |
Figure 2: BinarySelectPrio - Proprty Sheet |
Figure 3: BinarySelectPrio - Logic Diagram
Inputs
Input Name |
Description |
Select A - Select D |
This input decides whether In A, In B, In C, or In D is used as output. |
In A (In & Par) |
If Select A = "1" , Out = In A. It has highest priority. |
In B (In & Par) |
If Select B = "1", Out = In B. In B has lower priority than In A. |
In C (In & Par) |
If Select A = "1", Out = In A In C has lower priority than In A and In B. |
In D (In & Par) |
If Select D = "1", Out = In D. In D has lower priority than In A, In B, and In C. |
Default (In & Par) |
If all Select inputs are set to "false", Out = Default. |
Table 1: Inputs of BinarySelectPrio Function
Output
Output Name |
Description |
Out |
Out = In A/In B/In C/In D. If Select A = "1", Out = In A. If Select B = "1", Out = In B. If Select C = "1", Out = In C. If Select D = "1", Out = In D. |
Table 2: Output of BinarySelectPrio Function
Parameters
Parameter Name |
Description |
In A Par (In & Par) |
If In A is "null", In A Par is used as parameter. In A Par is set to "nan". In this case, it is treated like invalid. |
In B Par (In & Par) |
If In B is "null", In B Par is used as parameter. In B Par is set to "nan". In this case, it is treated like invalid. |
In C Par (In & Par) |
If In C is "null", In C Par is used as parameter. In C Par is set to "nan". In this case, it is treated like invalid. |
In D Par (In & Par) |
If In D is "null", In D Par is used as parameter. In D Par is set to "nan". In this case, it is treated like invalid. |
Default Par (In & Par) |
If Default is "null", Default Par is used as parameter. In Default 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 BinarySelectPrio Function
If Input A, B, C, D any one is "true", corresponding Input is set as output
If more than one input is "true". InA has highest priority, In D has low priority. Accordingly Output is set.
|
|
||
Figure 5: Example - BinarySelectPrio Function Block and Property Sheet |
|
Refer to General Description for general information about IRMN4 Function Blocks.