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

Function block base class for device. More...

#include <Function_Block_Base.h>

Inheritance diagram for TFunction_Block_Base:
Inheritance graph
Collaboration diagram for TFunction_Block_Base:
Collaboration graph

Classes

union  TFunction_Block_Status
 Function block ststus. More...
 

Public Member Functions

 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 Execute ()=0
 Function block execute 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...
 
virtual VOID Send_Information (TProtocol_Base *object_Protocol)
 Send information about Function block over communication link protocol. 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

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 }
 

Protected Member Functions

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

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
 

Private Member Functions

void __fastcall NeedToUpdate (TObject *object_Sender)
 
void __fastcall Modified (TObject *object_Sender)
 
void __fastcall OnClick (TObject *object_Sender)
 
void __fastcall OnDblClick (TObject *object_Sender)
 
void __fastcall OnMouseDown (TObject *object_Sender, TMouseButton Button, TShiftState Shift, int int_X, int int_Y)
 
void __fastcall OnMouseUp (TObject *object_Sender, TMouseButton Button, TShiftState Shift, int int_X, int int_Y)
 
void __fastcall OnMouseMove (TObject *object_Sender, TShiftState Shift, int int_X, int int_Y)
 
void __fastcall OnInputConnectorClick (TObject *Sender)
 
void __fastcall OnOutputConnectorClick (TObject *Sender)
 
void __fastcall ResolveConnectorAddress (TObject *Sender, TConnectorAddress *Address)
 

Private Attributes

U32 u32_Function_Block_ID = (U32)0
 Function block function block identifier. More...
 
TFunction_Block_Status struct_Status = { .u32_Status_Raw_Data = (U32)0x00000000 }
 Function block status. More...
 
TStringList * object_Source_CPP = (TStringList*)NULL
 
TStringList * object_Source_H = (TStringList*)NULL
 
TUTF8String utf8_string_Name = ""
 
TUTF8String utf8_string_Description = ""
 
TObjectList * object_Parameter_Connector_List = (TObjectList*) = NULL
 
TObjectList * object_Input_Connector_List = (TObjectList*) = NULL
 
TObjectList * object_Output_Parameter_List = (TObjectList*) = NULL
 

Detailed Description

Function block base class for device.

Constructor & Destructor Documentation

◆ TFunction_Block_Base()

TFunction_Block_Base::TFunction_Block_Base ( U32  u32_Function_ID)

Class constructor method.


Note
None
Parameters
[in]u32_Function_ID- Function block ID
Override
Not allowed
Attention
Don't call this method directly.

References u32_Function_Block_ID.

◆ ~TFunction_Block_Base()

TFunction_Block_Base::~TFunction_Block_Base ( )
virtual

Class destructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.

◆ ~TBlock_Template()

__fastcall TFunction_Block_Base::~TBlock_Template ( )

Member Function Documentation

◆ Append_Connected_Status()

VOID TFunction_Block_Base::Append_Connected_Status ( BOOL bool_Connected_Status)

Append interconnection status of the function block.


Note
None
Parameters
[out]*bool_Connected_Status- Pointer to the function block interconnection status variable
Override
Not allowed
Attention
None

References TFunction_Block_Base::TFunction_Block_Status::bit1_Connected, and struct_Status.

◆ Connect()

VOID TFunction_Block_Base::Connect ( )

Function block connect method.


Note
This method set function block connected status
Parameters
None
Override
Not allowed
Attention
None

References TFunction_Block_Base::TFunction_Block_Status::bit1_Connected, and struct_Status.

◆ CorePaint()

void __fastcall TFunction_Block_Base::CorePaint ( TObject *  Sender)
protected

◆ Create_Event()

VOID TFunction_Block_Base::Create_Event ( U32  u32_Event_ID)
protected

Create event method.


Note
None
Parameters
[in]u32_Event_ID- Event identifier
Returns
None
Override
Not allowed
Attention
None
Todo:
ANVILEX KM ==> Deprecated, to remove

◆ CreateBlock()

void __fastcall TFunction_Block_Base::CreateBlock ( )

◆ Done()

VOID TFunction_Block_Base::Done ( )
virtual

Function block finalisation method.


Note
None
Parameters
None
Override
Optional
Attention
None

◆ Execute()

virtual VOID TFunction_Block_Base::Execute ( )
pure virtual

Function block execute method.


Note
Body of this method must be implemented according function block requerements
Parameters
None
Override
Requered
Attention
None

