The function block has two input pins x1 and x2, and an output pin Y. This function subtracts one input from the other. Y = x1 - x2. If the result overflows the range of a single precision floating point number, (approximately minus 3.4e38 to plus 3.4e38) the result returned is invalid.
Note: You can connect both Analog and Digital inputs as inputs to this function block.
TailOperation: The output value is based on one of four specified property values:
Ignore invalid inputs: Select this option if you want the function block to ignore any invalid inputs, if any, and consider only the valid inputs to calculate the output. If this option is left unselected, the invalid inputs make the output also as invalid. This option is not supported in the LonSpyder I models: PVL6436A, PVL6438N, or PUL6438 models and therefore you cannot download this configuration to those models.
Analog Inputs
| Range | |||||
| Input Name | Low | High | Input Value | Invalid flag | Description |
| x1, x2 | >=- infinity | <+ infinity | unconnected |
|
|
| invalid | 0 | If any input is invalid, y is invalid | |||
| 1 | Invalid input is set to 0. If all inputs are invalid, output is invalid. | ||||
Output
| Output Name | Range | Description |
| Y | Any floating point value | Y= x1 - x2 |