自动化立体仓库 - WCS系统
#
luxiaotao1123
2020-08-14 3008cbf144bd6f4cf80dcef9cf8246a31c3d8bc1
src/main/java/com/zy/core/thread/DevpThread.java
@@ -56,7 +56,7 @@
                    default:
                        break;
                }
                Thread.sleep(500);
                Thread.sleep(400);
            } catch (Exception e) {
                e.printStackTrace();
            }
@@ -75,7 +75,7 @@
            result = true;
            log.info("输送线plc连接成功 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
        } else {
            log.info("输送线plc连接失败!!! ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
            log.error("输送线plc连接失败!!! ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
        }
        siemensS7Net.ConnectClose();
        return result;
@@ -143,9 +143,9 @@
        devpThread.read();
        // 写
        StaProtocol staProtocol = devpThread.getStation().get(1);
        staProtocol.setWorkNo((short) 888);
        staProtocol.setStaNo((short) 1001);
        staProtocol.setAutoing(true);
        staProtocol.setWorkNo((short) 222);
        staProtocol.setStaNo((short) 2);
        staProtocol.setAutoing(false);
        staProtocol.setEmptyMk(true);
        staProtocol.setInEnable(true);
        devpThread.write(staProtocol);