| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!-- ====================================================================== --> |
| | | <!-- --> |
| | | <!-- Generated by Maven Help Plugin on 2024-04-19T08:49:26+08:00 --> |
| | | <!-- Generated by Maven Help Plugin on 2024-05-06T07:58:37+08:00 --> |
| | | <!-- See: http://maven.apache.org/plugins/maven-help-plugin/ --> |
| | | <!-- --> |
| | | <!-- ====================================================================== --> |
| | |
| | | if (S7control.getinstance().CheckConnected() == true) {
|
| | |
|
| | | // 铝框线交互
|
| | | // if (S7controlLK.getinstance().CheckConnected() == true) {
|
| | | if (S7controlLK.getinstance().CheckConnected() == true) {
|
| | | // E02玻璃id
|
| | | String E02id = S7controlLK.getinstance().readStrings("DB17.40");
|
| | | // log.info("E02id"+E02id);
|
| | |
| | | // log.info("frameno:" + E01id);
|
| | | List<Short> liststates = S7controlLK.getinstance().ReadWord("DB17.38", 1);
|
| | | // log.info("frameflip:" + liststates);
|
| | | // }
|
| | | }
|
| | |
|
| | | // 获取当前扫码方式
|
| | | List<Boolean> Scanningmethods = S7control.getinstance().ReadBits("DB101.11.4", 1);
|
| | |
| | | public static Connection getConn() throws SQLException { |
| | | Connection conn = null; |
| | | // conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/canadames?serverTimezone=GMT%2B8&characterEncoding=utf-8", "root", "beibo.123/"); |
| | | conn = DriverManager.getConnection("jdbc:mysql://192.168.102.9:3306/production?serverTimezone=GMT%2B8&characterEncoding=utf-8&usessl=false", "northglass", "n0rthgla55"); |
| | | conn = DriverManager.getConnection("jdbc:mysql://192.168.102.9:3306/production?serverTimezone=GMT%2B8&characterEncoding=utf-8&useSSL=false", "northglass", "n0rthgla55"); |
| | | return conn; |
| | | } |
| | | |