Admin.NET/WCS.Application/PLC/PLCTaskAction.cs
@@ -69,6 +69,7 @@ /// </summary> public static void Init() { // var strMsg = new HttpService().RequestPackWcs("LN000001"); cts.Cancel(); listPlc = _db.Queryable<WcsPlc>() .Where(s => s.Type == PLCTypeEnum.StackingMachine || s.Type == PLCTypeEnum.ConveyorLine || s.Type == PLCTypeEnum.BoxConveyorLine) @@ -141,7 +142,7 @@ } if (!modPlcUtil.Connected) { Thread.Sleep(10000); Thread.Sleep(1000); modPlcUtil.Open(); continue; } @@ -245,7 +246,7 @@ HubUtil.PublicPlcConn(modPlc); } } Thread.Sleep(1000); Thread.Sleep(10000); } } catch (OperationCanceledException)