提交UPH 准备修改
This commit is contained in:
@ -593,7 +593,7 @@ namespace DH.Devices.PLC
|
||||
|
||||
if (pLCItem == null)
|
||||
return;
|
||||
WriteBool(pLCItem.Name, true);
|
||||
WriteBool(pLCItem.Address, true);
|
||||
await Task.Delay(900); // 非阻塞,等待1秒
|
||||
}
|
||||
}
|
||||
@ -693,7 +693,16 @@ namespace DH.Devices.PLC
|
||||
TurnStart(true);
|
||||
}
|
||||
|
||||
|
||||
public void CloseProcess()
|
||||
{
|
||||
StatusReset();
|
||||
VisionPos(false);
|
||||
CountToZero();
|
||||
TurnStart(false);
|
||||
TurnEnable(false);
|
||||
OpenHeartbeat(false);
|
||||
PLCDisConnect();
|
||||
}
|
||||
public void InitProcessAction() =>
|
||||
ProcessAction(ConfigModel.GlobalList?.FirstOrDefault()?.InitProcessList?.ToList() ?? new List<PLCItem>());
|
||||
|
||||
|
Reference in New Issue
Block a user