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

KG3 RTD P017.41 board class. More...

#include <P017_41_KG3_RTD.h>

Inheritance diagram for TP017_41_KG3_RTD:
Inheritance graph
Collaboration diagram for TP017_41_KG3_RTD:
Collaboration graph

Classes

struct  TP017_41_KG3_RTD_Registers
 

Public Member Functions

 TP017_41_KG3_RTD ()
 Class constructor method. More...
 
virtual ~TP017_41_KG3_RTD ()
 Class destructor method. More...
 
VOID Map (TP017_41_KG3_RTD_Registers *struct_Registers_Base_Address)
 
virtual VOID Init ()
 Functional block initialisation method. More...
 
virtual VOID Execute ()
 Functional block execution method. More...
 
virtual VOID Send_Information (TProtocol_Base *object_Protocol)
 Send information method. More...
 
- Public Member Functions inherited from TFunction_Block_Base
 TFunction_Block_Base (U32 u32_Function_ID)
 Class constructor method. More...
 
virtual ~TFunction_Block_Base ()
 Class destructor method. More...
 
VOID Connect ()
 Function block connect method. More...
 
VOID Init ()
 Function block initialisation method. More...
 
virtual VOID Done ()
 Function block finalisation method. More...
 
virtual VOID Update ()
 Update parameters at runtime method. More...
 
virtual VOID Trip ()
 Function block trip method. More...
 
U32 Get_Function_Block_ID ()
 Get function block dentifier. More...
 
VOID Set_Initialisation_Error ()
 Set function block initialisation error. More...
 
BOOL Is_Initialisation_Error ()
 Return function block initialisation error status. More...
 
VOID Append_Connected_Status (BOOL *bool_Connected_Status)
 Append interconnection status of the function block. More...
 
BOOL Is_Connected ()
 Returns status of the function block interconnection. More...
 
BOOL Is_Initialised ()
 Returns status of the function block interconnection. More...
 
BOOL Get_Input_Connector (U32 u32_Connector_Index, TBlock_Input_Connector **object_Input_Connector)
 Get pointer to the input connector. More...
 
BOOL Get_Output_Connector (U32 u32_Connector_Index, TBlock_Output_Connector **object_Output_Connector)
 Get pointer to the output connector. More...
 
TFunction_Block_Status Get_Status ()
 Get function block status method. More...
 
__fastcall TBlock_Template (TComponent *Owner, TList *Storage)
 
__fastcall ~TBlock_Template ()
 
void __fastcall CreateBlock ()
 
virtual void __fastcall Paint ()
 
virtual bool __fastcall PropertiesDialog ()
 
virtual void __fastcall SaveToProjectFile (TMemIniFile *ProjectFile, AnsiString ParentSection)
 
virtual void __fastcall LoadFromProjectFile (TMemIniFile *ProjectFile, AnsiString ParentSection)
 
virtual void __fastcall SwapBlocks ()
 
virtual void __fastcall RepaintAllBlocks ()
 
VOID __fastcall Load_Block_From_List (TStringList *object_File_Source_CPP, TStringList *object_File_Source_H)
 
VOID __fastcall Get_SQL_Queries (TStringList *object_SQL_Queries)
 

Public Attributes

TBlock_Input_Connector object_f32_Temperature_Gain_Channel_1
 
TBlock_Input_Connector object_f32_Temperature_Gain_Channel_2
 
TBlock_Input_Connector object_f32_Temperature_Gain_Channel_3
 
TBlock_Input_Connector object_f32_Temperature_Gain_Channel_4
 
TBlock_Input_Connector object_f32_Temperature_Offset_Channel_1
 
TBlock_Input_Connector object_f32_Temperature_Offset_Channel_2
 
TBlock_Input_Connector object_f32_Temperature_Offset_Channel_3
 
TBlock_Input_Connector object_f32_Temperature_Offset_Channel_4
 
TBlock_Output_Connector object_u16_RTD_Raw_Data_Channel_1
 
TBlock_Output_Connector object_u16_RTD_Raw_Data_Channel_2
 
TBlock_Output_Connector object_u16_RTD_Raw_Data_Channel_3
 
