|
ConOpSys V2970
P004.07
ANVILEX control operating system
|
KG3 RTD P017.41 board class. More...
#include <P017_41_KG3_RTD.h>


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) |
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... | |
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 |
KG3 RTD P017.41 board class.
| TP017_41_KG3_RTD::TP017_41_KG3_RTD | ( | ) |
Class constructor method.
References f32_RTD_Temperature_1, f32_RTD_Temperature_2, f32_RTD_Temperature_3, f32_RTD_Temperature_4, object_f32_Temperature_Channel_1, object_f32_Temperature_Channel_2, object_f32_Temperature_Channel_3, object_f32_Temperature_Channel_4, object_f32_Temperature_Gain_Channel_1, object_f32_Temperature_Gain_Channel_2, object_f32_Temperature_Gain_Channel_3, object_f32_Temperature_Gain_Channel_4, object_f32_Temperature_Offset_Channel_1, object_f32_Temperature_Offset_Channel_2, object_f32_Temperature_Offset_Channel_3, object_f32_Temperature_Offset_Channel_4, object_u16_RTD_Raw_Data_Channel_1, object_u16_RTD_Raw_Data_Channel_2, object_u16_RTD_Raw_Data_Channel_3, object_u16_RTD_Raw_Data_Channel_4, TBlock_Connector::Set_Type_F32(), TBlock_Input_Connector::Set_Type_F32(), TBlock_Connector::Set_Type_U16(), u16_RTD_Status_1, u16_RTD_Status_2, u16_RTD_Status_3, u16_RTD_Status_4, u32_RTD_Hardware_Error_Count_1, u32_RTD_Hardware_Error_Count_2, u32_RTD_Hardware_Error_Count_3, u32_RTD_Hardware_Error_Count_4, u32_RTD_Temperature_Read_Count_1, u32_RTD_Temperature_Read_Count_2, u32_RTD_Temperature_Read_Count_3, u32_RTD_Temperature_Read_Count_4, u32_RTD_Temperature_Read_Success_Count_1, u32_RTD_Temperature_Read_Success_Count_2, u32_RTD_Temperature_Read_Success_Count_3, u32_RTD_Temperature_Read_Success_Count_4, and u32_RTD_Timeout_Error_Count.

|
virtual |
Class destructor method.
Calculate resistance from ADC value.
Referenced by Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().

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


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

|
private |
References Calculate_Resistance(), Configure_Channel(), TPRT::enum_ITS_90, TPRT::enum_Pt100, f32_RTD_Temperature_1, TConOpSys_Variant_Data::f32_Value, object_f32_Temperature_Channel_1, object_f32_Temperature_Gain_Channel_1, object_f32_Temperature_Offset_Channel_1, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_RTD_Raw_Data_Channel_1, TConOpSys_Variant_Data::pf32_Value, TPRT::Resistance_To_Temperature(), RTD_CHANNEL_1_FAULT_RESET_WORD, RTD_CHANNEL_1_READ_FAULT_STATUS, RTD_CHANNEL_1_READ_TEMPERATURE, RTD_CHANNEL_1_WRITE_CONFIGURATION, RTD_Read(), TConOpSys_Variant::struct_Data, u16_RTD_Status_1, TConOpSys_Variant_Data::u16_Value, u32_RTD_Hardware_Error_Count_1, u32_RTD_Temperature_Read_Count_1, u32_RTD_Temperature_Read_Success_Count_1, and u32_Status_Bits.
Referenced by Execute().


|
private |
References Calculate_Resistance(), Configure_Channel(), TPRT::enum_ITS_90, TPRT::enum_Pt100, f32_RTD_Temperature_2, TConOpSys_Variant_Data::f32_Value, object_f32_Temperature_Channel_2, object_f32_Temperature_Gain_Channel_2, object_f32_Temperature_Offset_Channel_2, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_RTD_Raw_Data_Channel_2, TConOpSys_Variant_Data::pf32_Value, TPRT::Resistance_To_Temperature(), RTD_CHANNEL_2_FAULT_RESET_WORD, RTD_CHANNEL_2_READ_FAULT_STATUS, RTD_CHANNEL_2_READ_TEMPERATURE, RTD_CHANNEL_2_WRITE_CONFIGURATION, RTD_Read(), TConOpSys_Variant::struct_Data, u16_RTD_Status_2, TConOpSys_Variant_Data::u16_Value, u32_RTD_Hardware_Error_Count_2, u32_RTD_Temperature_Read_Count_2, u32_RTD_Temperature_Read_Success_Count_2, and u32_Status_Bits.
Referenced by Execute().


