Supported platforms: CODESYS 2.3, CODESYS 3.5
SCD_LinearScale function scales ADC value to some calibrated unit linearly (e.g. to bar).
High, low and measured input variables are given to the function as ADC values (all with the same scale).
The function supports both positive and negative slope.
The function doesn’t limit the return value between i_LowScaledValue and i_HighScaledValue.
This function block is primarily intended for SensorCalibrationAndDiagnostic library's internal use. |
Input variable name |
Data type |
Range |
Description |
i_InputValue |
UINT |
0..65535 |
AD converter value to be scaled. |
i_HighInputValue |
UINT |
0..65535 |
AD converter value which corresponds to HighScaledValue. |
i_LowInputValue |
UINT |
0..65535 |
AD converter value which corresponds to LowScaledValue. |
i_HighScaledValue |
INT |
-32768..32767 |
ScaledValue which corresponds to HighInput value. |
i_LowScaledValue |
INT |
-32768..32767 |
ScaledValue which corresponds to LowInput value. |
|
Data type |
Range |
Description |
|
INT |
-32768..32767 |
Scaled value. |
-
Source file Topic000256.htm
Last updated 24-Apr-2025