| | |
| | | Dt_Task? newTask = _taskService.UpdatePosition(task.TaskNum, task.CurrentAddress); |
| | | if (newTask != null) |
| | | { |
| | | |
| | | //ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(newTask); |
| | | //taskCommand.InteractiveSignal = command.InteractiveSignal; |
| | | var next = newTask.NextAddress; |
| | |
| | | conveyorLine.SendCommand(taskCommand, childDeviceCode); |
| | | |
| | | ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); |
| | | |
| | | _taskService.UpdateData(newTask); |
| | | } |
| | | } |
| | |
| | | // 如果更新后的任务对象不为空 |
| | | if (newTask != null) |
| | | { |
| | | //_taskService.UpdateData(newTask); |
| | | // 获取下一目标地址 |
| | | var next = newTask.NextAddress; |
| | | |
| | |
| | | |
| | | // 标记输送线发送任务完成 |
| | | ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); |
| | | |
| | | _taskService.UpdateData(newTask); |
| | | } |
| | | } |