|
private |
References Calculate_Resistance(), Configure_Channel(), TPRT::enum_ITS_90, TPRT::enum_Pt100, f32_RTD_Temperature_3, TConOpSys_Variant_Data::f32_Value, object_f32_Temperature_Channel_3, object_f32_Temperature_Gain_Channel_3, object_f32_Temperature_Offset_Channel_3, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_RTD_Raw_Data_Channel_3, TConOpSys_Variant_Data::pf32_Value, TPRT::Resistance_To_Temperature(), RTD_CHANNEL_2_FAULT_RESET_WORD, RTD_CHANNEL_3_READ_FAULT_STATUS, RTD_CHANNEL_3_READ_TEMPERATURE, RTD_CHANNEL_3_WRITE_CONFIGURATION, RTD_Read(), TConOpSys_Variant::struct_Data, u16_RTD_Status_3, TConOpSys_Variant_Data::u16_Value, u32_RTD_Hardware_Error_Count_3, u32_RTD_Temperature_Read_Count_3, u32_RTD_Temperature_Read_Success_Count_3, and u32_Status_Bits.
Referenced by Execute().


|
private |
References Calculate_Resistance(), Configure_Channel(), TPRT::enum_ITS_90, TPRT::enum_Pt100, f32_RTD_Temperature_4, TConOpSys_Variant_Data::f32_Value, object_f32_Temperature_Channel_4, object_f32_Temperature_Gain_Channel_4, object_f32_Temperature_Offset_Channel_4, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_RTD_Raw_Data_Channel_4, TConOpSys_Variant_Data::pf32_Value, TPRT::Resistance_To_Temperature(), RTD_CHANNEL_4_FAULT_RESET_WORD, RTD_CHANNEL_4_READ_FAULT_STATUS, RTD_CHANNEL_4_READ_TEMPERATURE, RTD_CHANNEL_4_WRITE_CONFIGURATION, RTD_Read(), TConOpSys_Variant::struct_Data, true, u16_RTD_Status_4, TConOpSys_Variant_Data::u16_Value, u32_RTD_Hardware_Error_Count_4, u32_RTD_Temperature_Read_Count_4, u32_RTD_Temperature_Read_Success_Count_4, and u32_Status_Bits.
Referenced by Execute().


|
virtual |
Functional block initialisation method.
References Configure_Channel(), RTD_CHANNEL_1_CONFIGURATION_WORD, RTD_CHANNEL_1_WRITE_CONFIGURATION, RTD_CHANNEL_2_CONFIGURATION_WORD, RTD_CHANNEL_2_WRITE_CONFIGURATION, RTD_CHANNEL_3_CONFIGURATION_WORD, RTD_CHANNEL_3_WRITE_CONFIGURATION, RTD_CHANNEL_4_CONFIGURATION_WORD, RTD_CHANNEL_4_WRITE_CONFIGURATION, and TFunction_Block_Base::Set_Initialisation_Error().

| VOID TP017_41_KG3_RTD::Map | ( | TP017_41_KG3_RTD_Registers * | struct_Registers_Base_Address | ) |
References struct_Registers.
Read 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 Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().


|
private |
Wait for RTD ready.
References THigh_Precision_Timer_Base::Delay(), TTIMER2_STM32F429::Get_Actual_Time_U64(), object_Delay_Timer, RTD_STATUS_REGISTER_READY_BIT, struct_Registers, TP017_41_KG3_RTD::TP017_41_KG3_RTD_Registers::u16_RTD_Status, and u32_Dummy_Counter.
Referenced by Configure_Channel(), RTD_Read(), and RTD_Write().


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


|
virtual |
Send information method.
Reimplemented from TFunction_Block_Base.
References f32_RTD_Temperature_1, f32_RTD_Temperature_2, f32_RTD_Temperature_3, f32_RTD_Temperature_4, struct_Registers, TProtocol_Base::Transmit_F32_Value_As_Decimal(), TProtocol_Base::Transmit_String(), TProtocol_Base::Transmit_U16_Value_As_Hex(), TProtocol_Base::Transmit_U32_Value_As_Decimal(), TProtocol_Base::Transmit_U32_Value_As_Hex(), u16_RTD_Status_1, u16_RTD_Status_2, u16_RTD_Status_3, u16_RTD_Status_4, TP017_41_KG3_RTD::TP017_41_KG3_RTD_Registers::u16_Unit_ID_H, TP017_41_KG3_RTD::TP017_41_KG3_RTD_Registers::u16_Unit_ID_L, u32_RTD_Hardware_Error_Count_1, u32_RTD_Hardware_Error_Count_2, u32_RTD_Hardware_Error_Count_3, u32_RTD_Hardware_Error_Count_4, u32_RTD_Temperature_Read_Count_1, u32_RTD_Temperature_Read_Count_2, u32_RTD_Temperature_Read_Count_3, u32_RTD_Temperature_Read_Count_4, u32_RTD_Temperature_Read_Success_Count_1, u32_RTD_Temperature_Read_Success_Count_2, u32_RTD_Temperature_Read_Success_Count_3, and u32_RTD_Temperature_Read_Success_Count_4.

