| | |
| | | { |
| | | ConveyorLineInFinish(conveyorLine, command, childDeviceCode); |
| | | } |
| | | //else if (childDeviceCode == "1005" && command.Status == (ushort)ConveyorStatus.Stored) |
| | | //{ |
| | | // Dt_Task task = _taskService.QueryConveyorLineTaskNum(conveyorLine.DeviceCode, childDeviceCode, command.TaskNum); |
| | | // if (task != null) |
| | | // { |
| | | // task.TaskState = TaskOutStatusEnum.Line_OutExecuting.ObjToInt(); |
| | | // _taskService.UpdateData(task); |
| | | // ConveyorLineTaskCommandW taskCommand = _mapper.Map<ConveyorLineTaskCommandW>(task); |
| | | // taskCommand.WriterTrue = (short)command.inRead; |
| | | // conveyorLine.SendCommand(taskCommand, childDeviceCode); |
| | | // } |
| | | //} |
| | | else if (childDeviceCode == "1008" && command.Status == (ushort)ConveyorStatus.Stored) |
| | | { |
| | | ConveyorLineOutFinish(conveyorLine, command, childDeviceCode); |
| | | Dt_Task task = _taskService.QueryExecutingConveyorLineTask(command.TaskNum, childDeviceCode); |
| | | if (task != null) |
| | | { |
| | | List<Dt_Router> routers = _routerRepository.QueryData(x => x.StartPosi == task.NextAddress && x.ChildPosiDeviceCode == "AGV" && x.Remark == "æªå ç¨"); |
| | | if (routers.Count > 0) |
| | | { |
| | | |
| | | } |
| | | task.TaskState = TaskOutStatusEnum.Line_OutFinish.ObjToInt(); |
| | | _taskService.UpdateData(task); |
| | | } |
| | | } |
| | | } |
| | | #region MyRegion |