ZengTao
2024-03-18 e76f203f76b934d2f49dcea89649b2f616878056
springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -140,32 +140,14 @@
                // String PlcRequest = "1";
                // double width = 0;
                // double height = 0;
                String PlcRequest = "1";
                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("未找到符合的数据");
                //     }
                // }
                //匹配
                if ("1".equals(PlcRequest)) {
                    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));