Module description
A transformation law can be applied to the measured values. The application of the laws is carried out with each reception of measured value whatever its state (bit OV, invalid...).
Laws managed by the plugin :
N° | Description | Range 0 / Deadband | Law |
0 | Normal | [-bm…bm] | y=ax+b |
1 | Square_root | [-bm…bm] | y=a rac(x)+b |
2 | Quadratic | [-bm…bm] | y=rac(ax+b) |
3 | Transparent | [-bm…bm] | y=x |
The value a=0 is always replaced by a=1.
Calculation error
If the square root parameter has a negative value, the output result is set to 0 bad quality and the "inconsistent" bit is set to 1.
If the result of the calculation does not correspond to the internal format of the variable (outside the functional type float32...), the output result is set to 0 bad quality and the OV bit is set to 1. The calculation is therefore stored in a double format before being converted to float32.
Protocol abstraction
The plugin ignores the input and output protocols used.
...
If not, the scaling is done.
Configuration
A list of measured values must be passed to the module. Only the measured values with a scaling to be applied are configured in the module.
...
The configuration data of this module are present in "Exchanged_data".
Pivot model interaction
This module is designed to work on values measured in pivot format. Other types of i are not affected by this module.
Input
The module uses the identification (Attribute "PIVOTTM.GTIM.Identifier") of the data to determine if the measured value is part of the information to be processed.
...
- PIVOTTM.GTIM.MvTyp.mag.i => input value in INT32 format
- PIVOTTM.GTIM.MvTyp.mag.f => input value FLOAT32
- PIVOTTM.GTIM.MvTyp.q.Validity and PIVOTTM.MvTyp.q.DetailQuality => quality control
Output
The module applies the configured law to the measured value before sending it to the centers.
The data in the generated pivot format is :
- PIVOTTM.GTIM.MvTyp.q.DetailQuality.inconsistent => Calcul error
- PIVOTTM.GTIM.MVTyp.q.DetailQuality.overflow => Error if calculated value exceeds FLOAT32 format
- PIVOTTM.GTIM.MVTyp.q.DetailQuality.inaccurate => Value in the dead band
- PIVOTTM.GTIM.MvTyp.mag.f => Calculated output value
- If PIVOTTM.GTIM.MvTyp.mag.i => was positioned, it is deleted.
- Validity:
- If overflow : PIVOTTM.GTIM.MVTyp.q.Validity = "invalid"
- If inconsistent or inaccurate: PIVOTTM.GTIM.MVTyp.q.Validity = "questionable"
- if the law not is transparent : PIVOTTM.GTIM.MvTyp.q.Source = "substituted"
- The quality control positions eventually :
- PIVOTTM.GTIM.MvTyp.q.Validity à « invalid ».
- PIVOTTM.GTIM.MvTyp.mag.f at 0
- If PIVOTTM.GTIM.MvTyp.mag.i => was positioned, it is deleted.