BinarySelectMulti Function Block
A binary input determines which of the two numeric inputs are used as output. The term "multi" refers to the switching of two independent inputs, similar to a relay with two changeover contacts.
Figure 1: BinarySelectMulti - Function Block |
Figure 2: BinarySelectMulti - Property Sheet |
Instead of this block, the BinarySelect can be used two times. But this block is clear and avoids programming errors.
Figure 3: BinarySelectMulti Logic Diagram
Inputs
Description |
|
Select |
This input decides whether In A1/In B1 or In A2/In B2 are used as outputs. |
In A1 (In & Par) |
If Select = "0", Out = In A1. It is used as a default value. |
In A2 (In & Par) |
If Select = "1", Out = In A2. It is used as an override value. |
In B1 (In & Par) |
If Select = "0", Out = In B1. It is used as a default value. |
In B2 (In & Par) |
If Select = "1", Out = In B2. It is used as an override value. |
Table 1: Inputs of BinarySelectMulti Function
Outputs
Description |
|
Out A |
If Select = "0", Out = In A1 or In B1. If Select = "1", Out = In A2 or In B2. |
Out B |
If Select = "0", Out = In A1 or In B1. If Select = "1", Out = In A2 or In B2. |
Table 2: Outputs of BinarySelectMulti Function
Parameters
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 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 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 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. |
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 A: To enable or disable the Out A feature. Out B:To enable or disable the Out B feature. |
Table 3: Parameters of BinarySelectMulti Function
If Select = "false", In A1 is set to Out A and In B1 is set to Out B.
Figure 4: Example - BinarySelectMulti Function Block
If Select = "true", In A2 is set to Out A and In B2 is set to Out B.
Figure 5: BinarySelectMulti Function Block |
Figure 6: BinarySelectMulti - Property Sheet |
Refer to General Description for general information about IRMN4 Function Blocks.