Implemented in TP021_23_KG3_EVIO_T1, TP021_12_KG3_Electrical_Model_Emulator, TP021_12_KG3_Cooling_System_Model_Emulator, TP020_36_V1_0_DCBIO, TP020_29_KG3_ENC_T2, TP020_29_KG3_ENC_T1, TP020_12_KG3_PTE_T1, TP019_11_KG3_MOD, TP019_11_KG3_FC, TP018_39_KG3_BLA_T1_E, TP018_39_KG3_BLA_T1, TP018_34_KG3_BLCP_T1, TKG3_RTD2_T1, TKG3_RTD2_T0, TP017_52_KG3_CI_T1, TP017_48_KG3_COM_PB, TP017_42_KG3_AI_T2, TP017_42_KG3_AI_T1, TP017_42_KG3_AI_T0, TP017_41_KG3_RTD, TP017_21_KG3_DIO_T2, TP017_21_KG3_DIO_T1, TP017_21_KG3_DIO_T0, TP017_20_KG3_FOTR_T2, TP017_20_KG3_FOTR_T1, TP017_20_KG3_FOTR_T0, TP017_05_KG3_AO_T4, TP017_05_KG3_AO_T3, TP017_05_KG3_AO_T2, TP017_05_KG3_AO_T1, TP015_09_V1_0_RTD, TP015_09_V1_0_Encoder_T2, TP015_09_V1_0_Encoder, TP015_09_V1_DIO_T2, TP015_09_V1_DIO_T1, TP015_09_V1_0_DC_Bus_T2, TP015_09_V1_0_DC_Bus, TP015_09_V1_Crowbar_T2, TP015_09_V1_0_Crowbar, TP015_09_FOTR_T2, TP015_09_FOTR_T1, TP015_09_FOTR_T0, TP011_35_V2_0_DC_Bus, TP005_06_V2_0_DIO, TP005_03_V2_0_AI_2V_E1, TP005_03_V2_0_AI_2V, TP005_03_V2_0_AI_T4, TP005_03_V2_0_AI_T3, TP005_03_V2_0_AI_T2, TP005_03_V2_0_AI, TKG3_PLC_T1, TKG3_PLC_T0, TKG3_CAB_EXT_T1, TKG3_LCSI_T1, TKG3_DCBIO_V2, TFunction_Block_Software_Trip_Controller_T3, TFunction_Block_Software_Trip_Controller_T2, TFunction_Block_Software_Trip_Controller_T1, TFunction_Block_Simple_Grid_Model_Test, TSensor_Link_Channel, TPWM_3P3L, TPWM_3P2L, TPWM_3P2L_T1, TPWM_1C3P2L, TPWM_1C2P2L, TFunction_Block_FPGA_Trip_Controller_T1, TFunction_Block_FPGA_Trip_Controller_T0, TFunction_Block_Digital_Output_T2, TFunction_Block_Digital_Input_T2, TFunction_Block_Window_Integrator, TFunction_Block_Type_Convertion_U32_F32, TFunction_Block_Type_Convertion_F32_I16, TFunction_Block_Type_Convertion_BOOL_F64, TFunction_Block_Type_Convertion_BOOL_F32, TFunction_Block_Transport_Delay_F32_256, TFunction_Block_Transport_Delay_F32_128, TFunction_Block_Toggle_Button_Controller, TFunction_Block_Temperature_Monitor, TFunction_Block_Switch_Button_Controller, TFunction_Block_Subtraction_F32_2C_2I, TFunction_Block_Subtraction_F32_1C_4I, TFunction_Block_Subtraction_F32_1C_3I, TFunction_Block_Subtraction_F32_1C_2I, TFunction_Block_SRF_PLL, TFunction_Block_Split_U32_BOOL, TFunction_Block_Split_U16_U8, TFunction_Block_Split_U16_U16, TFunction_Block_Split_U16_BOOL, TFunction_Block_Slew_Rate_Limit, TFunction_Block_Sinus_Signal_Generator, TFunction_Block_Sinus_Filter_Synchroniser, TFunction_Block_Sinus_Cosinus_F32_T4, TFunction_Block_Sinus_Cosinus_F32_T3, TFunction_Block_Sinus_Cosinus_F32_T2, TFunction_Block_Sinus_Cosinus_F32_T1, TFunction_Block_Sinus_Cosinus_T4, TFunction_Block_Sinus_Cosinus_T3, TFunction_Block_Sinus_Cosinus_T2, TFunction_Block_Sinus_Cosinus_T1, TFunction_Block_Sinus, TFunction_Block_Single_Ended_To_Differential, TFunction_Block_Signal_Delay, TFunction_Block_SCR_Skip_Full_Wave_Controller_1_Phase, TFunction_Block_SCR_Skip_Half_Wave_Controller_1_Phase, TFunction_Block_SCR_Cut_Wave_Controller_1_Phase, TFunction_Block_Scaled_Data_Type_Convertion_F32_I16, TFunction_Block_Scale_ADC_Value, TFunction_Block_Sample_And_Hold_On_Rising_Edge_F32_1C, TFunction_Block_Run_Stop_Button_Controller, TFunction_Block_RS_Flip_Flop_BOOL, TFunction_Block_RMS_Moving_Average_Filter_128_3C, TFunction_Block_Rectangular_Signal_Generator_F32_T1, TFunction_Block_Rectangular_Signal_Generator_BOOL_T1, TFunction_Block_Range_F32_1C_8I, TFunction_Block_Raise_Event_BOOL_Falling_Edge, TFunction_Block_Raise_Event_BOOL_Riseing_Edge, TFunction_Block_Raise_Event_BOOL_Edge, TFunction_Block_Quadrature_Signal_Generator, TFunction_Block_Quadrature_Signal_Generator_T1, TFunction_Block_PV_Input_Management_FSM, TFunction_Block_PT1_F32_8C_T1, TFunction_Block_PT1_F32_4C_T1, TFunction_Block_PT1_3C_T3, TFunction_Block_PT1_F32_3C_T1, TFunction_Block_PT1_F32_2C_T1, TFunction_Block_PT1_1C_T3, TFunction_Block_PT1_F32_1C_T2, TFunction_Block_PT1_F32_1C_T1, TFunction_Block_Polar_Vector_Generator, TFunction_Block_PID_Regulator, TFunction_Block_PI_Regulator_F32_T8, TFunction_Block_PI_Regulator_F32_T7, TFunction_Block_PI_Regulator_F32_T6, TFunction_Block_PI_Regulator_F32_T5, TFunction_Block_PI_Regulator_F32_T4, TFunction_Block_PI_Regulator_F32_T3, TFunction_Block_PI_Regulator_F32_T2, TFunction_Block_PI_Regulator_F32_T1, TFunction_Block_Park_Transformation_F32_T4, TFunction_Block_Park_Transformation_F32_T3, TFunction_Block_Park_Transformation_F32_T2, TFunction_Block_Park_Transformation_F32_T1, TFunction_Block_OSG_3_Phase_PLL, TFunction_Block_OSG_1_Phase_PLL, TFunction_Block_Orthogonal_Signal_Generator, TFunction_Block_OR_1C_9I, TFunction_Block_OR_1C_8I, TFunction_Block_OR_1C_7I, TFunction_Block_OR_1C_6I, TFunction_Block_OR_1C_5I, TFunction_Block_OR_1C_4I, TFunction_Block_OR_1C_3I, TFunction_Block_OR_1C_2I, TFunction_Block_OR_1C_24I, TFunction_Block_OR_1C_23I, TFunction_Block_OR_1C_22I, TFunction_Block_OR_1C_20I, TFunction_Block_OR_1C_19I, TFunction_Block_OR_1C_18I, TFunction_Block_OR_1C_17I, TFunction_Block_OR_1C_13I, TFunction_Block_On_Delay, TFunction_Block_Offset_Gain, TFunction_Block_Off_Delay, TFunction_Block_Inversion_BOOL_6C, TFunction_Block_Inversion_BOOL_5C, TFunction_Block_Inversion_BOOL_4C, TFunction_Block_Inversion_BOOL_3C, TFunction_Block_Inversion_BOOL_2C, TFunction_Block_Inversion_BOOL_1C, TFunction_Block_NOR_1C_8I, TFunction_Block_NOR_1C_7I, TFunction_Block_NOR_1C_6I, TFunction_Block_NOR_1C_5I, TFunction_Block_NOR_1C_4I, TFunction_Block_NOR_1C_3I, TFunction_Block_NOR_1C_2I, TFunction_Block_NOR_1C_20I, TFunction_Block_NOR_1C_19I, TFunction_Block_NOR_1C_18I, TFunction_Block_NOR_1C_17I, TFunction_Block_Negation_F32_3C, TFunction_Block_Negation_F32_2C, TFunction_Block_Negation_F32_1C, TFunction_Block_NAND_8, TFunction_Block_NAND_7, TFunction_Block_NAND_6, TFunction_Block_NAND_5, TFunction_Block_NAND_4, TFunction_Block_NAND_3, TFunction_Block_NAND_BOOL_1C_2I, TFunction_Block_Multiplicative_Inverse_F32_1C, TFunction_Block_Multiplication_N_3, TFunction_Block_Multiplication_4, TFunction_Block_Multiplication_3, TFunction_Block_Multiplication, TFunction_Block_Multiplexer_F32_2C_4I_T1, TFunction_Block_Multiplexer_F32_2C_2I_T1, TFunction_Block_Multiplexer_F32_1C_4I_T2, TFunction_Block_Multiplexer_F32_1C_4I_T1, TFunction_Block_Multiplexer_F32_1C_4I, TFunction_Block_Multiplexer_BOOL_1C_4I_T2, TFunction_Block_Multiplexer_BOOL_1C_4I_T1, TFunction_Block_Multiplexer_BOOL_1C_2I_T1, TFunction_Block_MPPT, TFunction_Block_Minimum_F32_2C_2I, TFunction_Block_Minimum_F32_20C_2I, TFunction_Block_Minimum_F32_1C_2I, TFunction_Block_Merge_U8_U16, TFunction_Block_Merge_BOOL_U32, TFunction_Block_Merge_BOOL_U16, TFunction_Block_Mechanical_To_Electrical_Angle, TFunction_Block_Maximum_F32_2C_2I, TFunction_Block_Maximum_F32_20C_2I, TFunction_Block_Maximum_F32_1C_2I, TFunction_Block_Magnitude_3D, TFunction_Block_Magnitude_2D, TFunction_Block_LVRT_FSM, TFunction_Block_Local_Remote_Switch_Controller, TFunction_Block_Liquid_Cooling_System_T3, TFunction_Block_Liquid_Cooling_System_T2, TFunction_Block_Liquid_Cooling_System, TFunction_Block_Line_Phase_Transformation, TFunction_Block_Limit_LEZ_F32_1C, TFunction_Block_Limit_F32_1C, TFunction_Block_Limit_2D_XY_F32_1C, TFunction_Block_Limit_2D_X_F32_1C, TFunction_Block_Limit_2D_F32_1C, TFunction_Block_Latch_On_Low_Level_F32_1C, TFunction_Block_Latch_On_High_Level_F32_1C, TFunction_Block_Lamp_Indicator_Controller, TFunction_Block_Inverse_Park_Transformation_DQ_ABC, TFunction_Block_Inverse_Park_Transformation, TFunction_Block_Inverse_Clarke_Transformation, TFunction_Block_Instantaneous_Power_DQ0_PQ, TFunction_Block_Instantaneous_Power_DQ_PQ, TFunction_Block_Instantaneous_Power_ab0_PQ, TFunction_Block_Instantaneous_Power_ab_PQ, TFunction_Block_Instantaneous_Power_ABC_PQ, TFunction_Block_Incremental_Encoder_Model, TFunction_Block_Increment_Decrement_Button_Controller, TFunction_Block_I_Regulator, TFunction_Block_Grid_Power_Control, TFunction_Block_Grid_Filter, TFunction_Block_Gain_Negation, TFunction_Block_Gain, TFunction_Block_Environment, TFunction_Block_Duty_Limiter, TFunction_Block_Drive_Train_Vibration_Damping, TFunction_Block_Division_F32_1C, TFunction_Block_Discrete_Delay_Z1_F32_1C, TFunction_Block_DFIG_Torque_Model, TFunction_Block_DFIG_IRQ_To_ISQ_Convertion, TFunction_Block_DFIG_IRD_Calculation, TFunction_Block_Debounce_BOOL_1C, TFunction_Block_DC_Offset_Compensation, TFunction_Block_DC_Bus_Precharge_Type_2_FSM, TFunction_Block_DC_Bus_Precharge_Type_1_FSM, TFunction_Block_Crowbar_Control, TFunction_Block_Cosinus, TFunction_Block_Cooling_System_Model, TFunction_Block_Contactor_Model, TFunction_Block_Comparator_Not_Equal_To_U16, TFunction_Block_Comparator_Not_Equal_To_F32, TFunction_Block_Comparator_Less_Than, TFunction_Block_Comparator_Greater_Than_F32_12C, TFunction_Block_Comparator_Greater_Than_F32_1C, TFunction_Block_Comparator_Equal_To_U32, TFunction_Block_Comparator_Equal_To_U16, TFunction_Block_Comparator_Equal_To_F32, TFunction_Block_Clarke_Transformation, TFunction_Block_Cartesian_To_Polar, TFunction_Block_Cabinet_Cooling_System_Model, TFunction_Block_Cabinet_Cooling_System, TFunction_Block_Split_U64_U32, TFunction_Block_Split_U16_U16, TFunction_Block_Split_U16_U8, TFunction_Block_Split_U32_BOOL, TFunction_Block_Split_U16_BOOL, TFunction_Block_Merge_U8_U16, TFunction_Block_Merge_BOOL_U32, TFunction_Block_Merge_BOOL_U16, TFunction_Block_Band_F32_8C_T1, TFunction_Block_Band_Comparator_F32_1C_T2, TFunction_Block_Band_Comparator_F32_1C_T1, TFunction_Block_Ballast_Control, TFunction_Block_Angle_Addition_F32_1C_2I, TFunction_Block_And_U16_1C_2I, TFunction_Block_AND_BOOL_1C_8I, TFunction_Block_AND_BOOL_1C_7I, TFunction_Block_AND_BOOL_1C_6I, TFunction_Block_AND_BOOL_1C_5I, TFunction_Block_AND_BOOL_1C_4I, TFunction_Block_AND_BOOL_1C_3I, TFunction_Block_AND_BOOL_1C_2I, TFunction_Block_Moving_Average_256_1C, TFunction_Block_Moving_Average_128_3C, TFunction_Block_Moving_Average_128_2C, TFunction_Block_Moving_Average_128_F32_1C_T2, TFunction_Block_Moving_Average_128_1C, TFunction_Block_Addition_F32_1C_4I, TFunction_Block_Addition_F32_1C_3I, TFunction_Block_Addition_F32_1C_2I, TFunction_Block_Abs_F32_3C, TFunction_Block_Abs_F32_2C, TFunction_Block_Abs_F32_1C, TFunction_Block_ABB_SACE_Model, TFunction_Block_ABB_SACE_FSM_T1, TFunction_Block_ABB_SACE_FSM_T1, TFunction_Block_4_20mA_To_Signal_Converter_1C, and TFunction_Block_DFIG_Model.

