#
luxiaotao1123
2020-08-15 8a60b08df02d739ff9feb392730572002aa2e9f8
src/main/java/com/zy/core/thread/DevpThread.java
@@ -31,12 +31,12 @@
    public DevpThread(Slave slave) {
        this.slave = slave;
        connect();
    }
    @Override
    @SuppressWarnings("InfiniteLoopStatement")
    public void run() {
        connect();
        while (true) {
            try {
                int step = 1;
@@ -142,10 +142,10 @@
        DevpThread devpThread = new DevpThread(slave);
        devpThread.read();
        // 写
        StaProtocol staProtocol = devpThread.getStation().get(2);
        staProtocol.setWorkNo((short) 0);
        staProtocol.setStaNo((short) 1001);
        staProtocol.setAutoing(true);
        StaProtocol staProtocol = devpThread.getStation().get(1);
        staProtocol.setWorkNo((short) 222);
        staProtocol.setStaNo((short) 2);
        staProtocol.setAutoing(false);
        staProtocol.setEmptyMk(true);
        staProtocol.setInEnable(true);
        devpThread.write(staProtocol);