林豪 左 11 mesi fa
parent
commit
dac5c6b358

+ 7 - 1
WCS.Service/Worker.cs

@@ -125,7 +125,13 @@ namespace WCS.Service
                     LanguageType = LanguageType.Chinese,
                     MoreSettings = new ConnMoreSettings()
                     {
-                        IsNoReadXmlDescription = true
+                        IsNoReadXmlDescription = true,
+                         = 60 // 全局命令超时时间,单位为秒
+                    },
+                    MoreSettings = new ConnMoreSettings()
+                    {
+                        // 设置全局命令超时时间
+                       
                     }
                 });
             };

+ 1 - 1
YWGC/FJK/WCS.WorkEngineering/Systems/环形库/机械臂cs.cs

@@ -180,7 +180,7 @@ namespace WCS.WorkEngineering.Systems
 
                 //先按可取货位数量排序,再按任务号排序
                 var devGroup = arrIn.OrderByDescending(x => x.Item2.Count(i => i.Data2.TaskNumber > 0 && i.Data.Status.HasFlag(StationStatus.PH_Status)))
-                    .ThenBy(x =>
+                    .ThenByDescending(x =>
                     {
                         int number;
                         List<Device<IStation523, IStation524>> devices = new List<Device<IStation523, IStation524>>();