TBlock_Output_Connector object_u16_RTD_Raw_Data_Channel_4
 
TBlock_Output_Connector object_f32_Temperature_Channel_1
 
TBlock_Output_Connector object_f32_Temperature_Channel_2
 
TBlock_Output_Connector object_f32_Temperature_Channel_3
 
TBlock_Output_Connector object_f32_Temperature_Channel_4
 
union {
   U32   u32_Status
 
   struct {
      U32   bool_FPGA_Timeout_Fault_Channel_1:1
 
      U32   bool_RTD_Hardware_Fault_Channel_1:1
 
      U32   bool_FPGA_Timeout_Fault_Channel_2:1
 
      U32   bool_RTD_Hardware_Fault_Channel_2:1
 
      U32   bool_FPGA_Timeout_Fault_Channel_3:1
 
      U32   bool_RTD_Hardware_Fault_Channel_3:1
 
      U32   bool_FPGA_Timeout_Fault_Channel_4:1
 
      U32   bool_RTD_Hardware_Fault_Channel_4:1
 
      U32   __pad0__:24
 
   }   u32_Status_Bits
 
}; 
 
- Public Attributes inherited from TFunction_Block_Base
TListStorageOfBlocks = (TList*)NULL
 
int BlockID
 
int InputConnectorsCount
 
int OutputConnectorsCount
 
TListStorageOfInputConnectors
 
TListStorageOfOutputConnectors
 
TCore_Template * Core
 
TFooter_Template * Footer
 
TParameters_Template * Parameters
 
bool AutoSize
 
Graphics::TBitmap * Icon
 
__property TNotifyEvent OnInputConnectorSelected = { read = FOnInputConnectorSelected, write = FOnInputConnectorSelected }
 
__property TNotifyEvent OnOutputConnectorSelected = { read = FOnOutputConnectorSelected, write = FOnOutputConnectorSelected }
 
__property TNotifyEvent OnCoreSelected = { read = FOnCoreSelected, write = FOnCoreSelected }
 
__property TNotifyEvent OnModified = { read = FModified, write = FModified }
 
__property TNotifyEvent OnNeedToUpdate = { read = FNeedToUpdate, write = FNeedToUpdate }
 
__property TResolveConnectorAddressEvent OnResolveConnectorAddress = { read = FOnResolveConnectorAddress, write = FOnResolveConnectorAddress }
 
__property AnsiString Label = { read = FLabel, write = FLabel }
 
__property BOOL Border = { read = FBorder, write = FBorder, default = true }
 
__property BOOL Selected = { read = FSelected, write = SetSelectedFlag, default = false }
 
__property BOOL Flipped = { read = FFlipped, write = SetFlippedFlag, default = false }
 

Private Member Functions

BOOL RTD_Wait ()
 Wait for RTD ready. More...
 
BOOL RTD_Read (U16 u16_Command, U16 *u16_Data)
 Read register value. More...
 
BOOL RTD_Write (U16 u16_Command, U16 u16_Data)
 Write register value. More...
 
BOOL Configure_Channel (U16 u16_Command, U16 u16_Data)
 RTD chip configuration method. More...
 
BOOL Get_Temperature_Channel_1 ()
 
BOOL Get_Temperature_Channel_2 ()
 
BOOL Get_Temperature_Channel_3 ()
 
BOOL Get_Temperature_Channel_4 ()
 
F32 Calculate_Resistance (U16 u16_ADC_Value)
 Calculate resistance from ADC value. More...
 

Private Attributes

volatile TP017_41_KG3_RTD_Registersstruct_Registers
 FPGA memory mapped registers. More...
 
U32 u32_RTD_Timeout_Error_Count
 
U32 u32_RTD_Temperature_Read_Count_1
 
U32 u32_RTD_Temperature_Read_Count_2
 
U32 u32_RTD_Temperature_Read_Count_3
 
U32 u32_RTD_Temperature_Read_Count_4
 
U32 u32_RTD_Temperature_Read_Success_Count_1
 
U32 u32_RTD_Temperature_Read_Success_Count_2
 
