Browse Source

取货完成清除信息

xu.lu 1 year ago
parent
commit
2e5d3601fa
1 changed files with 6 additions and 5 deletions
  1. 6 5
      业务工程/分拣库/WCS.WorkEngineering/Systems/RGVSystems.cs

+ 6 - 5
业务工程/分拣库/WCS.WorkEngineering/Systems/RGVSystems.cs

@@ -265,11 +265,12 @@ namespace WCS.WorkEngineering.Systems
                             }
                             else
                             {
-                                var destDev = new Device<IStation520, IStation521>(Device.All.FirstOrDefault(x => x.Code == obj.Data.DestPosition.ToString())!, World);
-                                destDev.Data.TaskNumber = 0;
-                                destDev.Data.GoodsStart = 0;
-                                destDev.Data.GoodsEnd = 0;
-                                World.Log($"任务处理:清除目标地址信息-目标货位{destDev.Entity.Code}");
+                                //var destDev = new Device<IStation520, IStation521>(Device.All.FirstOrDefault(x => x.Code == obj.Data.DestPosition.ToString())!, World);
+                                var stDev = new Device<IStation520, IStation521>(Device.All.FirstOrDefault(x => x.Code == obj.Data.StartPosition.ToString())!, World);
+                                stDev.Data.TaskNumber = 0;
+                                stDev.Data.GoodsStart = 0;
+                                stDev.Data.GoodsEnd = 0;
+                                World.Log($"任务处理:清除目标地址信息-目标货位{stDev.Entity.Code}");
                             }
 
                             obj.Data.RES1 = 1;