#
lsh
2024-10-10 d3786a4b86e2dac2c183a448d743b9786abb8582
#
3个文件已修改
40 ■■■■ 已修改文件
src/main/java/com/zy/asrs/task/ReportToDismantleTheStackScheduler.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensDevpThread.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/console.map.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/task/ReportToDismantleTheStackScheduler.java
@@ -20,9 +20,8 @@
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute(){//拆垛信息上传
        int[] staNos =new int[]{118,119,120,121};
        int[] staNos =new int[]{118,120,121};
        for (int staNo : staNos){
            if (staNo==119) continue;
            try{
                ReturnT<String> result = reportToDismantleTheStackHandler.start(staNo);
                if (result.getCode()==200){
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);
                }
@@ -420,7 +447,7 @@
            case 118:
                index=0;
                break;
            case 119:
            case 171:
                index=1;
                break;
            case 120:
src/main/webapp/static/js/console.map.js
@@ -731,14 +731,6 @@
                "height": 20
            }, {
                "type": "stn",
                "id": "site-119",
                "text": "119",
                "top": 355,
                "left": 368,
                "width": 100,
                "height": 20
            }, {
                "type": "stn",
                "id": "site-120",
                "text": "120",
                "top": 421,