ConOpSys V2970
P004.07
ANVILEX control operating system
|
Platinum resistance thermometers (PRT) class. More...
#include <PRT_Sensor.h>
Public Types | |
enum | TPRT_Scala { enum_IPTS_68 = 1 , enum_ITS_90 = 2 } |
Platin resistance temperature scala. More... | |
enum | TPRT_Type { enum_Pt100 = 1 , enum_Pt200 = 2 , enum_Pt500 = 3 , enum_Pt1000 = 4 , enum_Pt3000 = 5 , enum_Pt6000 = 6 , enum_Pt9000 = 7 } |
Platin resistance temperature sensor type. More... | |
Public Member Functions | |
BOOL | Temperature_To_Resistance (F32 *f32_Resistance, F32 f32_Temperature, TPRT_Scala enum_PRT_Scala, TPRT_Type enum_PRT_Type) |
The function calculates the electrical resistance for a Platinum Resistance Thermometer (PRT) at given temperature and defined resistance R0 at 0°C for a PRT element. More... | |
BOOL | Resistance_To_Temperature (F32 *f32_Temperature, F32 f32_Resistance, TPRT_Scala enum_PRT_Scala, TPRT_Type enum_PRT_Type) |
The function calculates the electrical resistance for a Platinum Resistance Thermometer (PRT) at given temperature and defined resistance R0 at 0°C for a PRT element. More... | |
Private Member Functions | |
BOOL | Get_Base_Resistance (F32 *f32_Resistance, TPRT_Type enum_PRT_Type) |
The function returns base electrical resistance in ohms. More... | |
BOOL | Get_Scala_Coefficients (F32 *f32_A, F32 *f32_B, F32 *f32_C, TPRT_Scala enum_PRT_Scala) |
The function returns base electrical resistance in ohms. More... | |
Platinum resistance thermometers (PRT) class.
enum TPRT::TPRT_Scala |
enum TPRT::TPRT_Type |
The function returns base electrical resistance in ohms.
[out] | *f32_Resistance | Resistance at given temperature. |
[in] | enum_PRT_Type | Type of the platinum resistance termomenter. |
true | Converstion successed |
false | Conversuin error |
References enum_Pt100, enum_Pt1000, enum_Pt200, enum_Pt3000, enum_Pt500, enum_Pt6000, and enum_Pt9000.
Referenced by Resistance_To_Temperature(), and Temperature_To_Resistance().
|
private |
The function returns base electrical resistance in ohms.
[out] | *f32_A | Scala coefficient A. |
[out] | *f32_B | Scala coefficient B. |
[out] | *f32_C | Scala coefficient C. |
[in] | enum_PRT_Scala | Temperature scala |
true | Converstion successed |
false | Conversuin error |
References enum_IPTS_68, and enum_ITS_90.
Referenced by Resistance_To_Temperature(), and Temperature_To_Resistance().
BOOL TPRT::Resistance_To_Temperature | ( | F32 * | f32_Temperature, |
F32 | f32_Resistance, | ||
TPRT_Scala | enum_PRT_Scala, | ||
TPRT_Type | enum_PRT_Type | ||
) |
The function calculates the electrical resistance for a Platinum Resistance Thermometer (PRT) at given temperature and defined resistance R0 at 0°C for a PRT element.
[out] | *f32_Temperature | Temperature in degree celsius. |
[in] | f32_Resistance | Resistance at given temperature. |
[in] | enum_PRT_Scala | Temperature scala |
[in] | enum_PRT_Type | Type of the platinum resistance termomenter. |
true | Converstion successed |
false | Conversuin error |
References Get_Base_Resistance(), Get_Scala_Coefficients(), and Temperature_To_Resistance().
Referenced by TKG3_LCSI_T1::Execute(), TKG3_CAB_EXT_T1::Execute(), TKG3_RTD2_T1::Execute(), TP013_49_V1_0_RTD::Get_Temperature_Channel_1(), TP015_09_V1_0_RTD::Get_Temperature_Channel_1(), TP017_41_KG3_RTD::Get_Temperature_Channel_1(), TP015_09_V1_0_RTD::Get_Temperature_Channel_10(), TP013_49_V1_0_RTD::Get_Temperature_Channel_2(), TP015_09_V1_0_RTD::Get_Temperature_Channel_2(), TP017_41_KG3_RTD::Get_Temperature_Channel_2(), TP013_49_V1_0_RTD::Get_Temperature_Channel_3(), TP015_09_V1_0_RTD::Get_Temperature_Channel_3(), TP017_41_KG3_RTD::Get_Temperature_Channel_3(), TP013_49_V1_0_RTD::Get_Temperature_Channel_4(), TP015_09_V1_0_RTD::Get_Temperature_Channel_4(), TP017_41_KG3_RTD::Get_Temperature_Channel_4(), TP015_09_V1_0_RTD::Get_Temperature_Channel_5(), TP015_09_V1_0_RTD::Get_Temperature_Channel_6(), TP015_09_V1_0_RTD::Get_Temperature_Channel_7(), TP015_09_V1_0_RTD::Get_Temperature_Channel_8(), and TP015_09_V1_0_RTD::Get_Temperature_Channel_9().
BOOL TPRT::Temperature_To_Resistance | ( | F32 * | f32_Resistance, |
F32 | f32_Temperature, | ||
TPRT_Scala | enum_PRT_Scala, | ||
TPRT_Type | enum_PRT_Type | ||
) |
The function calculates the electrical resistance for a Platinum Resistance Thermometer (PRT) at given temperature and defined resistance R0 at 0°C for a PRT element.
[out] | *f32_Resistance | Resistance at given temperature. |
[in] | f32_Temperature | Temperature in degree celsius. |
[in] | enum_PRT_Scala | Temperature scala |
[in] | enum_PRT_Type | Type of the platinum resistance termomenter. |
true | Converstion successed |
false | Converstion error |
References enum_ITS_90, Get_Base_Resistance(), and Get_Scala_Coefficients().
Referenced by TP021_12_KG3_Cooling_System_Model_Emulator::Execute(), and Resistance_To_Temperature().