Supported platforms: CODESYS 2.3, CODESYS 3.5

 

SCD_SetKTYScale (FB)

Description

This internal function block calculates KTY prescale values for the curve scale. It uses predefined calibration points from KTY specification.

 

Limitations

This function block is for SensorCalibrationAndDiagnostic library's internal use only.

Inputs

Input variable name

Data type

Range

Description

i_ResAt25degC

INT

0..5000

Sensor’s typical resistance in Ohm value at 25°C

i_CalibrationOffset

INT

-200..200

Resistance offset value in Ohm at 25°C for fine tuning calibration curve.

i_SensorAIType

BYTE

0..G_ADScaleArrMax

Index number which defines the AI type (mA or V) and range.

i_ReferenceAIValue

WORD

0..65535

ADC value of the reference voltage that is used to supply the sensor.

i_ReferenceAIType

BYTE

0..G_ADScaleArrMax

Index number which defines the AI range of reference measurement

Outputs

Output variable name

Data type

Range

Description

o_aScale

ARRAY [1..10] OF WORD

 

AD value scale for KTY resistance curve

 

See also

 

Source file Topic000323.htm

Last updated 24-Apr-2025