◆ Get_Function_Block_ID()

U32 TFunction_Block_Base::Get_Function_Block_ID ( )

Get function block dentifier.


Note
None
Returns
U32 - Function block identifier
Override
Not allowed
Attention
None

References u32_Function_Block_ID.

◆ Get_Input_Connector()

BOOL TFunction_Block_Base::Get_Input_Connector ( U32  u32_Connector_Index,
TBlock_Input_Connector **  object_Input_Connector 
)

Get pointer to the input connector.


Note
None
Parameters
[in]u32_Connector_Index- Input connector index
[out]**object_Input_Connector- Pointer to the input connector storage
Returns
BOOL - Method execution status
Return values
false- Input connector not found
true- Input connector found
Override
Not allowed
Attention
None

◆ Get_Output_Connector()

BOOL TFunction_Block_Base::Get_Output_Connector ( U32  u32_Connector_Index,
TBlock_Output_Connector **  object_Output_Connector 
)

Get pointer to the output connector.


Note
None
Parameters
[in]u32_Connector_Index- Output connector index
[out]**object_Output_Connector- Pointer to the output connector storage
Returns
BOOL - Method execution status
Return values
false- Input connector not found
true- Input connector found
Override
Not allowed
Attention
None

◆ Get_SQL_Queries()

VOID __fastcall TFunction_Block_Base::Get_SQL_Queries ( TStringList *  object_SQL_Queries)

