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