| | |
| | | && task.TargetIsPickPlace && ASRSRqtPutGoods)//è¯·æ±æ¾è´§ |
| | | { |
| | | commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSPuttGoods, ASRSRqtPutGoods); |
| | | WriteDebug($"{commonStackerCrane.DeviceName}è¯·æ±æ¾è´§", $"WCSå
许æ¾è´§,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | } |
| | | else if ((_taskService.TaskOutboundTypes.Contains(task.TaskType) |
| | | || task.TaskType == TaskRelocationTypeEnum.Relocation.ObjToInt()) |
| | | && ASRSRqtGetGoods && task.SourceIsPickPlace)//请æ±åè´§ |
| | | { |
| | | commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSGetGoods, ASRSRqtGetGoods); |
| | | } |
| | | else if (_taskService.TaskOutboundTypes.Contains(task.TaskType) && ASRSPutAGoodsDone) |
| | | { |
| | | |
| | | WriteDebug($"{commonStackerCrane.DeviceName}请æ±åè´§", $"WCSå
许åè´§,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | } |
| | | else |
| | | { |
| | | Dt_ShuttleCar? shuttleCar1 = _shuttleCarService.QueryCode(task.ShuttleCarCode); |
| | | if (shuttleCar1 != null) |
| | | if (task.TaskType == TaskRelocationTypeEnum.Relocation.ObjToInt()) |
| | | { |
| | | ShuttleCar shuttleCar = Storage.Devices.FirstOrDefault(x => x.DeviceName == shuttleCar1.ShuttleCarName) as ShuttleCar; |
| | | var shuttleCar2 = _shuttleCarService.QueryNoCode(task.ShuttleCarCode); |
| | | ShuttleCar shuttleCarA = Storage.Devices.FirstOrDefault(x => x.DeviceCode == shuttleCar2.ShuttleCarCode) as ShuttleCar; |
| | | ShuttleCar shuttleCarB = Storage.Devices.FirstOrDefault(x => x.DeviceCode == task.ShuttleCarCode) as ShuttleCar; |
| | | |
| | | #region åè´§ |
| | | if (ASRSRqtGetGoods) |
| | | { |
| | | shuttleCarA.SetValue(ShuttleCarDBName.ASRSRqtGetGoods, ASRSRqtGetGoods, shuttleCarA.DeviceCode); |
| | | |
| | | var AGVAlwASRSGetGoods = shuttleCarA.GetValue<ShuttleCarDBName, bool>(ShuttleCarDBName.AGVAlwASRSGetGoods, shuttleCarA.DeviceCode);//å
许åè´§ |
| | | if (AGVAlwASRSGetGoods) |
| | | commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSGetGoods, AGVAlwASRSGetGoods); |
| | | |
| | | WriteDebug($"{commonStackerCrane.DeviceName}请æ±åè´§", $"ã{shuttleCarA.DeviceName}ã{(AGVAlwASRSGetGoods ? "å
许" : "ä¸å
许")}åè´§,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | } |
| | | #endregion |
| | | |
| | | #region åè´§å®æ |
| | | if (ASRSGetGoodsDone) |
| | | { |
| | | shuttleCarA.SetValue(ShuttleCarDBName.ASRSGetGoodsDone, ASRSGetGoodsDone, shuttleCarA.DeviceCode); |
| | | WriteDebug($"{commonStackerCrane.DeviceName}åè´§å®æ", $"ã{shuttleCarA.DeviceName}ã,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | } |
| | | #endregion |
| | | |
| | | #region æ¾è´§ |
| | | if (ASRSRqtPutGoods) |
| | | { |
| | | shuttleCarB.SetValue(ShuttleCarDBName.ASRSRqtPutGoods, ASRSRqtPutGoods, shuttleCarB.DeviceCode); |
| | | |
| | | var AGVAlwASRSPuttGoods = shuttleCarB.GetValue<ShuttleCarDBName, bool>(ShuttleCarDBName.AGVAlwASRSPuttGoods, shuttleCarB.DeviceCode);//å
许æ¾è´§ |
| | | if (AGVAlwASRSPuttGoods) |
| | | commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSPuttGoods, AGVAlwASRSPuttGoods); |
| | | |
| | | WriteDebug($"{commonStackerCrane.DeviceName}è¯·æ±æ¾è´§", $"ã{shuttleCarB.DeviceName}ã{(AGVAlwASRSPuttGoods ? "å
许" : "ä¸å
许")}æ¾è´§,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | } |
| | | #endregion |
| | | |
| | | #region æ¾è´§å®æ |
| | | if (ASRSPutAGoodsDone) |
| | | { |
| | | shuttleCarB.SetValue(ShuttleCarDBName.ASRSPutAGoodsDone, ASRSPutAGoodsDone, shuttleCarB.DeviceCode); |
| | | WriteDebug($"{commonStackerCrane.DeviceName}æ¾è´§å®æ", $"ã{shuttleCarA.DeviceName}ã,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | else |
| | | { |
| | | ShuttleCar shuttleCar = Storage.Devices.FirstOrDefault(x => x.DeviceCode == task.ShuttleCarCode) as ShuttleCar; |
| | | if (shuttleCar != null) |
| | | { |
| | | shuttleCar.SetValue(ShuttleCarDBName.ASRSRqtGetAGV, ASRSRqtGetAGV, shuttleCar.DeviceCode); |
| | | |
| | | shuttleCar.SetValue(ShuttleCarDBName.ASRSRqtGetGoods, ASRSRqtGetGoods, shuttleCar.DeviceCode); |
| | | |
| | | shuttleCar.SetValue(ShuttleCarDBName.ASRSRqtPutGoods, ASRSRqtPutGoods, shuttleCar.DeviceCode); |
| | | |
| | | var AGVAlwASRSGetAGV = shuttleCar.GetValue<ShuttleCarDBName, bool>(ShuttleCarDBName.AGVAlwASRSGetAGV, shuttleCar.DeviceCode);//å
许å车 |
| | | commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSGetAGV, AGVAlwASRSGetAGV); |
| | | |
| | | if (ASRSRqtGetAGV) |
| | | WriteDebug($"{commonStackerCrane.DeviceName}请æ±å车", $"ã{shuttleCar.DeviceName}ã{(AGVAlwASRSGetAGV ? "å
许" : "ä¸å
许")}å车,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | |
| | | var AGVAlwASRSGetGoods = shuttleCar.GetValue<ShuttleCarDBName, bool>(ShuttleCarDBName.AGVAlwASRSGetGoods, shuttleCar.DeviceCode);//å
许åè´§ |
| | | commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSGetGoods, AGVAlwASRSGetGoods); |
| | | |
| | | if (ASRSRqtGetGoods) |
| | | WriteDebug($"{commonStackerCrane.DeviceName}请æ±åè´§", $"ã{shuttleCar.DeviceName}ã{(AGVAlwASRSGetGoods ? "å
许" : "ä¸å
许")}åè´§,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | |
| | | var AGVAlwASRSPuttGoods = shuttleCar.GetValue<ShuttleCarDBName, bool>(ShuttleCarDBName.AGVAlwASRSPuttGoods, shuttleCar.DeviceCode);//å
许æ¾è´§ |
| | | commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSPuttGoods, AGVAlwASRSPuttGoods); |
| | | |
| | | if (ASRSRqtPutGoods) |
| | | WriteDebug($"{commonStackerCrane.DeviceName}è¯·æ±æ¾è´§", $"ã{shuttleCar.DeviceName}ã{(AGVAlwASRSPuttGoods ? "å
许" : "ä¸å
许")}æ¾è´§,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | |
| | | commonStackerCrane.SetValue(StackerCraneDBName.AGVAlwASRSPutAGV, ASRSRqtPutAGV); |
| | | if (ASRSRqtPutAGV) |
| | | WriteDebug($"{commonStackerCrane.DeviceName}è¯·æ±æ¾è½¦", $"WCSå
许æ¾è½¦,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | |
| | | shuttleCar.SetValue(ShuttleCarDBName.ASRSGetAGVDone, ASRSGetAGVDone, shuttleCar.DeviceCode); |
| | | if (ASRSGetAGVDone) |
| | | WriteDebug($"{commonStackerCrane.DeviceName}åè½¦å®æ", $"ã{shuttleCar.DeviceName}ã,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | |
| | | shuttleCar.SetValue(ShuttleCarDBName.ASRSGetGoodsDone, ASRSGetGoodsDone, shuttleCar.DeviceCode); |
| | | if (ASRSGetGoodsDone) |
| | | WriteDebug($"{commonStackerCrane.DeviceName}åè´§å®æ", $"ã{shuttleCar.DeviceName}ã,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | |
| | | shuttleCar.SetValue(ShuttleCarDBName.ASRSPutAGoodsDone, ASRSPutAGoodsDone, shuttleCar.DeviceCode); |
| | | //shuttleCar.SetValue(ShuttleCarDBName.ASRSPutAGVDone, ASRSPutAGVDone, shuttleCar.DeviceCode); |
| | | if (ASRSPutAGoodsDone) |
| | | WriteDebug($"{commonStackerCrane.DeviceName}æ¾è´§å®æ", $"ã{shuttleCar.DeviceName}ã,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | } |
| | | } |
| | | } |