◆ Get_Status()

TFunction_Block_Base::TFunction_Block_Status TFunction_Block_Base::Get_Status ( )

Get function block status method.


Note
None
Parameters
None
Returns
TFunction_Block_Status - Function block status
Override
Not allowed
Attention
None

References TFunction_Block_Base::TFunction_Block_Status::u32_Status_Raw_Data.

◆ Init()

VOID TFunction_Block_Base::Init ( )

◆ Is_Connected()

BOOL TFunction_Block_Base::Is_Connected ( )

Returns status of the function block interconnection.


Note
None
Returns
BOOL - Interconnection status of the function block inputs
Return values
false- Function block has invalid interconnection of the inputs
true- Function block has valid interconnection of the inputs
Override
Not allowed
Attention
None

References TFunction_Block_Base::TFunction_Block_Status::bit1_Connected, and struct_Status.

◆ Is_Initialisation_Error()

BOOL TFunction_Block_Base::Is_Initialisation_Error ( )

Return function block initialisation error status.


Note
None
Returns
BOOL - Function block initialisation error status
Parameters
None
Override
Not allowed
Attention
None

References TFunction_Block_Base::TFunction_Block_Status::bit1_Initialisation_Error, and struct_Status.

Referenced by TFunction_Block_Debounce_BOOL_1C::Init(), and TFunction_Block_On_Delay::Init().

