资讯动态

CloseCurrentBatchAsync 卡UI 问题

发布时间:2026/10/27 10:15:01 来源:尧图企业网站定制
一、问题根因调用链目前是同步的:CloseCurrentBatchAsync - ExecuteBatchCloseCoreAsync - BatchLifecycleService.Close - WriteBatchComplete - WriteRunLightOff关键位置:BatchLifecycleService.Close是同步方法,两个 PLC 写入会直接占用当前线程。设备断电后,写入路径为:PLCController.WriteBatchComplete - WriteBusinessCommand - AuxPLC.WriteAddress - SendReceive - DriverBase.NoLockExecute - TcpConnector.EnsureConnectedCore / Socket.Receive其中TcpConnector.EnsureConnectedCore使用同步Socket.Connect,连接超时不一定受ReadTimeout或WriteTimeout控制,可能等待操作系统 TC

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价 →
↑