| union { ... } |
| U32 TP017_41_KG3_RTD::__pad0__ |
| U32 TP017_41_KG3_RTD::bool_FPGA_Timeout_Fault_Channel_1 |
| U32 TP017_41_KG3_RTD::bool_FPGA_Timeout_Fault_Channel_2 |
| U32 TP017_41_KG3_RTD::bool_FPGA_Timeout_Fault_Channel_3 |
| U32 TP017_41_KG3_RTD::bool_FPGA_Timeout_Fault_Channel_4 |
| U32 TP017_41_KG3_RTD::bool_RTD_Hardware_Fault_Channel_1 |
| U32 TP017_41_KG3_RTD::bool_RTD_Hardware_Fault_Channel_2 |
| U32 TP017_41_KG3_RTD::bool_RTD_Hardware_Fault_Channel_3 |
| U32 TP017_41_KG3_RTD::bool_RTD_Hardware_Fault_Channel_4 |
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP017_41_KG3_RTD().
| TBlock_Output_Connector TP017_41_KG3_RTD::object_f32_Temperature_Channel_1 |
Referenced by Get_Temperature_Channel_1(), and TP017_41_KG3_RTD().
| TBlock_Output_Connector TP017_41_KG3_RTD::object_f32_Temperature_Channel_2 |
Referenced by Get_Temperature_Channel_2(), and TP017_41_KG3_RTD().
| TBlock_Output_Connector TP017_41_KG3_RTD::object_f32_Temperature_Channel_3 |
Referenced by Get_Temperature_Channel_3(), and TP017_41_KG3_RTD().
| TBlock_Output_Connector TP017_41_KG3_RTD::object_f32_Temperature_Channel_4 |
Referenced by Get_Temperature_Channel_4(), and TP017_41_KG3_RTD().
| TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Gain_Channel_1 |
Referenced by Get_Temperature_Channel_1(), and TP017_41_KG3_RTD().
| TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Gain_Channel_2 |
Referenced by Get_Temperature_Channel_2(), and TP017_41_KG3_RTD().
| TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Gain_Channel_3 |
Referenced by Get_Temperature_Channel_3(), and TP017_41_KG3_RTD().
| TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Gain_Channel_4 |
Referenced by Get_Temperature_Channel_4(), and TP017_41_KG3_RTD().
| TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Offset_Channel_1 |
Referenced by Get_Temperature_Channel_1(), and TP017_41_KG3_RTD().
| TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Offset_Channel_2 |
Referenced by Get_Temperature_Channel_2(), and TP017_41_KG3_RTD().
| TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Offset_Channel_3 |
Referenced by Get_Temperature_Channel_3(), and TP017_41_KG3_RTD().
| TBlock_Input_Connector TP017_41_KG3_RTD::object_f32_Temperature_Offset_Channel_4 |
Referenced by Get_Temperature_Channel_4(), and TP017_41_KG3_RTD().
| TBlock_Output_Connector TP017_41_KG3_RTD::object_u16_RTD_Raw_Data_Channel_1 |
Referenced by Get_Temperature_Channel_1(), and TP017_41_KG3_RTD().
| TBlock_Output_Connector TP017_41_KG3_RTD::object_u16_RTD_Raw_Data_Channel_2 |
Referenced by Get_Temperature_Channel_2(), and TP017_41_KG3_RTD().
| TBlock_Output_Connector TP017_41_KG3_RTD::object_u16_RTD_Raw_Data_Channel_3 |
Referenced by Get_Temperature_Channel_3(), and TP017_41_KG3_RTD().
| TBlock_Output_Connector TP017_41_KG3_RTD::object_u16_RTD_Raw_Data_Channel_4 |
Referenced by Get_Temperature_Channel_4(), and TP017_41_KG3_RTD().
|
private |
FPGA memory mapped registers.
Referenced by Map(), RTD_Read(), RTD_Wait(), RTD_Write(), and Send_Information().
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by RTD_Wait().
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP017_41_KG3_RTD().
|
private |
Referenced by Configure_Channel(), RTD_Read(), RTD_Write(), and TP017_41_KG3_RTD().
| U32 TP017_41_KG3_RTD::u32_Status |
| struct { ... } TP017_41_KG3_RTD::u32_Status_Bits |