Here is the caller graph for this function:

◆ Is_Initialised()

BOOL TFunction_Block_Base::Is_Initialised ( )

Returns status of the function block interconnection.


Note
None
Returns
BOOL - Function block initialisation status
Return values
false- Function block initialised with errors
true- Function block initialised without errors
Override
Not allowed
Attention
None

References TFunction_Block_Base::TFunction_Block_Status::bit1_Initialised, and struct_Status.

◆ Load_Block_From_List()

VOID __fastcall TFunction_Block_Base::Load_Block_From_List ( TStringList *  object_File_Source_CPP,
TStringList *  object_File_Source_H 
)

◆ LoadFromProjectFile()

virtual void __fastcall TFunction_Block_Base::LoadFromProjectFile ( TMemIniFile *  ProjectFile,
AnsiString  ParentSection 
)
virtual

◆ Modified()

void __fastcall TFunction_Block_Base::Modified ( TObject *  object_Sender)
private

◆ NeedToUpdate()

void __fastcall TFunction_Block_Base::NeedToUpdate ( TObject *  object_Sender)
private

◆ OnClick()

void __fastcall TFunction_Block_Base::OnClick ( TObject *  object_Sender)
private

◆ OnDblClick()

void __fastcall TFunction_Block_Base::OnDblClick ( TObject *  object_Sender)
private

◆ OnInputConnectorClick()

void __fastcall TFunction_Block_Base::OnInputConnectorClick ( TObject *  Sender)
private

◆ OnMouseDown()

void __fastcall TFunction_Block_Base::OnMouseDown ( TObject *  object_Sender,
TMouseButton  Button,
TShiftState  Shift,
int  int_X,
int  int_Y 
)
private

◆ OnMouseMove()

void __fastcall TFunction_Block_Base::OnMouseMove ( TObject *  object_Sender,
TShiftState  Shift,
int  int_X,
int  int_Y 
)
private

◆ OnMouseUp()

void __fastcall TFunction_Block_Base::OnMouseUp ( TObject *  object_Sender,
TMouseButton  Button,
TShiftState  Shift,
int  int_X,
int  int_Y 
)
private

◆ OnOutputConnectorClick()

void __fastcall TFunction_Block_Base::OnOutputConnectorClick ( TObject *  Sender)
private

◆ Paint()

virtual void __fastcall TFunction_Block_Base::Paint ( )
virtual

◆ PropertiesDialog()

virtual bool __fastcall TFunction_Block_Base::PropertiesDialog ( )
virtual

◆ RepaintAllBlocks()

virtual void __fastcall TFunction_Block_Base::RepaintAllBlocks ( )
virtual

◆ ResolveConnectorAddress()

void __fastcall TFunction_Block_Base::ResolveConnectorAddress ( TObject *  Sender,
TConnectorAddress *  Address 
)
private

◆ SaveToProjectFile()

virtual void __fastcall TFunction_Block_Base::SaveToProjectFile ( TMemIniFile *  ProjectFile,
AnsiString  ParentSection 
)
virtual

◆ Send_Information()

VOID TFunction_Block_Base::Send_Information ( TProtocol_Base object_Protocol)
virtual

Send information about Function block over communication link protocol.


Note
This method sends information about Function block over specified communication link protocol.
Parameters
[in]*object_Protocol- Pointer to the communication link protocol
Returns
None
Override
Not allowed
Attention
None
Todo:
ANVILEX KM: Implement sending status of the function block

