The NumericBitXor component performs a logical XOR on the bit equivalent of the numeric In value against the bit equivalent of its numeric Mask slot value. It may be useful in cases where the Boolean information is mapped into integer values.
For example, some manufacturers multiplex binary data into a single numerical point by converting the bits from hexadecimal to decimal format. To obtain the status of the individual binary data, the number must be converted back from decimal to hex format. Each digit of the hex number represents a particular binary parameters state (0 = false, 1 = true). The NumericBitXor component converts a numeric input to a hex value and compares it against the Mask value. Each digit is analysed using exclusive OR (XOR) logic, setting the corresponding digit value to either 1 or 0.
The NumericBitXor component has the following slots:
- Status: shows the component's status;
- Out: the output with the outcome of the XOR operation;
- In: the numeric input value;
- Mask: the numeric input value.