123
ZY
2025-05-14 ce641926a957d238b202aa0d9dac3b8f15aff153
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -373,7 +373,6 @@
                    log.error("写入工作号命令失败。堆垛机plc编号={},站点数据={},写入次数={}", slave.getId(), JSON.toJSON(staProtocol), writeCount);
                }
            }
            Thread.sleep(200);
            if (!staNoFlag) {
                write1 = siemensS7Net.Write("DB100." + (index * 6 + 4), staProtocol.getStaNo());    // 目标站
                if (write1.IsSuccess) {
@@ -401,6 +400,7 @@
            if (wrkNoFlag && staNoFlag) {
                break;
            }
            Thread.sleep(200);
        } while (writeCount < 20);
        if (!write.IsSuccess) {
@@ -470,10 +470,19 @@
    }
    public static void main(String[] args) {
        int i=1;
        do {
            System.out.println(i);
            i++;
            if (i==4){
                break;
            }
        }while (i<6);
        StaProtocol staProtocol = new StaProtocol();
        staProtocol.setWorkNo((short) 6071);
        short i = (short) 6071;
        System.out.println(staProtocol.getWorkNo().equals(i));
        //short i = (short) 6071;
        //System.out.println(staProtocol.getWorkNo().equals(i));
//        System.out.println(staNos1.indexOf(129));
//        System.out.println(staNos1.size());
//        for (int i = 0; i < staNos1.size(); i++) {