Reimplemented in TP021_23_KG3_EVIO_T1, TP020_36_V1_0_DCBIO, TP020_29_KG3_ENC_T2, TP020_29_KG3_ENC_T1, TP020_12_KG3_PTE_T1, TP019_11_KG3_MOD, TP019_11_KG3_FC, TP018_39_KG3_BLA_T1_E, TP018_39_KG3_BLA_T1, TP018_34_KG3_BLCP_T1, TKG3_RTD2_T1, TKG3_RTD2_T0, TP017_52_KG3_CI_T1, TP017_48_KG3_COM_PB, TP017_42_KG3_AI_T2, TP017_42_KG3_AI_T1, TP017_42_KG3_AI_T0, TP017_41_KG3_RTD, TP017_21_KG3_DIO_T2, TP017_21_KG3_DIO_T1, TP017_20_KG3_FOTR_T2, TP017_20_KG3_FOTR_T1, TP017_20_KG3_FOTR_T0, TP017_05_KG3_AO_T4, TP017_05_KG3_AO_T3, TP017_05_KG3_AO_T2, TP017_05_KG3_AO_T1, TP015_09_V1_0_RTD, TP015_09_V1_0_Encoder_T2, TP015_09_V1_0_Encoder, TP015_09_V1_DIO_T2, TP015_09_V1_DIO_T1, TP015_09_V1_0_DC_Bus_T2, TP015_09_V1_0_DC_Bus, TP015_09_V1_Crowbar_T2, TP015_09_V1_0_Crowbar, TP015_09_FOTR_T2, TP015_09_FOTR_T1, TP015_09_FOTR_T0, TP011_35_V2_0_DC_Bus, TP005_03_V2_0_AI_2V_E1, TP005_03_V2_0_AI_2V, TP005_03_V2_0_AI_T4, TP005_03_V2_0_AI_T3, TP005_03_V2_0_AI_T2, TP005_03_V2_0_AI, TKG3_PLC_T1, TKG3_PLC_T0, TKG3_CAB_EXT_T1, TKG3_LCSI_T1, TKG3_DCBIO_V2, TFunction_Block_Software_Trip_Controller_T3, TFunction_Block_Software_Trip_Controller_T2, TFunction_Block_Software_Trip_Controller_T1, TPWM_3P2L, TPWM_3P2L_T1, TPWM_1C3P2L, TPWM_1C2P2L, TFunction_Block_FPGA_Trip_Controller_T1, TFunction_Block_FPGA_Trip_Controller_T0, TFunction_Block_Toggle_Button_Controller, TFunction_Block_Temperature_Monitor, TFunction_Block_Switch_Button_Controller, TFunction_Block_SRF_PLL, TFunction_Block_Sinus_Signal_Generator, TFunction_Block_Sinus_Filter_Synchroniser, TFunction_Block_Run_Stop_Button_Controller, TFunction_Block_RMS_Moving_Average_Filter_128_3C, TFunction_Block_Quadrature_Signal_Generator, TFunction_Block_Quadrature_Signal_Generator_T1, TFunction_Block_PV_Input_Management_FSM, TFunction_Block_Polar_Vector_Generator, TFunction_Block_PI_Regulator_F32_T8, TFunction_Block_PI_Regulator_F32_T7, TFunction_Block_PI_Regulator_F32_T6, TFunction_Block_PI_Regulator_F32_T5, TFunction_Block_PI_Regulator_F32_T4, TFunction_Block_PI_Regulator_F32_T3, TFunction_Block_PI_Regulator_F32_T2, TFunction_Block_PI_Regulator_F32_T1, TFunction_Block_OSG_3_Phase_PLL, TFunction_Block_OSG_1_Phase_PLL, TFunction_Block_Orthogonal_Signal_Generator, TFunction_Block_Off_Delay, TFunction_Block_LVRT_FSM, TFunction_Block_Local_Remote_Switch_Controller, TFunction_Block_Liquid_Cooling_System_T3, TFunction_Block_Liquid_Cooling_System_T2, TFunction_Block_Liquid_Cooling_System, TFunction_Block_Lamp_Indicator_Controller, TFunction_Block_Incremental_Encoder_Model, TFunction_Block_Increment_Decrement_Button_Controller, TFunction_Block_Grid_Power_Control, TFunction_Block_Grid_Filter, TFunction_Block_DC_Bus_Precharge_Type_2_FSM, TFunction_Block_DC_Bus_Precharge_Type_1_FSM, TFunction_Block_Crowbar_Control, TFunction_Block_Contactor_Model, TFunction_Block_Cabinet_Cooling_System, TFunction_Block_Ballast_Control, TFunction_Block_Moving_Average_128_3C, TFunction_Block_Moving_Average_128_2C, TFunction_Block_ABB_SACE_Model, TFunction_Block_ABB_SACE_FSM_T1, and TFunction_Block_ABB_SACE_FSM_T1.

References TProtocol_Base::Transmit_String().

Here is the call graph for this function:

◆ Set_Initialisation_Error()

VOID TFunction_Block_Base::Set_Initialisation_Error ( )

Set function block initialisation error.


Note
None
Parameters
None
Override
Not allowed
Attention
None

References TFunction_Block_Base::TFunction_Block_Status::bit1_Initialisation_Error, and struct_Status.

