| | |
| | | try |
| | | { |
| | | ConveyorLineTaskCommandR command = conveyorLine.ReadCustomer<ConveyorLineTaskCommandR>(childDeviceCode); |
| | | _cacheService.AddOrUpdate(childDeviceCode, command); |
| | | if (command != null) |
| | | { |
| | | if (childDeviceCode == "1002" && command.Status == (ushort)ConveyorStatus.Wait) |
| | |
| | | { |
| | | task.TaskState = TaskOutStatusEnum.Line_OutFinish.ObjToInt(); |
| | | task.CurrentAddress = childDeviceCode; |
| | | task.NextAddress = router.ChildPosi; |
| | | task.NextAddress = router.NextPosi; |
| | | router.Remark = "鍗犵敤"; |
| | | _routerRepository.UpdateData(router); |
| | | _taskService.UpdateData(task); |