| | |
| | | double width = 402; |
| | | double height = 402; |
| | | |
| | | //获取匹配设置 |
| | | //匹配 |
| | | if ("1".equals(PlcRequest)) { |
| | | List<GlassInfo> Result=HomeService.NormalGlassInfo(width, height, "1"); |
| | | if(Result.size()==1){ |
| | | //匹配成功 就一种类型 添加数据 |
| | | GlassInfo GlassInfo=Result.get(0); |
| | | QueueMapper.insert(GlassInfo.getGlassid(),width,height,1); |
| | | System.out.println("匹配成功"); |
| | | //S7control.getinstance().WriteWord(plcmes.getPlcParameter("GaToMES").getAddress(), (short) 1); |
| | | System.out.println(GlassInfo.getGlassid()); |
| | | }else if(Result.size()>1){ |
| | | //匹配失败 匹配到多条符合的数据 添加数据 |
| | | QueueMapper.insert(null,width,height,2); |
| | | System.out.println("匹配失败"); |
| | | } |
| | | else{ |
| | | //匹配失败 未找到符合的数据 添加数据 |
| | | QueueMapper.insert(null,width,height,3); |
| | | System.out.println("未找到符合的数据"); |
| | | } |
| | | |
| | | boolean Result=HomeService.Normal(width, height, "1"); |
| | | } |
| | | // String E01id = new String( S7controlLK.getinstance().ReadByte("DB17.0",16)); |
| | | // String J01id = new String( S7controlLK.getinstance().ReadByte("DB17.22",14)); |