ConOpSys V2970  P004.07
ANVILEX control operating system
Public Types | Public Member Functions | Private Member Functions | List of all members
TPRT Class Reference

Platinum resistance thermometers (PRT) class. More...

#include <PRT_Sensor.h>

Collaboration diagram for TPRT:
Collaboration graph

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...
 

Detailed Description

Platinum resistance thermometers (PRT) class.

Member Enumeration Documentation

◆ TPRT_Scala

Platin resistance temperature scala.

Enumerator
enum_IPTS_68 

IPTS68 scala.

enum_ITS_90 

@ ITS90 scale

◆ TPRT_Type

Platin resistance temperature sensor type.

Enumerator
enum_Pt100 

Pt100 based sensor.

enum_Pt200 

Pt200 based sensor.

enum_Pt500 

Pt500 based sensor.

enum_Pt1000 

Pt1000 based sensor.

enum_Pt3000 

Pt3000 based sensor.

enum_Pt6000 

Pt6000 based sensor.

enum_Pt9000 

Pt9000 based sensor.

Member Function Documentation

◆ Get_Base_Resistance()

BOOL TPRT::Get_Base_Resistance ( F32 f32_Resistance,
TPRT_Type  enum_PRT_Type 
)
private

The function returns base electrical resistance in ohms.


Note
None
Parameters
[out]*f32_ResistanceResistance at given temperature.
[in]enum_PRT_TypeType of the platinum resistance termomenter.
Returns
Converstion status code
Return values
trueConverstion successed
falseConversuin error
Override
Not allowed
Attention
None
dot_TPRT__Get_Base_Resistance.png

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().

Here is the caller graph for this function:

◆ Get_Scala_Coefficients()

BOOL TPRT::Get_Scala_Coefficients ( F32 f32_A,
F32 f32_B,
F32 f32_C,
TPRT_Scala  enum_PRT_Scala 
)
private

The function returns base electrical resistance in ohms.


Note
None
Parameters
[out]*f32_AScala coefficient A.
[out]*f32_BScala coefficient B.
[out]*f32_CScala coefficient C.
[in]enum_PRT_ScalaTemperature scala
Returns
Converstion status code
Return values
trueConverstion successed
falseConversuin error
Override
Not allowed
Attention
None
dot_TPRT__Get_Scala_Coefficients.png

References enum_IPTS_68, and enum_ITS_90.

Referenced by Resistance_To_Temperature(), and Temperature_To_Resistance().

Here is the caller graph for this function:

◆ Resistance_To_Temperature()

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.


Note
Only ITS-90 scala implemented
Parameters
[out]*f32_TemperatureTemperature in degree celsius.
[in]f32_ResistanceResistance at given temperature.
[in]enum_PRT_ScalaTemperature scala
[in]enum_PRT_TypeType of the platinum resistance termomenter.
Returns
Converstion status code
Return values
trueConverstion successed
falseConversuin error
Override
Not allowed
Attention
None
dot_TPRT__Resistance_To_Temperature.png

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Temperature_To_Resistance()

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.


Note
Only ITS-90 scala implemented
Parameters
[out]*f32_ResistanceResistance at given temperature.
[in]f32_TemperatureTemperature in degree celsius.
[in]enum_PRT_ScalaTemperature scala
[in]enum_PRT_TypeType of the platinum resistance termomenter.
Returns
Converstion status code
Return values
trueConverstion successed
falseConverstion error
Override
Not allowed
Attention
None
dot_TPRT__Temperature_To_Resistance.png

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().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: