liuwf 2 months ago
parent 23c2accf47
commit 5db57c889c

@ -756,6 +756,12 @@ namespace SlnMesnac.WPF.Page
Task.Run(() => Task.Run(() =>
{ {
// 启动除尘
bool DustStatus = StartDust();
if(!DustStatus) return;
Thread.Sleep(500);
plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机远程急停"), false); plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机远程急停"), false);
plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机远程停止"), false); plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机远程停止"), false);
@ -828,6 +834,9 @@ namespace SlnMesnac.WPF.Page
bool result = StopMachine(99); bool result = StopMachine(99);
if (result) if (result)
{ {
// 停止除尘
StopDust();
MessageBoxAndLog("一键停止所有机器成功!"); MessageBoxAndLog("一键停止所有机器成功!");
App.Current.Dispatcher.BeginInvoke((Action)(() => App.Current.Dispatcher.BeginInvoke((Action)(() =>

Loading…
Cancel
Save