User Scale
User Scale
The “User Scale” functional unit is intended for reinterpretations/transformations of the measured value, so “10 V” can become “50 kg” with Gain = 5. It is implemented as a linear transformation with gain/offset.
The gain/offset coefficients are available both in Real32 format for convenient operation and alternatively (but with the same mathematical effect) in INT16 format for compatibility with any existing code.
Processing in "User Scale" (if "Enable User Scale" = 1) is as follows:
"Value after User scale" = Offset + value of filter 2 * Gain
Parameter:
Index (hex) | Name | Data type | Meaning |
|---|---|---|---|
80n0:01 | Enable User Scale | BOOL | disabled by default, calculation only takes place if TRUE |
80n0:11 | User Scale Offset | SINT16 | is added directly in digits. |
80n0:12 | User Scale Gain | UINT16 | 1 bit corresponds to 2-16, so "1" corresponds to 0x7FFF/32767dec |
80nD:1C | User Scale Offset (Real32) | REAL32 | - |
80nD:1D | User Scale Gain (Real32) | REAL32 | - |
The intermediate value after this functional unit can be viewed in index 0x90n0:0B "Value After User Scale".
![]() | Changing the interface When the interface is changed, the gain and offset are reset to 1 and 0 respectively! |
