| | |
| | | using Masuit.Tools; |
| | | using WIDESEAWCS_Communicator; |
| | | using WIDESEAWCS_QuartzJob; |
| | | |
| | | namespace WIDESEAWCS_Tasks |
| | |
| | | var device = Storage.Devices.Where(d => d.DeviceName == "A区_一注输送线").FirstOrDefault(); |
| | | if (!device.IsNullOrEmpty() && device != null && device.Communicator.IsConnected) |
| | | { |
| | | var trayBarcode = device.Communicator.Read<string>(prefix); |
| | | var trayBarcode = device.Communicator.Read<string>(prefix).Trim().Replace("\u0018", "").Replace("\u0006", ""); |
| | | if(trayBarcode == "NoRead") |
| | | { |
| | | trayBarcode = ""; |
| | | } |
| | | return trayBarcode; |
| | | } |
| | | return ""; |