| | |
| | | private static final int[][] execute = new int[][]{{1,4},{2,4},{3,4},{4,4},{5,6},{6,6},{7,4},{8,4},{9,3},{10,4},{11,4}}; |
| | | |
| | | private static final Integer jarMaxLoc = 7; |
| | | private static final Float jarTemperature = 80F; |
| | | private static final Float jarTemperature = 50F; |
| | | @Autowired |
| | | private CommonService commonService; |
| | | @Autowired |
| | |
| | | if (!Cools.isEmpty(s) && s.startsWith("=")) { |
| | | String substring = s.substring(1); |
| | | String s1 = new StringBuilder(substring).reverse().toString(); |
| | | scale = Double.parseDouble(s1); |
| | | scale = Double.parseDouble(s1);//50.8 67.6 |
| | | if (slave.getId()>3){ |
| | | scale = scale - 50.8; |
| | | } else { |
| | | scale = scale - 67.6; |
| | | } |
| | | |
| | | //将称重重量写入设备基础数据中的gross_wt字段 |
| | | if(scale > 20) { |