U32 u32_RTD_Temperature_Read_Success_Count_3
 
U32 u32_RTD_Temperature_Read_Success_Count_4
 
U32 u32_RTD_Hardware_Error_Count_1
 
U32 u32_RTD_Hardware_Error_Count_2
 
U32 u32_RTD_Hardware_Error_Count_3
 
U32 u32_RTD_Hardware_Error_Count_4
 
U16 u16_RTD_Status_1
 
U16 u16_RTD_Status_2
 
U16 u16_RTD_Status_3
 
U16 u16_RTD_Status_4
 
F32 f32_RTD_Temperature_1
 
F32 f32_RTD_Temperature_2
 
F32 f32_RTD_Temperature_3
 
F32 f32_RTD_Temperature_4
 
volatile U32 u32_Dummy_Counter
 

Additional Inherited Members

- Protected Member Functions inherited from TFunction_Block_Base
VOID Update_Connected_Status (BOOL bool_New_Connected_Status)
 Updates function block interconnection status. More...
 
VOID Create_Event (U32 u32_Event_ID)
 Create event method. More...
 
void __fastcall SetSelectedFlag (bool Value)
 
void __fastcall SetFlippedFlag (bool Value)
 
virtual void __fastcall SetNamesOfConnectors ()
 
void __fastcall CorePaint (TObject *Sender)
 
- Protected Attributes inherited from TFunction_Block_Base
TNotifyEvent FModified
 
TNotifyEvent FNeedToUpdate
 
TNotifyEvent FOnInputConnectorSelected
 
TNotifyEvent FOnOutputConnectorSelected
 
TNotifyEvent FOnCoreSelected
 
TResolveConnectorAddressEvent FOnResolveConnectorAddress
 
AnsiString FLabel = ""
 Function block label of the core string. More...
 
BOOL FBorder = (BOOL)true
 Function block border status. More...
 
BOOL FSelected = (BOOL)false
 Function block seleted status. More...
 
BOOL FFlipped = (BOOL)false
 Function block flipped status. More...
 
BOOL LockedMode = (BOOL)false
 
BOOL DobbleClicked = (BOOL)false
 
U32 u32_Locked_Position_X = (U32)0
 
U32 u32_Locked_Position_Y = (U32)0
 

Detailed Description

KG3 RTD P017.41 board class.

Constructor & Destructor Documentation

◆ TP017_41_KG3_RTD()

TP017_41_KG3_RTD::TP017_41_KG3_RTD ( )

◆ ~TP017_41_KG3_RTD()

TP017_41_KG3_RTD::~TP017_41_KG3_RTD ( )
virtual

Class destructor method.

Member Function Documentation

◆ Calculate_Resistance()

F32 TP017_41_KG3_RTD::Calculate_Resistance ( U16  u16_ADC_Value)
private

Calculate resistance from ADC value.

Referenced by Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().

Here is the caller graph for this function:

◆ Configure_Channel()

BOOL TP017_41_KG3_RTD::Configure_Channel ( U16  u16_Command,
U16  u16_Data 
)
private

RTD chip configuration method.

References RTD_Wait(), RTD_Write(), and u32_RTD_Timeout_Error_Count.

Referenced by Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), Get_Temperature_Channel_4(), and Init().

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

◆ Execute()

VOID TP017_41_KG3_RTD::Execute ( )
virtual

Functional block execution method.

Implements TFunction_Block_Base.

References Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().

Here is the call graph for this function:

◆ Get_Temperature_Channel_1()

BOOL TP017_41_KG3_RTD::Get_Temperature_Channel_1 ( )
private

◆ Get_Temperature_Channel_2()

BOOL TP017_41_KG3_RTD::Get_Temperature_Channel_2 ( )
private

◆ Get_Temperature_Channel_3()

BOOL TP017_41_KG3_RTD::Get_Temperature_Channel_3 ( )
private

◆ Get_Temperature_Channel_4()

BOOL TP017_41_KG3_RTD::Get_Temperature_Channel_4 ( )
private

◆ Init()

VOID TP017_41_KG3_RTD::Init ( )
virtual

◆ Map()

