|
|
|
@ -102,6 +102,11 @@ namespace MCRun
|
|
|
|
|
if (Mesnac.Gui.Common.RunEngine.Instance.Init(projectPath, true, true, true)) //初始化运行引擎
|
|
|
|
|
{
|
|
|
|
|
AppConfigHandler.Instance.InitCustomerMenuAndToolStrip(WorkbenchSingleton.Workbench.TopMenu, WorkbenchSingleton.Workbench.ToolStrip); //初始化自定义系统菜单和工具栏
|
|
|
|
|
|
|
|
|
|
//初始化HslCommunication 11.0.6.0
|
|
|
|
|
PlcBusiness.Instance.InitPlcConnect(PlcType.SiemensPlc, "127.0.0.1", 12);
|
|
|
|
|
//初始化连接报警器
|
|
|
|
|
DoControl.Instance.ComOn();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//if (!Mesnac.Basic.InfluxDbHelper.Instance.IsStartDbServer)
|
|
|
|
@ -120,9 +125,6 @@ namespace MCRun
|
|
|
|
|
};
|
|
|
|
|
WorkbenchSingleton.InitializeWorkbench();
|
|
|
|
|
|
|
|
|
|
PlcBusiness.Instance.InitPlcConnect(PlcType.SiemensPlc, "127.0.0.1", 12);
|
|
|
|
|
DoControl.Instance.ComOn();
|
|
|
|
|
|
|
|
|
|
ICSharpCode.Core.LoggingService<Program>.Debug("starting workbench...");
|
|
|
|
|
Form frmMain = WorkbenchSingleton.Workbench as Form;
|
|
|
|
|
|
|
|
|
|