| | |
| | | //条码 |
| | | private String barcode; |
| | | |
| | | //重量 |
| | | private Double weight; |
| | | |
| | | //任务优先级 |
| | | private Integer taskPri; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | // 称重 |
| | | 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; |
| | | } |
| | | |
| | |
| | | taskParam.setLocNo(dto.getLocNo()); |
| | | taskParam.setTaskPri(dto.getTaskPri()); |
| | | taskParam.setBarcode(stationProtocol.getBarcode()); |
| | | taskParam.setWeight(stationProtocol.getWeight()); |
| | | WrkMast wrkMast = commonService.createInTask(taskParam); |
| | | |
| | | StationCommand command = stationThread.getMoveCommand(wrkMast.getWrkNo(), stationId, stationId, 0); |