|
|
@@ -100,12 +100,24 @@ namespace BPASmartClient.Academy |
|
|
|
Json<LocaMaterial>.Save(); |
|
|
|
BPASmartClient.CustomResource.Pages.Model.MessageNotify.GetInstance.LogSave(); |
|
|
|
TaskManage.GetInstance.Dispose(); |
|
|
|
if (Simens_PLC.GetInstance.IsConnected) |
|
|
|
switch (Json<DevicePar>.Data.ProjectTypeName) |
|
|
|
{ |
|
|
|
Simens_PLC.GetInstance.id = ""; |
|
|
|
Simens_PLC.GetInstance.siemens.Write<bool>("DB1.DBX1002.0", false); |
|
|
|
Simens_PLC.GetInstance.siemens.Write<bool>("DB1.DBX1002.1", false); |
|
|
|
case "HKYF20240916": |
|
|
|
if (PlcControl.GetInstance.IsConnect) |
|
|
|
{ |
|
|
|
PlcControl.GetInstance.Write(BoolAddEnum.系统启动, false); |
|
|
|
} |
|
|
|
break; |
|
|
|
default: |
|
|
|
if (Simens_PLC.GetInstance.IsConnected) |
|
|
|
{ |
|
|
|
Simens_PLC.GetInstance.id = ""; |
|
|
|
Simens_PLC.GetInstance.siemens.Write<bool>("DB1.DBX1002.0", false); |
|
|
|
Simens_PLC.GetInstance.siemens.Write<bool>("DB1.DBX1002.1", false); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
App.Current.Shutdown(); |
|
|
|
Environment.Exit(0); |
|
|
|
//Process.GetCurrentProcess().Kill(); |
|
|
|