| | |
| | | # url: jdbc:sqlserver://47.97.1.152:51433;databasename=xgmasrs |
| | | # username: sa |
| | | # password: Zoneyung@zy56$ |
| | | url: jdbc:sqlserver://192.168.4.15:1433;databasename=xgmasrs |
| | | url: jdbc:sqlserver://192.168.4.15:1433;databasename=klsasrs2 |
| | | # url: jdbc:sqlserver://localhost:1433;databasename=xgmasrs |
| | | username: sa |
| | | password: sa@123 |
| | |
| | | enable: false |
| | | |
| | | wms: |
| | | url: localhost:8080/xgmwms |
| | | # url: localhost:8082/xgmwms |
| | | url: localhost:8080/klswms |
| | | |
| | | #堆垛机没有执行中任务,输送有入库任务,叫回原点 |
| | | crnBackHp: |
| | |
| | | # 堆垛机入库站点 |
| | | crnInStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 100 |
| | | row: 2 |
| | | staNo: 106 |
| | | row: 3 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机出库站点 |
| | | crnOutStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 101 |
| | | row: 3 |
| | | row: 2 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机2 |
| | |
| | | # 堆垛机入库站点 |
| | | crnInStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 102 |
| | | row: 6 |
| | | staNo: 120 |
| | | row: 7 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机出库站点 |
| | | crnOutStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 103 |
| | | row: 7 |
| | | staNo: 113 |
| | | row: 6 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机3 |
| | |
| | | # 堆垛机入库站点 |
| | | crnInStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 104 |
| | | row: 10 |
| | | staNo: 133 |
| | | row: 11 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机出库站点 |
| | | crnOutStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 105 |
| | | staNo: 10 |
| | | row: 11 |
| | | bay: 1 |
| | | lev: 1 |
| | |
| | | slot: 0 |
| | | # 入库口1 |
| | | inSta[0]: |
| | | staNo: 176 |
| | | staNo: 103 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | # 入库口2 |
| | | inSta[1]: |
| | | staNo: 180 |
| | | barcode: ${wcs-slave.barcode[1].id} |
| | | # 空板入库口1 |
| | | emptyInSta[0]: |
| | | staNo: 176 |
| | | staNo: 103 |
| | | # 出库口1 |
| | | outSta[0]: |
| | | staNo: 173 |
| | | # 出库口2 |
| | | outSta[1]: |
| | | staNo: 182 |
| | | # 拣料入库口 |
| | | staNo: 110 |
| | | # 拣料入库口1 |
| | | pickSta[0]: |
| | | staNo: 176 |
| | | staNo: 117 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | # 拣料入库口2 |
| | | pickSta[1]: |
| | | staNo: 124 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | # 拣料入库口3 |
| | | pickSta[2]: |
| | | staNo: 131 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | # 拣料入库口4 |
| | | pickSta[3]: |
| | | staNo: 136 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | # 条码扫描仪 |
| | | barcode[0]: |
| | | id: 1 |
| | | ip: 10.10.10.52 |
| | | port: 51236 |
| | | barcode[1]: |
| | | id: 2 |
| | | ip: 10.10.10.53 |
| | | port: 51236 |
| | | # LED1 |
| | | led[0]: |
| | |
| | | ip: 10.10.10.60 |
| | | port: 5005 |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staArr: 172 |
| | | staArr: 110 |
| | | # LED2 |
| | | led[1]: |
| | | id: 2 |
| | | ip: 10.10.10.61 |
| | | port: 5005 |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staArr: 182 |
| | | staArr: 117 |
| | | # LED3 |
| | | led[2]: |
| | | id: 3 |
| | | ip: 10.10.10.61 |
| | | port: 5005 |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staArr: 124 |
| | | # LED4 |
| | | led[3]: |
| | | id: 4 |
| | | ip: 10.10.10.61 |
| | | port: 5005 |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staArr: 131 |
| | | # LED5 |
| | | led[4]: |
| | | id: 5 |
| | | ip: 10.10.10.61 |
| | | port: 5005 |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staArr: 136 |
| | |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | console.log(res) |
| | | // console.log(res) |
| | | if (res.code === 200) { |
| | | var crns = res.data; |
| | | for (var i = 0; i < crns.length; i++) { |
| | |
| | | |
| | | // 堆垛机偏移动画 |
| | | function crnAnimate(id, leftVal) { |
| | | console.log(crn1Position) |
| | | // console.log(crn1Position) |
| | | switch (id) { |
| | | case 1: |
| | | $("#crn-1").animate({left: leftVal + 'px'}, 1000); |
| | |
| | | "hpPosition": 1, |
| | | "minBayNo": 2, |
| | | "floors": 1, |
| | | "racks": [ |
| | | { |
| | | "racks": [{ |
| | | "type": "rack", |
| | | "id": "rack12", |
| | | "top": 646, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 52 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack11", |
| | | "top": 613, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 52 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack10", |
| | | "top": 516, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 52 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack9", |
| | | "top": 483, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 52 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack8", |
| | | "top": 451, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 52 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack7", |
| | | "top": 418, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 52 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack6", |
| | | "top": 323, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 52 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack5", |
| | | "top": 290, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 52 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack3", |
| | | "top": 225, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 60 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack1", |
| | | "top": 97, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 60 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack4", |
| | | "top": 257, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 60 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rack", |
| | | "id": "rack2", |
| | | "top": 129, |
| | |
| | | "height": 30, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 60 |
| | | } |
| | | ], |
| | | "rackDescs": [ |
| | | { |
| | | }], |
| | | "rackDescs": [{ |
| | | "type": "rackDescs", |
| | | "id": "lb_desc12", |
| | | "text": "#12", |
| | |
| | | "left": 260, |
| | | "width": 47, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc11", |
| | | "text": "#11", |
| | |
| | | "left": 260, |
| | | "width": 44, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc10", |
| | | "text": "#10", |
| | |
| | | "left": 257, |
| | | "width": 49, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc9", |
| | | "text": "#9", |
| | |
| | | "left": 257, |
| | | "width": 38, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc8", |
| | | "text": "#8", |
| | |
| | | "left": 260, |
| | | "width": 39, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc7", |
| | | "text": "#7", |
| | |
| | | "left": 260, |
| | | "width": 37, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc6", |
| | | "text": "#6", |
| | |
| | | "left": 260, |
| | | "width": 38, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc5", |
| | | "text": "#5", |
| | |
| | | "left": 261, |
| | | "width": 38, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc4", |
| | | "text": "#4", |
| | |
| | | "left": 145, |
| | | "width": 38, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc3", |
| | | "text": "#3", |
| | |
| | | "left": 145, |
| | | "width": 38, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc2", |
| | | "text": "#2", |
| | |
| | | "left": 145, |
| | | "width": 38, |
| | | "height": 27 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "rackDescs", |
| | | "id": "lb_desc1", |
| | | "text": "#1", |
| | |
| | | "left": 145, |
| | | "width": 35, |
| | | "height": 27 |
| | | } |
| | | ], |
| | | "crns": [ |
| | | { |
| | | "type": "crane", |
| | | "id": "crn-1", |
| | | "text": "1", |
| | | "top": 184, |
| | | "left": 777, |
| | | "width": 93, |
| | | "height": 22 |
| | | }, |
| | | { |
| | | "type": "crane", |
| | | "id": "crn-2", |
| | | "text": "2", |
| | | "top": 378, |
| | | "left": 777, |
| | | "width": 93, |
| | | "height": 22 |
| | | }, |
| | | { |
| | | "type": "crane", |
| | | "id": "crn-3", |
| | | "text": "3", |
| | | "top": 572, |
| | | "left": 777, |
| | | "width": 93, |
| | | "height": 22 |
| | | }, |
| | | { |
| | | }], |
| | | "crns": [{ |
| | | "type": "track", |
| | | "id": "lb_track2", |
| | | "text": "", |
| | | "top": 390, |
| | | "left": 325, |
| | | "width": 1010, |
| | | "top": 387, |
| | | "left": 146, |
| | | "width": 1112, |
| | | "height": 2 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "track", |
| | | "id": "lb_track3", |
| | | "text": "", |
| | | "top": 584, |
| | | "left": 325, |
| | | "width": 1010, |
| | | "top": 582, |
| | | "left": 146, |
| | | "width": 1112, |
| | | "height": 2 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "track", |
| | | "id": "lb_track1", |
| | | "text": "", |
| | | "top": 197, |
| | | "left": 188, |
| | | "width": 1148, |
| | | "top": 195, |
| | | "left": 146, |
| | | "width": 1112, |
| | | "height": 2 |
| | | } |
| | | ], |
| | | "stns": [ |
| | | { |
| | | }], |
| | | "stns": [{ |
| | | "type": "stn", |
| | | "id": "site-132", |
| | | "text": "132", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 63 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-126", |
| | | "text": "126", |
| | |
| | | "left": 1461, |
| | | "width": 60, |
| | | "height": 63 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-125", |
| | | "text": "125", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 63 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-119", |
| | | "text": "119", |
| | |
| | | "left": 1461, |
| | | "width": 60, |
| | | "height": 63 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-118", |
| | | "text": "118", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 63 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-136", |
| | | "text": "136", |
| | |
| | | "left": 1461, |
| | | "width": 120, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-135", |
| | | "text": "135", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-134", |
| | | "text": "134", |
| | |
| | | "left": 1337, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-133", |
| | | "text": "133", |
| | |
| | | "left": 1215, |
| | | "width": 120, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-130", |
| | | "text": "130", |
| | |
| | | "left": 1461, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-129", |
| | | "text": "129", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-128", |
| | | "text": "128", |
| | |
| | | "left": 1337, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-127", |
| | | "text": "127", |
| | |
| | | "left": 1215, |
| | | "width": 120, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-131", |
| | | "text": "131", |
| | |
| | | "left": 1522, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-123", |
| | | "text": "123", |
| | |
| | | "left": 1461, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-122", |
| | | "text": "122", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-121", |
| | | "text": "121", |
| | |
| | | "left": 1337, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-120", |
| | | "text": "120", |
| | |
| | | "left": 1215, |
| | | "width": 120, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-124", |
| | | "text": "124", |
| | |
| | | "left": 1522, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-112", |
| | | "text": "112", |
| | |
| | | "left": 1461, |
| | | "width": 60, |
| | | "height": 63 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-111", |
| | | "text": "111", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 63 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-116", |
| | | "text": "116", |
| | |
| | | "left": 1461, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-115", |
| | | "text": "115", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-114", |
| | | "text": "114", |
| | |
| | | "left": 1337, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-113", |
| | | "text": "113", |
| | |
| | | "left": 1215, |
| | | "width": 120, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-117", |
| | | "text": "117", |
| | |
| | | "left": 1522, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-105", |
| | | "text": "105", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 63 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-109", |
| | | "text": "109", |
| | |
| | | "left": 1461, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-108", |
| | | "text": "108", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-107", |
| | | "text": "107", |
| | |
| | | "left": 1337, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-106", |
| | | "text": "106", |
| | |
| | | "left": 1215, |
| | | "width": 120, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-104", |
| | | "text": "104", |
| | |
| | | "left": 1461, |
| | | "width": 120, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-103", |
| | | "text": "103", |
| | |
| | | "left": 1399, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-102", |
| | | "text": "102", |
| | |
| | | "left": 1337, |
| | | "width": 60, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-101", |
| | | "text": "101", |
| | |
| | | "left": 1215, |
| | | "width": 120, |
| | | "height": 30 |
| | | }, |
| | | { |
| | | }, { |
| | | "type": "stn", |
| | | "id": "site-110", |
| | | "text": "110", |
| | |
| | | "left": 1522, |
| | | "width": 60, |
| | | "height": 30 |
| | | } |
| | | ] |
| | | }] |
| | | } |
| | | |
| | | // 库位图 |
| | | function getMap() { |
| | | let mapName = "<div class='mapName'>" + data.mapName + "</div>" |