|
|
@@ -376,27 +376,6 @@ namespace BPASmartClient.DosingSystem |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 关闭上位机需要做的处理。 |
|
|
|
/// </summary> |
|
|
|
public void ShutDown() |
|
|
|
{ |
|
|
|
|
|
|
|
SimensSend.GetInstance.SendSimens.Write("M0.0", false); |
|
|
|
SimensSend.GetInstance.SendSimens.Write("M0.1", false); |
|
|
|
foreach (var item in DeviceInquire.GetInstance.DeviceLists.Values) |
|
|
|
{ |
|
|
|
item.modbusTcp.Write<ushort>(DeviceAddress.TranspportSwitch.ToAdd(), 0); |
|
|
|
} |
|
|
|
TaskManage.GetInstance.StopTask("设备下发配方"); |
|
|
|
TaskManage.GetInstance.StopTask("下发设备参数", () => |
|
|
|
{ |
|
|
|
|
|
|
|
}); |
|
|
|
TaskManage.GetInstance.StopTask("控制传送带"); |
|
|
|
} |
|
|
|
|
|
|
|
public ConcurrentDictionary<string, int> doDeviceCount = new ConcurrentDictionary<string, int>(); |
|
|
|
|
|
|
|
int dd = 0; |
|
|
|