| | |
| | | var structs = BitConverter.GetBytes(InteractiveSignal).Reverse().ToArray().ToBoolArray(); |
| | | if (structs[0]) |
| | | { |
| | | IsWrite = conveyorLine.Communicator.WriteNoRead("DB100.0", 0); |
| | | IsWrite = conveyorLine.Communicator.WriteNoRead("DB100.0", Convert.ToInt32(0)); |
| | | Thread.Sleep(1000); |
| | | IsWrite = conveyorLine.Communicator.WriteNoRead("DB100.0", 9999); |
| | | IsWrite = conveyorLine.Communicator.WriteNoRead("DB100.0", Convert.ToInt32(9999)); |
| | | if (!IsWrite) |
| | | { |
| | | return Task.CompletedTask; |
| | |
| | | foreach (var item in taskNew.OrderBy(x => x.Grade).ToList()) |
| | | { |
| | | AGVSendTask(item); |
| | | _taskService.UpdateTaskStatusToNext(item.TaskNum); |
| | | } |
| | | } |
| | | else |
| | |
| | | foreach (var item in taskNew.OrderByDescending(x => x.Grade).ToList()) |
| | | { |
| | | AGVSendTask(item); |
| | | _taskService.UpdateTaskStatusToNext(item.TaskNum); |
| | | } |
| | | } |
| | | } |