1
zhang
2025-07-21 435f01237b240dbb3316317b33f1c266004afeac
1
3个文件已修改
130 ■■■■■ 已修改文件
src/main/java/com/zy/core/thread/SiemensDevpThread.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 74 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/console.map.js 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -56,12 +56,20 @@
        add(300);add(301);add(302);add(303);add(304);
    }};
    public static final ArrayList<Integer> staNos3 = new ArrayList<Integer>() {{
        add(311);add(312);add(313);add(314);add(315);
    }};
    public static final ArrayList<Integer> barcode1 = new ArrayList<Integer>() {{
        add(1); add(2);
    }};
    public static final ArrayList<Integer> barcode2 = new ArrayList<Integer>() {{
       add(3);
    }};
    public static final ArrayList<Integer> barcode3 = new ArrayList<Integer>() {{
        add(4);
    }};
    private Integer count=0;
@@ -89,6 +97,8 @@
                return staNos1;
            case 2:
                return staNos2;
            case 3:
                return staNos3;
            default:
                throw new CoolException("服务器异常");
        }
@@ -163,6 +173,8 @@
                return barcode1;
            case 2:
                return barcode2;
            case 3:
                return barcode3;
            default:
                throw new CoolException("获取条码扫描器失败!");
        }
src/main/resources/application.yml
@@ -8,7 +8,7 @@
    name: @pom.build.finalName@
  datasource:
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://172.17.20.240:1433;databasename=sxjzasrs
    url: jdbc:sqlserver://127.0.0.1:1433;databasename=sxjzasrs
    username: sa
    password: sa@123
  mvc:
@@ -116,6 +116,30 @@
      row: 6
      bay: 0
      lev: 1
  crn[3]:
    id: 4
    ip: 10.10.10.40
    port: 0
    rack: 0
    slot: 0
    # 偏移量,当堆垛机站点列号=1时,偏移量=2
    offset: 2
    demo: false
    # 堆垛机入库站点
    crnInStn[0]:
      devpPlcId: ${wcs-slave.devp[2].id}
      staNo: 314
      row: 9
      bay: 0
      lev: 1
    # 堆垛机出库站点
    crnOutStn[0]:
      devpPlcId: ${wcs-slave.devp[2].id}
      staNo: 315
      row: 8
      bay: 0
      lev: 1
  # 输送线1
  devp[0]:
    id: 1
@@ -193,6 +217,35 @@
    outSta[0]:
      staNo: 301
      led: ${wcs-slave.led[2].id}
  # 输送线2
  devp[2]:
    id: 3
    ip: 10.10.10.140
    port: 0
    rack: 0
    slot: 0
    # 入库口1
    inSta[0]:
      staNo: 311
      barcode: ${wcs-slave.barcode[3].id}
      backSta: 312
      led: ${wcs-slave.led[5].id}
    # 空板入库口1
    emptyInSta[0]:
      staNo: 311
      barcode: ${wcs-slave.barcode[3].id}
      led: ${wcs-slave.led[5].id}
      backSta: 312
    # 拣料入库口1
    pickSta[0]:
      staNo: 311
      barcode: ${wcs-slave.barcode[3].id}
      led: ${wcs-slave.led[5].id}
    # 出库口1
    outSta[1]:
      staNo: 314
      led: ${wcs-slave.led[4].id}
  # 条码扫描仪1
  barcode[0]:
    id: 1
@@ -202,6 +255,9 @@
  # 条码扫描仪3
  barcode[2]:
    id: 3
  # 条码扫描仪3
  barcode[3]:
    id: 4
   # LED1
  led[0]:
    id: 1
@@ -229,4 +285,18 @@
    ip: 10.10.10.109
    port: 5005
    devpPlcId: ${wcs-slave.devp[1].id}
    staArr: 304
    staArr: 304
  # LED3
  led[4]:
    id: 5
    ip: 10.10.10.110
    port: 5005
    devpPlcId: ${wcs-slave.devp[2].id}
    staArr: 311
  # LED4
  led[5]:
    id: 6
    ip: 10.10.10.111
    port: 5005
    devpPlcId: ${wcs-slave.devp[2].id}
    staArr: 314
src/main/webapp/static/js/console.map.js
@@ -70,13 +70,37 @@
        "height": 22,
        "minBayNo": 1,
        "maxBayNo": 39
    }, {
        "type": "rack",
        "id": "rack8",
        "top": 195,
        "left": 300,
        "width": 1200,
        "height": 22,
        "minBayNo": 1,
        "maxBayNo": 30
    }, {
        "type": "rack",
        "id": "rack9",
        "top": 142,
        "left": 300,
        "width": 1200,
        "height": 22,
        "minBayNo": 1,
        "maxBayNo": 30
    }],
    "rackDescs": [{
        "type": "rackDescs", "id": "lb_desc16", "text": "#7", "top": 227, "left": 240, "width": 30, "height": 23
    }, {
        "type": "rackDescs", "id": "lb_desc1", "text": "#1", "top": 475, "left": 240, "width": 30, "height": 23
    }, {
        "type": "rackDescs", "id": "lb_desc100", "text": "=>出库=>=>", "top": 475, "left": 1470, "width": 120, "height": 23
        "type": "rackDescs",
        "id": "lb_desc100",
        "text": "=>出库=>=>",
        "top": 475,
        "left": 1470,
        "width": 120,
        "height": 23
    }],
    "crns": [{
        "type": "crane", "id": "crn-1", "text": "1", "top": 423, "left": 300, "width": 93, "height": 22
@@ -90,6 +114,10 @@
        "type": "crane", "id": "crn-3", "text": "3", "top": 256, "left": 300, "width": 93, "height": 22
    }, {
        "type": "track", "id": "lb_track3", "text": "", "top": 263, "left": 300, "width": 1170, "height": 2
    }, {
        "type": "crane", "id": "crn-4", "text": "4", "top": 170, "left": 300, "width": 93, "height": 22
    }, {
        "type": "track", "id": "lb_track4", "text": "", "top": 180, "left": 300, "width": 1170, "height": 2
    }],
    "areas": [{
        "type": "Control_floor",
@@ -137,7 +165,19 @@
                "type": "stn", "id": "site-303", "text": "303", "top": 227, "left": 1550, "width": 70, "height": 20
            }, {
                "type": "stn", "id": "site-304", "text": "304", "top": 227, "left": 1470, "width": 70, "height": 20
            }]
            }
                , {
                    "type": "stn", "id": "site-315", "text": "315", "top": 197, "left": 1470, "width": 70, "height": 20
                }, {
                    "type": "stn", "id": "site-314", "text": "314", "top": 197, "left": 1550, "width": 70, "height": 20
                }, {
                    "type": "stn", "id": "site-313", "text": "313", "top": 169, "left": 1550, "width": 70, "height": 26
                }, {
                    "type": "stn", "id": "site-312", "text": "312", "top": 144, "left": 1550, "width": 70, "height": 20
                }, {
                    "type": "stn", "id": "site-311", "text": "311", "top": 144, "left": 1470, "width": 70, "height": 20
                }
            ]
        }]
    }]
}