//--------------------------------------------------------------------------- #ifndef mainH #define mainH //--------------------------------------------------------------------------- #include #include #include #include #include //--------------------------------------------------------------------------- class TCPM_TestProg : public TForm { __published: // IDE-managed Components TButton *Btn_BoardInfo; TButton *Btn_ActiveBoard; TComboBox *Cmb_Board; TComboBox *Cmb_Baudrate; TLabel *Label1; TLabel *Label2; TGroupBox *GroupBox1; TLabel *Label3; TButton *Btn_AddNode; TComboBox *Cmb_NodeId; TGroupBox *GroupBox2; TButton *Btn_GetState; TComboBox *Cmb_NodeState; TButton *Btn_SetState; TGroupBox *GroupBox3; TEdit *Edit_GuardTime; TLabel *Label4; TButton *Btn_Guarding; TGroupBox *GroupBox4; TEdit *Edit_NewCobId; TLabel *Label5; TButton *Btn_ChangeSYNCId; TButton *Btn_ChangeEMCYId; TGroupBox *GroupBox7; TGroupBox *GroupBox5; TLabel *Label6; TLabel *Label7; TButton *Btn_InstallPDO; TEdit *Edit_PDOIndex; TGroupBox *GroupBox6; TLabel *Label8; TLabel *Label9; TLabel *Label10; TButton *Btn_DynamicPDO; TEdit *Edit_IOCh1; TComboBox *Cmb_PDOCh; TComboBox *Cmb_IOType; TGroupBox *GroupBox8; TComboBox *Cmb_RxTxType; TComboBox *Cmb_PDOEntry; TButton *Btn_RemovePDO; TLabel *Label11; TLabel *Label12; TLabel *Label13; TLabel *Label14; TEdit *Edit_SetupPDO; TLabel *Label15; TGroupBox *GroupBox9; TEdit *Edit_TxType; TLabel *Label16; TGroupBox *GroupBox10; TLabel *Label17; TEdit *Edit_EventTimer; TGroupBox *GroupBox11; TEdit *Edit_NewPDO; TButton *Btn_SetEventTimer; TLabel *Label18; TLabel *Label19; TButton *Btn_ChangePDOId; TGroupBox *GroupBox12; TButton *Btn_AbortSDO; TButton *Btn_WriteSDO; TButton *Btn_ReadSDO; TEdit *Edit_Index; TEdit *Edit_SubIndex; TEdit *Edit_WSDOData; TEdit *Edit_RSDOData; TLabel *Label20; TLabel *Label21; TLabel *Label22; TLabel *Label23; TGroupBox *GroupBox13; TButton *Btn_DO; TButton *Btn_DI; TButton *Btn_AI; TButton *Btn_AO; TEdit *Edit_IOCh2; TEdit *Edit_IOValue; TLabel *Label24; TLabel *Label25; TGroupBox *GroupBox14; TLabel *Label26; TLabel *Label27; TLabel *Label28; TLabel *Label29; TEdit *Edit_PDOId; TEdit *Edit_PDOData; TEdit *Edit_RTRData; TButton *Btn_PDOOutput; TButton *Btn_PDORtr; TGroupBox *GroupBox15; TButton *Btn_SendSync; TEdit *Edit_SYNCId; TEdit *Edit_Cyclic; TLabel *Label30; TLabel *Label31; TGroupBox *GroupBox16; TMemo *Mem_Receive; TTimer *Timer1; TButton *Btn_SetTxType; TShape *Shp_LED; TComboBox *Cmb_Offset; TButton *Btn_StopSync; void __fastcall WhenCloseBoard(void); void __fastcall WhenActiveBoard(void); void __fastcall WhenAddNode(void); void __fastcall WhenRemoveNode(void); void __fastcall OnBoardClick(TObject *Sender); void __fastcall OnBoardExit(TObject *Sender); void __fastcall OnBaudrateClick(TObject *Sender); void __fastcall OnBaudrateExit(TObject *Sender); void __fastcall OnNodeidClick(TObject *Sender); void __fastcall OnNodeidExit(TObject *Sender); void __fastcall Btn_BoardInfoClick(TObject *Sender); void __fastcall Btn_ActiveBoardClick(TObject *Sender); void __fastcall Btn_AddNodeClick(TObject *Sender); void __fastcall Btn_SetStateClick(TObject *Sender); void __fastcall Btn_GetStateClick(TObject *Sender); void __fastcall Btn_GuardingClick(TObject *Sender); void __fastcall Btn_SendSyncClick(TObject *Sender); void __fastcall Btn_ReadSDOClick(TObject *Sender); void __fastcall Btn_WriteSDOClick(TObject *Sender); void __fastcall Btn_AbortSDOClick(TObject *Sender); void __fastcall Btn_PDORtrClick(TObject *Sender); void __fastcall Btn_PDOOutputClick(TObject *Sender); void __fastcall Btn_DynamicPDOClick(TObject *Sender); void __fastcall Btn_InstallPDOClick(TObject *Sender); void __fastcall Btn_RemovePDOClick(TObject *Sender); void __fastcall Btn_SetTxTypeClick(TObject *Sender); void __fastcall Btn_SetEventTimerClick(TObject *Sender); void __fastcall Btn_ChangePDOIdClick(TObject *Sender); void __fastcall Btn_ChangeSYNCIdClick(TObject *Sender); void __fastcall Btn_ChangeEMCYIdClick(TObject *Sender); void __fastcall Btn_DIClick(TObject *Sender); void __fastcall Btn_AIClick(TObject *Sender); void __fastcall Btn_DOClick(TObject *Sender); void __fastcall Btn_AOClick(TObject *Sender); void __fastcall Timer1Timer(TObject *Sender); void __fastcall Btn_StopSyncClick(TObject *Sender); private: // User declarations public: // User declarations __fastcall TCPM_TestProg(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TCPM_TestProg *CPM_TestProg; //--------------------------------------------------------------------------- #endif