| | |
| | | } |
| | | } |
| | | |
| | | // 称重 |
| | | OperateResultExOne<byte[]> result3 = siemensNet.Read("DB102.0", (short) (barcodeStatusList.size() * 32)); |
| | | if (result3.IsSuccess) { |
| | | for (int i = 0; i < barcodeStatusList.size(); i++) { |
| | | ZyStationStatusEntity barcodeEntity = barcodeStatusList.get(i); |
| | | ZyStationStatusEntity statusEntity = findStatusEntity(barcodeEntity.getStationId()); |
| | | if (statusEntity == null) { |
| | | continue; |
| | | } |
| | | Double weight = siemensNet.getByteTransform().TransDouble(result3.Content, i * 32); |
| | | statusEntity.setWeight(weight); |
| | | } |
| | | } |
| | | return statusList; |
| | | } |
| | | |