| | |
| | | ConsoleHelper.WriteErrorLine($"当前托盘存在任务:【{command.ConveyorLineBarcode}】"); |
| | | |
| | | WriteInfo(conveyorLine.DeviceName, $"当前托盘存在任务{command.ConveyorLineBarcode}"); |
| | | return; |
| | | } |
| | | |
| | | var content = CreateAndSendTask(taskDTO); |
| | |
| | | { |
| | | var taskCommand = MapTaskCommand(task, command); |
| | | |
| | | //conveyorLine.SendCommand(taskCommand, childDeviceCode); |
| | | bool sendFlag = SendCommand(taskCommand, conveyorLine, childDeviceCode); |
| | | if (sendFlag) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | //} |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | if (content.Message != "请求过于频繁,请稍后再试" || content.Message != "无法获取目标地址") |
| | | if (content.Message != "请求过于频繁,请稍后再试" && content.Message != "无法获取目标地址") |
| | | { |
| | | WriteInfo(conveyorLine.DeviceName, content.Message); |
| | | conveyorLine.SetValue(ConveyorLineDBName_After.ConveyorLineTargetAddress, stationManager.stationNGChildCode, childDeviceCode); |