master
erzhongxmu 2022-11-23 18:25:25 +08:00
parent 7ef5eefdd3
commit c8c3f53ba5
1 changed files with 5 additions and 0 deletions

View File

@ -212,6 +212,11 @@ public class WmsPlcController extends BaseController {
System.out.println("connect success"); System.out.println("connect success");
}else{ }else{
System.out.println("connect error"); System.out.println("connect error");
try{
siemensS7Net.ConnectClose();
}catch (Exception e){
e.printStackTrace();
}
} }
String comCons = wmsPlc.getComCons(); String comCons = wmsPlc.getComCons();
String query01 = wmsPlc.getQuery01(); String query01 = wmsPlc.getQuery01();