#
lsh
2024-10-11 706cd5e2402dd2b41b306f1dbc6848447dc406c7
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -58,6 +58,8 @@
        add(144);add(145);add(146);add(147);
        add(148);add(149);add(150);add(151);
        add(152);add(153);
        add(170);
        add(171);
    }};
    public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{
        add(200);add(201);add(202);add(203);
@@ -206,6 +208,28 @@
        if (result.IsSuccess) {
            for (int i = 0; i < staNoSize; i++) {
                Integer siteId = staNos.get(i); // 站点编号
                if (siteId==119){
                    StaProtocol staProtocol = station.get(siteId);
                    if (null == staProtocol) {
                        staProtocol = new StaProtocol();
                        staProtocol.setSiteId(siteId);
                        station.put(siteId, staProtocol);
                    }
                    staProtocol.setWorkNo(0);     // 工作号
                    staProtocol.setStaNo(0);   // 目标站
                    boolean[] status = siemensS7Net.getByteTransform().TransBool(result.Content, i*8 + 6, 2);
                    staProtocol.setAutoing(false);  // 自动
                    staProtocol.setLoading(status[1]);  // 有物
                    staProtocol.setInEnable(status[2]); // 可入
                    staProtocol.setOutEnable(status[3]);// 可出
                    staProtocol.setEmptyMk(status[4]);  // 空板信号
                    staProtocol.setFullPlt(status[5]);  // 满托盘
                    staProtocol.setHigh(status[6]);     // 高库位
                    staProtocol.setLow(status[7]);      // 低库位
                    continue;
                }
                StaProtocol staProtocol = station.get(siteId);
                if (null == staProtocol) {
                    staProtocol = new StaProtocol();
@@ -225,7 +249,10 @@
                staProtocol.setFullPlt(status[5]);  // 满托盘
                staProtocol.setHigh(status[6]);     // 高库位
                staProtocol.setLow(status[7]);      // 低库位
                if (siteId==118){
                    staProtocol.setAutoing(false);  // 自动
                }
                if (!staProtocol.isPakMk() && !staProtocol.isLoading()) {
                    staProtocol.setPakMk(true);
                }
@@ -329,7 +356,7 @@
                    staProtocol.setSiteId(siteId);
                    station.put(siteId, staProtocol);
                }
                short loadingSuper = siemensS7Net.getByteTransform().TransInt16(result.Content, i * 2);
                short loadingSuper = siemensS7Net.getByteTransform().TransInt16(resultStaSuper.Content, i * 2);
                staProtocol.setLoadingSuper(loadingSuper==0);   // 目标站
            }
        }
@@ -420,7 +447,7 @@
            case 118:
                index=0;
                break;
            case 119:
            case 171:
                index=1;
                break;
            case 120:
@@ -487,7 +514,7 @@
            case 118:
                index=0;
                break;
            case 119:
            case 171:
                index=1;
                break;
            case 120: