ConOpSys V2970
P004.07
ANVILEX control operating system
|
Function block class declaration. More...
#include <P019_11_KG3_FC.h>
Classes | |
union | TControl_Register |
Control register structure. More... | |
struct | TP019_11_KG3_FC_Registers |
Register structure for I/O access. More... | |
struct | TStatus_Register |
Status register bit mapping structure. More... | |
Public Member Functions | |
TP019_11_KG3_FC () | |
Function block class constructor method. More... | |
virtual | ~TP019_11_KG3_FC () |
Function block class destructor method. More... | |
VOID | Map (TP019_11_KG3_FC_Registers *struct_Registers_Base_Address) |
Hardware mapping method. More... | |
virtual VOID | Init () |
Function block initialisation method. More... | |
virtual VOID | Execute () |
Function block execution method. More... | |
virtual VOID | Send_Information (TProtocol_Base *object_Protocol) |
Send information about flow converter board driver over communication link protocol. 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) |
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 |
Function block class declaration.
TP019_11_KG3_FC::TP019_11_KG3_FC | ( | ) |
Function block class constructor method.
References object_bool_Enable, object_f32_Input_Current, object_f32_Input_Current_Gain, object_f32_Input_Current_Offset, object_f32_Input_Voltage, object_f32_Input_Voltage_Gain, object_f32_Input_Voltage_Offset, object_f32_Negative_Magnitude, object_f32_Output_Current, object_f32_Output_Current_Gain, object_f32_Output_Current_Offset, object_f32_Output_Impedance, object_f32_Output_Voltage, object_f32_Output_Voltage_Gain, object_f32_Output_Voltage_Offset, object_f32_Positive_Magnitude, object_f32_Temperature, object_f32_Temperature_Gain, object_f32_Temperature_Offset, object_i16_Input_Current_Raw_Data, object_i16_Input_Voltage_Raw_Data, object_i16_Output_Current_Raw_Data, object_i16_Output_Voltage_Raw_Data, object_u16_Dead_Time, object_u16_Temperature_Raw_Data, TBlock_Input_Connector::Set_Type_BOOL(), TBlock_Connector::Set_Type_F32(), TBlock_Input_Connector::Set_Type_F32(), TBlock_Connector::Set_Type_I16(), TBlock_Connector::Set_Type_U16(), and TBlock_Input_Connector::Set_Type_U16().
|
virtual |
Function block class destructor method.
|
virtual |
Function block execution method.
Implements TFunction_Block_Base.
References TP019_11_KG3_FC::TControl_Register::bit1_Inverter_Output_Enable, TP019_11_KG3_FC::TControl_Register::bit1_Rectifier_Output_Enable, bool_First_Loop, TNTC::enum_10000_Ohm, TNTC::enum_B25_100_3988, f32_Input_Current, f32_Input_Voltage, f32_Output_Current, f32_Output_Current_1, f32_Output_Current_Negative_Reference, f32_Output_Current_Positive_Reference, f32_Output_Voltage, f32_Output_Voltage_1, f32_Temperature, TConOpSys_Variant_Data::f32_Value, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::i16_Input_Current, i16_Input_Current, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::i16_Input_Current_Offset, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::i16_Input_Voltage, i16_Input_Voltage, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::i16_Input_Voltage_Offset, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::i16_Output_Current, i16_Output_Current, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::i16_Output_Current_Offset, i16_Output_Current_Offset_Raw, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::i16_Output_Voltage, i16_Output_Voltage, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::i16_Output_Voltage_Offset, TConOpSys_Variant_Data::i16_Value, Limit_Low_High_F32(), object_bool_Enable, object_f32_Input_Current, object_f32_Input_Current_Gain, object_f32_Input_Current_Offset, object_f32_Input_Voltage, object_f32_Input_Voltage_Gain, object_f32_Input_Voltage_Offset, object_f32_Negative_Magnitude, object_f32_Output_Current, object_f32_Output_Current_Gain, object_f32_Output_Current_Offset, object_f32_Output_Impedance, object_f32_Output_Voltage, object_f32_Output_Voltage_Gain, object_f32_Output_Voltage_Offset, object_f32_Positive_Magnitude, object_f32_Temperature, object_f32_Temperature_Gain, object_f32_Temperature_Offset, object_i16_Input_Current_Raw_Data, object_i16_Input_Voltage_Raw_Data, object_i16_Output_Current_Raw_Data, object_i16_Output_Voltage_Raw_Data, object_NTC, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_Temperature_Raw_Data, TConOpSys_Variant_Data::pbool_Value, TConOpSys_Variant_Data::pf32_Value, TConOpSys_Variant::struct_Data, struct_Registers, TNTC::Time_To_Temperature(), true, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Control_Register, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Inverter_Active_time, u16_Inverter_Active_Time, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Inverter_Period_Time, u16_Output_Current_Negative_Reference, u16_Output_Current_Positive_Reference, TP019_11_KG3_FC::TControl_Register::u16_Raw_Data, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Rectifier_Offset_Time, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Rectifier_Output_Current_Negative_Reference, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Rectifier_Output_Current_Positive_Reference, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Rectifier_Trail_Time, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Temperature, and TConOpSys_Variant_Data::u16_Value.
|
virtual |
Function block initialisation method.
References TBlock_Input_Connector::Append_Connected_Status(), object_bool_Enable, object_f32_Input_Current_Gain, object_f32_Input_Current_Offset, object_f32_Input_Voltage_Gain, object_f32_Input_Voltage_Offset, object_f32_Negative_Magnitude, object_f32_Output_Current_Gain, object_f32_Output_Current_Offset, object_f32_Output_Voltage_Gain, object_f32_Output_Voltage_Offset, object_f32_Positive_Magnitude, object_f32_Temperature_Gain, object_f32_Temperature_Offset, object_u16_Dead_Time, and TFunction_Block_Base::Update_Connected_Status().
VOID TP019_11_KG3_FC::Map | ( | TP019_11_KG3_FC_Registers * | struct_Registers_Base_Address | ) |
Hardware mapping method.
[in] | *struct_Registers_Base_Address | - Base adress to register structure mapping |
References struct_Registers.
|
virtual |
Send information about flow converter board driver over communication link protocol.
[in] | *object_Protocol | - Pointer to the communication link protocol |
Reimplemented from TFunction_Block_Base.
References f32_Delta_Voltage, f32_Inverter_Active_Time, f32_Inverter_Maximal_Active_Time, f32_Inverter_Minimal_Active_Time, f32_Output_Current_Negative_Reference, f32_Output_Current_Positive_Reference, i16_Output_Current_Offset_Raw, object_bool_Enable, object_f32_Input_Current, object_f32_Input_Current_Gain, object_f32_Input_Current_Offset, object_f32_Input_Voltage, object_f32_Input_Voltage_Gain, object_f32_Input_Voltage_Offset, object_f32_Negative_Magnitude, object_f32_Output_Current, object_f32_Output_Current_Gain, object_f32_Output_Current_Offset, object_f32_Output_Impedance, object_f32_Output_Voltage, object_f32_Output_Voltage_Gain, object_f32_Output_Voltage_Offset, object_f32_Positive_Magnitude, object_f32_Temperature, object_f32_Temperature_Gain, object_f32_Temperature_Offset, object_i16_Input_Current_Raw_Data, object_i16_Input_Voltage_Raw_Data, object_i16_Output_Current_Raw_Data, object_i16_Output_Voltage_Raw_Data, object_u16_Dead_Time, object_u16_Temperature_Raw_Data, struct_Registers, TProtocol_Base::Transmit_Connector_Value_As_Boolean(), TProtocol_Base::Transmit_Connector_Value_As_Decimal(), TProtocol_Base::Transmit_Connector_Value_As_Hex(), TProtocol_Base::Transmit_F32_Value_As_Decimal(), TProtocol_Base::Transmit_I16_Value_As_Decimal(), TProtocol_Base::Transmit_I16_Value_As_Hex(), TProtocol_Base::Transmit_String(), TProtocol_Base::Transmit_U16_Value_As_Hex(), TProtocol_Base::Transmit_U32_Value_As_Hex(), u16_Inverter_Active_Time, u16_Output_Current_Negative_Reference, u16_Output_Current_Positive_Reference, TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Unit_ID_H, and TP019_11_KG3_FC::TP019_11_KG3_FC_Registers::u16_Unit_ID_L.
Referenced by Send_Information().
Referenced by Send_Information().
Referenced by Send_Information().
Referenced by Send_Information().
Referenced by Execute(), and Send_Information().
Referenced by Execute(), and Send_Information().
Temperature value.
Referenced by Execute().
Referenced by Execute(), and Send_Information().
TBlock_Input_Connector TP019_11_KG3_FC::object_bool_Enable |
Enable flow converter.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_f32_Input_Current |
Actual input current in amper.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Input_Current_Gain |
Input current gain calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Input_Current_Offset |
Input current offset calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_f32_Input_Voltage |
Actual input voltage in volt.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Input_Voltage_Gain |
Input voltage gain calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Input_Voltage_Offset |
Input voltage offset calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Negative_Magnitude |
Output current negative magnitude setpoint.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_f32_Output_Current |
Actual output current in amper.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Output_Current_Gain |
Output current gain calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Output_Current_Offset |
Output current offset calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_f32_Output_Impedance |
Actual output impedance.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_f32_Output_Voltage |
Actual output voltage in volt.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Output_Voltage_Gain |
Output voltage gain calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Output_Voltage_Offset |
Output voltage offset calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Positive_Magnitude |
Output current positive magnitude setpoint.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_f32_Temperature |
Actual flow converter temperature in gradus celsius.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Temperature_Gain |
Temperature gain calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_f32_Temperature_Offset |
Temperature offset calibration.
Referenced by Execute(), Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_i16_Input_Current_Raw_Data |
Actual input current raw data.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_i16_Input_Voltage_Raw_Data |
Actual input voltage raw data.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_i16_Output_Current_Raw_Data |
Actual output current raw data.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_i16_Output_Voltage_Raw_Data |
Actual output voltage raw data.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Input_Connector TP019_11_KG3_FC::object_u16_Dead_Time |
Flow converter dead time input.
Referenced by Init(), Send_Information(), and TP019_11_KG3_FC().
TBlock_Output_Connector TP019_11_KG3_FC::object_u16_Temperature_Raw_Data |
Actual flow converter temperature raw data.
Referenced by Execute(), Send_Information(), and TP019_11_KG3_FC().
|
private |
FPGA mapped registers.
Referenced by Execute(), Map(), and Send_Information().
Referenced by Execute(), and Send_Information().
Referenced by Execute(), and Send_Information().
Referenced by Execute(), and Send_Information().