Referenced by TFunction_Block_Debounce_BOOL_1C::Init(), TFunction_Block_On_Delay::Init(), TP015_09_V1_0_RTD::Init(), and TP017_41_KG3_RTD::Init().

Here is the caller graph for this function:

◆ SetFlippedFlag()

void __fastcall TFunction_Block_Base::SetFlippedFlag ( bool  Value)
protected

◆ SetNamesOfConnectors()

virtual void __fastcall TFunction_Block_Base::SetNamesOfConnectors ( )
protectedvirtual

◆ SetSelectedFlag()

void __fastcall TFunction_Block_Base::SetSelectedFlag ( bool  Value)
protected

◆ SwapBlocks()

virtual void __fastcall TFunction_Block_Base::SwapBlocks ( )
virtual

◆ TBlock_Template()

__fastcall TFunction_Block_Base::TBlock_Template ( TComponent *  Owner,
TList Storage 
)

◆ Trip()

VOID TFunction_Block_Base::Trip ( )
virtual

Function block trip method.


Note
implement in this method emergency trip functions related to hardware reconfoguration
Parameters
None
Override
Oprional
Attention
None

◆ Update()

VOID TFunction_Block_Base::Update ( )
virtual

Update parameters at runtime method.


Note
This is experemental functionality
Parameters
None
Override
Optional
Attention
None

◆ Update_Connected_Status()

VOID TFunction_Block_Base::Update_Connected_Status ( BOOL  bool_New_Connected_Status)
protected

Updates function block interconnection status.


Note
None
Parameters
[in]bool_New_Connected_Status- New status
Returns
None
Override
Not allowed
Attention
None

References TFunction_Block_Base::TFunction_Block_Status::bit1_Connected, and struct_Status.

Referenced by TFunction_Block_Band_Comparator_F32_1C_T1::Init(), TFunction_Block_Band_Comparator_F32_1C_T2::Init(), TFunction_Block_Band_F32_8C_T1::Init(), TFunction_Block_Comparator_Greater_Than_F32_1C::Init(), TFunction_Block_Comparator_Greater_Than_F32_12C::Init(), TFunction_Block_OR_1C_13I::Init(), TFunction_Block_OR_1C_17I::Init(), TFunction_Block_OR_1C_18I::Init(), TFunction_Block_OR_1C_19I::Init(), TFunction_Block_OR_1C_20I::Init(), TFunction_Block_OR_1C_22I::Init(), TFunction_Block_OR_1C_23I::Init(), TFunction_Block_OR_1C_24I::Init(), TFunction_Block_OR_1C_2I::Init(), TFunction_Block_OR_1C_3I::Init(), TFunction_Block_OR_1C_4I::Init(), TFunction_Block_OR_1C_5I::Init(), TFunction_Block_OR_1C_6I::Init(), TFunction_Block_OR_1C_7I::Init(), TFunction_Block_OR_1C_8I::Init(), TFunction_Block_OR_1C_9I::Init(), TFunction_Block_PI_Regulator_F32_T1::Init(), TFunction_Block_PI_Regulator_F32_T2::Init(), TFunction_Block_PI_Regulator_F32_T3::Init(), TFunction_Block_PI_Regulator_F32_T4::Init(), TFunction_Block_PI_Regulator_F32_T5::Init(), TFunction_Block_PI_Regulator_F32_T6::Init(), TFunction_Block_PI_Regulator_F32_T7::Init(), TFunction_Block_PI_Regulator_F32_T8::Init(), TFunction_Block_PT1_F32_1C_T1::Init(), TFunction_Block_PT1_F32_1C_T2::Init(), TFunction_Block_PT1_1C_T3::Init(), TFunction_Block_PT1_F32_2C_T1::Init(), TFunction_Block_PT1_F32_3C_T1::Init(), TFunction_Block_PT1_3C_T3::Init(), TFunction_Block_PT1_F32_4C_T1::Init(), TFunction_Block_PT1_F32_8C_T1::Init(), TFunction_Block_Range_F32_1C_8I::Init(), TFunction_Block_Rectangular_Signal_Generator_BOOL_T1::Init(), TFunction_Block_Rectangular_Signal_Generator_F32_T1::Init(), TFunction_Block_Temperature_Monitor::Init(), TFunction_Block_Software_Trip_Controller_T1::Init(), TFunction_Block_Software_Trip_Controller_T2::Init(), TFunction_Block_Software_Trip_Controller_T3::Init(), TP015_09_V1_0_Encoder_T2::Init(), TP017_21_KG3_DIO_T0::Init(), TP017_21_KG3_DIO_T1::Init(), TP017_21_KG3_DIO_T2::Init(), TP019_11_KG3_FC::Init(), TP019_11_KG3_MOD::Init(), TP020_29_KG3_ENC_T1::Init(), TP020_29_KG3_ENC_T2::Init(), and TP021_23_KG3_EVIO_T1::Init().

Here is the caller graph for this function:

Member Data Documentation

◆ AutoSize

bool TFunction_Block_Base::AutoSize

◆ BlockID

int TFunction_Block_Base::BlockID

◆ Border

__property BOOL TFunction_Block_Base::Border = { read = FBorder, write = FBorder, default = true }

◆ Core

TCore_Template* TFunction_Block_Base::Core

