BinaryToNumeric Function Block
The Binary To Numeric function block is used to assign three different numeric values to a numeric output based on a binary input that can be "true", "false" or "null".
Figure 1: BinaryToNumeric Function Block |
Figure 2: BinaryToNumeric Property Sheet |
Depending on the boolean input In, the output Out is assigned to one of the 3 numeric input or parameter values Value False, Value True or Value Null Par.
|
|
Figure 3: BinaryToNumeric Logic Diagram
Inputs
Input Name |
Description |
In |
This binary input determines the value of the output Out.
|
Value False (In & Par) |
This value is assigned to the output Out, if the input In is "false". |
Value True (In & Par) |
This value is assigned to the output Out, if the input In is "true". |
Value Null (In & Par) |
This value is assigned to the output Out, if the input In is "null". |
Table 1: Input of BinaryToNumeric Function
Output
Output Name |
Description |
Out |
If In is set to "false", the value of the input/parameter Value False is output Out. If In is set to "true", the value of the input/parameter Value True is output Out. If In is set to "null", the value of the input/parameter Value Null is output Out. |
Table 2: Output of BinaryToNumeric Function
Parameter
Parameter Name |
Description |
Value False Par (In & Par) |
If Value False is "null", Value False Par is used as parameter (default = 0). |
Value True Par (In & Par) |
If Value True is "null", Value True Par is used as parameter, (default = 1). |
Value Null Par (In & Par) |
If Value Null is "null", Value Null Par is used as parameter(default = null). |
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 BinaryToNumeric Function
Note: For Conversion from a numeric to a binary value, please look at Select the Switch - NumericSelect functional block.
Examples
An occupancy sensor is to be sent to BACnet with the values 1 = NotUsed, 2 = Unoccupied, 3 = Occupied. The occupancy sensor is a binary value with the values null = Not connected, 0 = Unoccupied, 1 = Occupied.
|
|
Figure 4: BinaryToNumeric Example Logic Diagram
Figure 5: BinaryToNumeric Example Function Block
|
Figure 6: BinaryToNumeric Example Property Sheet
|
Refer to General Description for general information about IRMN4 Function Blocks.