提交UPH 准备修改

This commit is contained in:
TD
2025-03-27 15:11:48 +08:00
parent 5d77eebc67
commit 3be4b185d6
4 changed files with 309 additions and 278 deletions

View File

@ -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>());