◆ DobbleClicked

BOOL TFunction_Block_Base::DobbleClicked = (BOOL)false
protected

◆ FBorder

BOOL TFunction_Block_Base::FBorder = (BOOL)true
protected

Function block border status.

◆ FFlipped

BOOL TFunction_Block_Base::FFlipped = (BOOL)false
protected

Function block flipped status.

◆ FLabel

AnsiString TFunction_Block_Base::FLabel = ""
protected

Function block label of the core string.

◆ Flipped

__property BOOL TFunction_Block_Base::Flipped = { read = FFlipped, write = SetFlippedFlag, default = false }

◆ FModified

TNotifyEvent TFunction_Block_Base::FModified
protected

◆ FNeedToUpdate

TNotifyEvent TFunction_Block_Base::FNeedToUpdate
protected

◆ FOnCoreSelected

TNotifyEvent TFunction_Block_Base::FOnCoreSelected
protected

◆ FOnInputConnectorSelected

TNotifyEvent TFunction_Block_Base::FOnInputConnectorSelected
protected

◆ FOnOutputConnectorSelected

TNotifyEvent TFunction_Block_Base::FOnOutputConnectorSelected
protected

◆ FOnResolveConnectorAddress

TResolveConnectorAddressEvent TFunction_Block_Base::FOnResolveConnectorAddress
protected

◆ Footer

TFooter_Template* TFunction_Block_Base::Footer

◆ FSelected

BOOL TFunction_Block_Base::FSelected = (BOOL)false
protected

Function block seleted status.

◆ Icon

Graphics::TBitmap* TFunction_Block_Base::Icon

◆ InputConnectorsCount

int TFunction_Block_Base::InputConnectorsCount

◆ Label

__property AnsiString TFunction_Block_Base::Label = { read = FLabel, write = FLabel }

◆ LockedMode

BOOL TFunction_Block_Base::LockedMode = (BOOL)false
protected

◆ object_Input_Connector_List

TObjectList* TFunction_Block_Base::object_Input_Connector_List = (TObjectList*) = NULL
private

Referenced by Load_Block_From_List().

◆ object_Output_Parameter_List

TObjectList* TFunction_Block_Base::object_Output_Parameter_List = (TObjectList*) = NULL
private

◆ object_Parameter_Connector_List

TObjectList* TFunction_Block_Base::object_Parameter_Connector_List = (TObjectList*) = NULL
private

◆ object_Source_CPP

TStringList* TFunction_Block_Base::object_Source_CPP = (TStringList*)NULL
private

◆ object_Source_H

TStringList* TFunction_Block_Base::object_Source_H = (TStringList*)NULL
private

◆ OnCoreSelected

__property TNotifyEvent TFunction_Block_Base::OnCoreSelected = { read = FOnCoreSelected, write = FOnCoreSelected }

◆ OnInputConnectorSelected

__property TNotifyEvent TFunction_Block_Base::OnInputConnectorSelected = { read = FOnInputConnectorSelected, write = FOnInputConnectorSelected }

◆ OnModified

__property TNotifyEvent TFunction_Block_Base::OnModified = { read = FModified, write = FModified }

◆ OnNeedToUpdate

__property TNotifyEvent TFunction_Block_Base::OnNeedToUpdate = { read = FNeedToUpdate, write = FNeedToUpdate }

◆ OnOutputConnectorSelected

__property TNotifyEvent TFunction_Block_Base::OnOutputConnectorSelected = { read = FOnOutputConnectorSelected, write = FOnOutputConnectorSelected }

◆ OnResolveConnectorAddress

__property TResolveConnectorAddressEvent TFunction_Block_Base::OnResolveConnectorAddress = { read = FOnResolveConnectorAddress, write = FOnResolveConnectorAddress }

◆ OutputConnectorsCount

int TFunction_Block_Base::OutputConnectorsCount

◆ Parameters

TParameters_Template* TFunction_Block_Base::Parameters

◆ Selected

__property BOOL TFunction_Block_Base::Selected = { read = FSelected, write = SetSelectedFlag, default = false }

◆ StorageOfBlocks

TList* TFunction_Block_Base::StorageOfBlocks = (TList*)NULL

◆ StorageOfInputConnectors

TList* TFunction_Block_Base::StorageOfInputConnectors

◆ StorageOfOutputConnectors

TList* TFunction_Block_Base::StorageOfOutputConnectors

◆ struct_Status

TFunction_Block_Status TFunction_Block_Base::struct_Status = { .u32_Status_Raw_Data = (U32)0x00000000 }
private

◆ u32_Function_Block_ID

U32 TFunction_Block_Base::u32_Function_Block_ID = (U32)0
private

Function block function block identifier.

Referenced by Get_Function_Block_ID(), and TFunction_Block_Base().

◆ u32_Locked_Position_X

U32 TFunction_Block_Base::u32_Locked_Position_X = (U32)0
protected

◆ u32_Locked_Position_Y

U32 TFunction_Block_Base::u32_Locked_Position_Y = (U32)0
protected

◆ utf8_string_Description

TUTF8String TFunction_Block_Base::utf8_string_Description = ""
private

◆ utf8_string_Name

TUTF8String TFunction_Block_Base::utf8_string_Name = ""
private

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