| | |
| | | if (IsStationValid(station)) |
| | | { |
| | | var hasPallet = ReadPalletStatus(station); // 获取托盘状态 |
| | | if (hasPallet == 0) // 如果没有托盘 |
| | | if (hasPallet == 16) // 如果没有托盘 |
| | | { |
| | | palletCount++; |
| | | } |
| | |
| | | private int ReadPalletStatus(Dt_StationManager station) |
| | | { |
| | | var commonConveyorLine_GW = Storage.Devices.FirstOrDefault(device => device.DeviceCode == station.stationPLC) as CommonConveyorLine_GW; |
| | | return Convert.ToInt32(commonConveyorLine_GW.ReadValue(ConveyorLineDBName_After.HasPallet, station.stationChildCode)); |
| | | return Convert.ToInt32(commonConveyorLine_GW.ReadValue(ConveyorLineDBName_After.InteractiveSignal, station.stationChildCode)); |
| | | } |
| | | } |
| | | } |