| | |
| | | //var proAddress = conveyorLine.DeviceProDTOs.Where(x => x.DeviceChildCode == stationInfo.stationChildCode).Where(x => x.DeviceProParamName == ConveyorLineDBName_After.Reserve5.ToString()).FirstOrDefault().DeviceProAddress; |
| | | var cache = Convert.ToInt16(conveyorLine.ReadValue(ConveyorLineDBName_After.Reserve5, stationInfo.stationChildCode)); |
| | | ConsoleHelper.WriteColorLine($"已经有{taskNew.Count}个任务,可以放{cache}个空托盘", ConsoleColor.DarkCyan); |
| | | if (taskNew.Count + 1 <= cache) //不存在空框出库任务 则请求WMS出空库 |
| | | if (taskNew.Count + 1 < cache) //不存在空框出库任务 则请求WMS出空库 |
| | | { |
| | | //ConsoleHelper.WriteWarningLine("请求空托盘"); |
| | | if (_taskService.RequestTask(command.ConveyorLineBarcode, stationInfo).Result.Status) |