| | |
| | | |
| | | #endregion << 版 本 注 释 >> |
| | | |
| | | using Autofac.Core; |
| | | using AutoMapper; |
| | | using HslCommunication; |
| | | using Microsoft.CodeAnalysis; |
| | |
| | | IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == stationPLC); |
| | | CommonConveyorLine_After conveyorLine1 = (CommonConveyorLine_After)device; |
| | | command = conveyorLine1.ReadCustomer<ConveyorLineTaskCommand_After>(childDeviceCode); |
| | | } |
| | | else |
| | | { |
| | | command = conveyorLine.ReadCustomer<ConveyorLineTaskCommand_After>(childDeviceCode); |
| | | } |
| | | |
| | | if (command == null) continue; |
| | |
| | | |
| | | //ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); |
| | | _taskService.UpdateTaskStatusToNext(task); |
| | | if (task.TaskType == (int)TaskOutboundTypeEnum.OutTray) |
| | | { |
| | | _taskService.UpdateTaskStatusToNext(task); |
| | | } |
| | | //if (task.TaskType == (int)TaskOutboundTypeEnum.OutTray) |
| | | //{ |
| | | // _taskService.UpdateTaskStatusToNext(task); |
| | | //} |
| | | } |
| | | } |
| | | |
| | |
| | | taskCommand.ConveyorLineTargetAddress = Convert.ToInt16(stationManager.stationLocation); |
| | | } |
| | | |
| | | if (stationManager.stationPLC == "1018" && stationManager.stationArea == "Cache") //更新在途数据 |
| | | if ((stationManager.stationPLC == "1018" && stationManager.stationArea == "Cache") || task.TaskType == (int)TaskOutboundTypeEnum.OutTray) //更新在途数据 |
| | | { |
| | | dt_needBarcode needBarcode = _needBarcodeRepository.QueryFirst(x => x.productLine == stationManager.productLine && x.toArea == stationManager.stationChildCode); |
| | | |