VOID TP017_41_KG3_RTD::Map ( TP017_41_KG3_RTD_Registers struct_Registers_Base_Address)

References struct_Registers.

◆ RTD_Read()

BOOL TP017_41_KG3_RTD::RTD_Read ( U16  u16_Command,
U16 u16_Data 
)
private

◆ RTD_Wait()

BOOL TP017_41_KG3_RTD::RTD_Wait ( )
private

◆ RTD_Write()

BOOL TP017_41_KG3_RTD::RTD_Write ( U16  u16_Command,
U16  u16_Data 
)
private

Write register value.

References RTD_Wait(), struct_Registers, TP017_41_KG3_RTD::TP017_41_KG3_RTD_Registers::u16_RTD_Control, TP017_41_KG3_RTD::TP017_41_KG3_RTD_Registers::u16_RTD_Data, and u32_RTD_Timeout_Error_Count.

Referenced by Configure_Channel().

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

◆ Send_Information()

VOID TP017_41_KG3_RTD::Send_Information ( TProtocol_Base object_Protocol)
virtual

Member Data Documentation

◆ 

union { ... }

◆ __pad0__

U32 TP017_41_KG3_RTD::__pad0__

◆ bool_FPGA_Timeout_Fault_Channel_1

U32 TP017_41_KG3_RTD::bool_FPGA_Timeout_Fault_Channel_1

◆ bool_FPGA_Timeout_Fault_Channel_2

U32 TP017_41_KG3_RTD::bool_FPGA_Timeout_Fault_Channel_2

◆ bool_FPGA_Timeout_Fault_Channel_3

U32 TP017_41_KG3_RTD::bool_FPGA_Timeout_Fault_Channel_3

◆ bool_FPGA_Timeout_Fault_Channel_4

U32 TP017_41_KG3_RTD::bool_FPGA_Timeout_Fault_Channel_4

◆ bool_RTD_Hardware_Fault_Channel_1

U32 TP017_41_KG3_RTD::bool_RTD_Hardware_Fault_Channel_1

◆ bool_RTD_Hardware_Fault_Channel_2

U32 TP017_41_KG3_RTD::bool_RTD_Hardware_Fault_Channel_2

◆ bool_RTD_Hardware_Fault_Channel_3

U32 TP017_41_KG3_RTD::bool_RTD_Hardware_Fault_Channel_3

◆ bool_RTD_Hardware_Fault_Channel_4

U32 TP017_41_KG3_RTD::bool_RTD_Hardware_Fault_Channel_4

◆ f32_RTD_Temperature_1

F32 TP017_41_KG3_RTD::f32_RTD_Temperature_1
private

◆ f32_RTD_Temperature_2

F32 TP017_41_KG3_RTD::f32_RTD_Temperature_2
private

◆ f32_RTD_Temperature_3

F32 TP017_41_KG3_RTD::f32_RTD_Temperature_3
private

◆ f32_RTD_Temperature_4

F32 TP017_41_KG3_RTD::f32_RTD_Temperature_4
private

◆ object_f32_Temperature_Channel_1

TBlock_Output_Connector TP017_41_KG3_RTD::object_f32_Temperature_Channel_1

◆ object_f32_Temperature_Channel_2

TBlock_Output_Connector TP017_41_KG3_RTD::object_f32_Temperature_Channel_2

◆ object_f32_Temperature_Channel_3

TBlock_Output_Connector TP017_41_KG3_RTD::object_f32_Temperature_Channel_3

◆ object_f32_Temperature_Channel_4

TBlock_Output_Connector TP017_41_KG3_RTD::object_f32_Temperature_Channel_4

◆ object_f32_Temperature_Gain_Channel_1

TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Gain_Channel_1

◆ object_f32_Temperature_Gain_Channel_2

TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Gain_Channel_2

◆ object_f32_Temperature_Gain_Channel_3

TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Gain_Channel_3

◆ object_f32_Temperature_Gain_Channel_4

TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Gain_Channel_4

◆ object_f32_Temperature_Offset_Channel_1

TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Offset_Channel_1

◆ object_f32_Temperature_Offset_Channel_2

TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Offset_Channel_2

◆ object_f32_Temperature_Offset_Channel_3

TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Offset_Channel_3

◆ object_f32_Temperature_Offset_Channel_4

TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Offset_Channel_4

◆ object_u16_RTD_Raw_Data_Channel_1

TBlock_Output_Connector TP017_41_KG3_RTD::object_u16_RTD_Raw_Data_Channel_1

◆ object_u16_RTD_Raw_Data_Channel_2

TBlock_Output_Connector TP017_41_KG3_RTD::object_u16_RTD_Raw_Data_Channel_2

◆ object_u16_RTD_Raw_Data_Channel_3

TBlock_Output_Connector TP017_41_KG3_RTD::object_u16_RTD_Raw_Data_Channel_3

◆ object_u16_RTD_Raw_Data_Channel_4

TBlock_Output_Connector TP017_41_KG3_RTD::object_u16_RTD_Raw_Data_Channel_4

◆ struct_Registers

volatile TP017_41_KG3_RTD_Registers* TP017_41_KG3_RTD::struct_Registers
private

FPGA memory mapped registers.

Referenced by Map(), RTD_Read(), RTD_Wait(), RTD_Write(), and Send_Information().

◆ u16_RTD_Status_1

U16 TP017_41_KG3_RTD::u16_RTD_Status_1
private

◆ u16_RTD_Status_2

U16 TP017_41_KG3_RTD::u16_RTD_Status_2
private

◆ u16_RTD_Status_3

U16 TP017_41_KG3_RTD::u16_RTD_Status_3
private

◆ u16_RTD_Status_4

U16 TP017_41_KG3_RTD::u16_RTD_Status_4
private

◆ u32_Dummy_Counter

volatile U32 TP017_41_KG3_RTD::u32_Dummy_Counter
private

Referenced by RTD_Wait().

◆ u32_RTD_Hardware_Error_Count_1

U32 TP017_41_KG3_RTD::u32_RTD_Hardware_Error_Count_1
private

◆ u32_RTD_Hardware_Error_Count_2

U32 TP017_41_KG3_RTD::u32_RTD_Hardware_Error_Count_2
private

◆ u32_RTD_Hardware_Error_Count_3

U32 TP017_41_KG3_RTD::u32_RTD_Hardware_Error_Count_3
private

◆ u32_RTD_Hardware_Error_Count_4

U32 TP017_41_KG3_RTD::u32_RTD_Hardware_Error_Count_4
private

◆ u32_RTD_Temperature_Read_Count_1

U32 TP017_41_KG3_RTD::u32_RTD_Temperature_Read_Count_1
private

◆ u32_RTD_Temperature_Read_Count_2

U32 TP017_41_KG3_RTD::u32_RTD_Temperature_Read_Count_2
private

◆ u32_RTD_Temperature_Read_Count_3

U32 TP017_41_KG3_RTD::u32_RTD_Temperature_Read_Count_3
private

◆ u32_RTD_Temperature_Read_Count_4

U32 TP017_41_KG3_RTD::u32_RTD_Temperature_Read_Count_4
private

◆ u32_RTD_Temperature_Read_Success_Count_1

U32 TP017_41_KG3_RTD::u32_RTD_Temperature_Read_Success_Count_1
private

◆ u32_RTD_Temperature_Read_Success_Count_2

U32 TP017_41_KG3_RTD::u32_RTD_Temperature_Read_Success_Count_2
private

◆ u32_RTD_Temperature_Read_Success_Count_3

U32 TP017_41_KG3_RTD::u32_RTD_Temperature_Read_Success_Count_3
private

◆ u32_RTD_Temperature_Read_Success_Count_4

U32 TP017_41_KG3_RTD::u32_RTD_Temperature_Read_Success_Count_4
private

◆ u32_RTD_Timeout_Error_Count

U32 TP017_41_KG3_RTD::u32_RTD_Timeout_Error_Count
private

◆ u32_Status

U32 TP017_41_KG3_RTD::u32_Status

◆ 

struct { ... } TP017_41_KG3_RTD::u32_Status_Bits

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