From 3b3fc4103e337cb48f51e6ea059505d67f87ca09 Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期三, 07 五月 2025 14:13:35 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/enums/RgvStatusType.java | 7
src/main/webapp/static/wcs/js/console.map.js | 497 +++++++++++++++++++++++++++++++------------------
src/main/resources/application-prod.yml | 59 ++++-
src/main/java/com/zy/core/model/protocol/TaskProtocol.java | 2
src/main/java/com/zy/core/thread/SiemensDevpThread.java | 9
5 files changed, 363 insertions(+), 211 deletions(-)
diff --git a/src/main/java/com/zy/core/enums/RgvStatusType.java b/src/main/java/com/zy/core/enums/RgvStatusType.java
index 1196fbd..3ee91d7 100644
--- a/src/main/java/com/zy/core/enums/RgvStatusType.java
+++ b/src/main/java/com/zy/core/enums/RgvStatusType.java
@@ -3,16 +3,17 @@
public enum RgvStatusType {
NONE(-1, "绂荤嚎"),
+ NONE0(0, "绂荤嚎"),
IDLE(1, "绌洪棽"),
- ROAM(100000, "婕父"),
- WORKING(2, "浣滀笟涓�"),
+ WORKING(2, "浣滀笟涓�"),// 1锛氳璧� 2锛氬彇 3锛氭斁
SOS(3, "鎶ヨ"),
FETCHING(11, "鍙栬揣涓�"),
PUTTING(12, "鏀捐揣涓�"),
WAITING(90, "浠诲姟瀹屾垚绛夊緟WCS纭"),
FETCHWAITING(91, "鍙栬揣浠诲姟瀹屾垚绛夊緟WCS纭"),
SOS99(99, "鎶ヨ99"),
- OTHER(100, "鍏跺畠100")
+ OTHER(100, "鍏跺畠100"),
+ ROAM(100000, "婕父")
;
public Integer id;
diff --git a/src/main/java/com/zy/core/model/protocol/TaskProtocol.java b/src/main/java/com/zy/core/model/protocol/TaskProtocol.java
index 927d04d..9ddcc19 100644
--- a/src/main/java/com/zy/core/model/protocol/TaskProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/TaskProtocol.java
@@ -13,7 +13,7 @@
private volatile int isRunning = 0; // 杩愯鐘舵�� 0锛氬垵濮� 1锛氱瓑寰呮墽琛� 2锛氭墽琛屼腑 3锛氭墽琛屼腑鏂� 4锛氬畬缁�
- private volatile int taskStatus = 0; //浣滀笟妯″紡 0锛氳璧� 1锛氬彇 2锛氭斁
+ private volatile int taskStatus = 0; //浣滀笟妯″紡 1锛氳璧� 2锛氬彇 3锛氭斁 0:鏃�
private volatile boolean direction; // 鎵ц鏂瑰悜锛堥潰鏈濊建閬� 瀹氫綅鍊煎乏灏忓彸澶э級 true:宸� false:鍙�
diff --git a/src/main/java/com/zy/core/thread/SiemensDevpThread.java b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
index 16030f6..56f40a1 100644
--- a/src/main/java/com/zy/core/thread/SiemensDevpThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -46,7 +46,7 @@
private Map<Integer, StaProtocol> station = new ConcurrentHashMap<>();
private short heartBeatVal = 1;
public static final ArrayList<Integer> staNos1 = new ArrayList<Integer>() {{
- add(1000);add(1001);add(1002);add(1003);add(1004);add(1005);add(1006);add(1007);
+ add(1001);add(1002);add(1003);add(1004);add(1005);add(1006);add(1007);
add(1008);add(1009);add(1010);add(1011);add(1012);add(1013);add(1014);add(1015);
add(1016);add(1017);add(1018);add(1019);add(1020);add(1021);add(1022);add(1023);
}};
@@ -54,7 +54,7 @@
/**
* 鏉$爜鏁伴噺
*/
- private int barcodeSize = 4;
+ private int barcodeSize = 2;
/**
* 鍏ュ嚭搴撴ā寮�
@@ -185,9 +185,13 @@
boolean[] status = siemensS7Net.getByteTransform().TransBool(result.Content, i*8 + 6, 2);
staProtocol.setAutoing(status[0]); // 鑷姩
+// staProtocol.setAutoing(true); // 鑷姩
staProtocol.setLoading(status[1]); // 鏈夌墿
+// staProtocol.setLoading(true); // 鏈夌墿
staProtocol.setInEnable(status[2]); // 鍙叆
+// staProtocol.setInEnable(true); // 鍙叆
staProtocol.setOutEnable(status[3]);// 鍙嚭
+// staProtocol.setOutEnable(true);// 鍙嚭
staProtocol.setEmptyMk(status[4]); // 绌烘澘淇″彿
staProtocol.setFullPlt(status[5]); // 婊℃墭鐩�
staProtocol.setHigh(status[6]); // 楂樺簱浣�
@@ -217,7 +221,6 @@
barcodeThread.setBarcode(barcode);
}
}
-
}
if (result.IsSuccess) {
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index d902b62..029fb06 100644
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -6,45 +6,72 @@
ip: 10.10.10.60
slot: 0
port: 102
- rack: 102
+ rack: 0
id: 1
# 鍏ュ簱鍙�1
inSta[0]:
- staNo: 102
+ staNo: 1004
barcode: ${wcs-slave.barcode[0].id}
- backSta: 101
+ backSta: 1005
+ # 鍏ュ簱鍙�2
+ inSta[1]:
+ staNo: 1020
+ barcode: ${wcs-slave.barcode[1].id}
+ backSta: 1021
# led: ${wcs-slave.led[0].id}
# 绌烘澘鍏ュ簱鍙�1
emptyInSta[0]:
- staNo: 102
+ staNo: 1004
barcode: ${wcs-slave.barcode[0].id}
- backSta: 101
+ backSta: 1005
+ # 鍏ュ簱鍙�2
+ emptyInSta[1]:
+ staNo: 1020
+ barcode: ${wcs-slave.barcode[1].id}
+ backSta: 1021
# led: ${wcs-slave.led[0].id}
# 鎷f枡鍏ュ簱鍙�1
pickSta[0]:
- staNo: 102
+ staNo: 1004
barcode: ${wcs-slave.barcode[0].id}
- backSta: 101
+ backSta: 1005
+ # 鎷f枡鍏ュ簱鍙�2
+ pickSta[1]:
+ staNo: 1020
+ barcode: ${wcs-slave.barcode[1].id}
+ backSta: 1021
# 鍏ュ簱涓嬪彂鍙�1
inWalkSta[0]:
- staNo: 102
+ staNo: 1021
barcode: ${wcs-slave.barcode[0].id}
- backSta: 101
+ backSta: 1021
# 鍏ュ簱涓嬪彂鍙�1
inWalkSta[1]:
- staNo: 102
+ staNo: 1005
barcode: ${wcs-slave.barcode[0].id}
- backSta: 101
+ backSta: 1005
# 鍏ュ簱涓嬪彂鍙�1
inWalkSta[2]:
- staNo: 102
+ staNo: 1012
barcode: ${wcs-slave.barcode[0].id}
- backSta: 101
+ backSta: 1012
barcodeSign: true
# 鍑哄簱鍙�1
outSta[0]:
- staNo: 102
+ staNo: 1002
+ # 鍑哄簱鍙�2
+ outSta[1]:
+ staNo: 1005
+ # 鍑哄簱鍙�3
+ outSta[2]:
+ staNo: 1012
+ # 鍑哄簱鍙�4
+ outSta[3]:
+ staNo: 1021
+ # 鍑哄簱鍙�5
+ outSta[4]:
+ staNo: 1023
# led: ${wcs-slave.led[0].id}
# RGV绌挎杞�1
rgv[0]:
@@ -115,10 +142,6 @@
port: 51236
ip: 10.10.10.52
id: 2
- barcode[2]: #鏉$爜鎵弿浠�1
- port: 51236
- ip: 10.10.10.52
- id: 3
# 纾呯Г
scale[0]:
id: 1
diff --git a/src/main/webapp/static/wcs/js/console.map.js b/src/main/webapp/static/wcs/js/console.map.js
index 87a04c1..d3b37a7 100644
--- a/src/main/webapp/static/wcs/js/console.map.js
+++ b/src/main/webapp/static/wcs/js/console.map.js
@@ -8,196 +8,201 @@
"floors": 1,
"racks": [{
"type": "rack",
- "id": "rack4",
- "top": 109,
+ "id": "rack1",
+ "top": 403,
"left": 475,
- "width": 795,
+ "width": 1295,
"height": 23,
"minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [22]
- }, {
- "type": "rack",
- "id": "rack13",
- "top": 498,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [1,2]
- }, {
- "type": "rack",
- "id": "rack12",
- "top": 474,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [1]
- }, {
- "type": "rack",
- "id": "rack11",
- "top": 402,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [1]
- }, {
- "type": "rack",
- "id": "rack10",
- "top": 366,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22
- }, {
- "type": "rack",
- "id": "rack9",
- "top": 343,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22
- }, {
- "type": "rack",
- "id": "rack8",
- "top": 268,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22
- }, {
- "type": "rack",
- "id": "rack7",
- "top": 245,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [3,10,11,17,18]
- }, {
- "type": "rack",
- "id": "rack6",
- "top": 203,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [1,3,10,11,17,18,22]
- }, {
- "type": "rack",
- "id": "rack5",
- "top": 180,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [3,10,11,17,18,22]
- }, {
- "type": "rack",
- "id": "rack3",
- "top": 82,
- "left": 475,
- "width": 795,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [1,22]
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
}, {
"type": "rack",
"id": "rack2",
- "top": 59,
+ "top": 344,//376
"left": 475,
- "width": 795,
+ "width": 1295,
"height": 23,
"minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [1,22]
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
}, {
"type": "rack",
- "id": "rack1",
- "top": 0,
+ "id": "rack3",
+ "top": 317,
"left": 475,
- "width": 795,
+ "width": 1295,
"height": 23,
"minBayNo": 1,
- "maxBayNo": 22,
- "hiddenArr": [1,22]
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
+ }, {
+ "type": "rack",
+ "id": "rack4",
+ "top": 258,//290
+ "left": 475,
+ "width": 1295,
+ "height": 23,
+ "minBayNo": 1,
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
+ }, {
+ "type": "rack",
+ "id": "rack5",
+ "top": 231,
+ "left": 475,
+ "width": 1295,
+ "height": 23,
+ "minBayNo": 1,
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
+ }, {
+ "type": "rack",
+ "id": "rack6",
+ "top": 172,//204
+ "left": 475,
+ "width": 1295,
+ "height": 23,
+ "minBayNo": 1,
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
+ }, {
+ "type": "rack",
+ "id": "rack7",
+ "top": 145,
+ "left": 475,
+ "width": 1295,
+ "height": 23,
+ "minBayNo": 1,
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
+ }, {
+ "type": "rack",
+ "id": "rack8",
+ "top": 86,//118
+ "left": 475,
+ "width": 1295,
+ "height": 23,
+ "minBayNo": 1,
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
+ }, {
+ "type": "rack",
+ "id": "rack9",
+ "top": 59,
+ "left": 475,
+ "width": 1295,
+ "height": 23,
+ "minBayNo": 1,
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
+ }, {
+ "type": "rack",
+ "id": "rack10",
+ "top": 0,
+ "left": 475,
+ "width": 1295,
+ "height": 23,
+ "minBayNo": 1,
+ "maxBayNo": 65,
+ "hiddenArr": [1,65]
}],
"crns": [{
"type": "crane",
- "id": "crn-4",
- "text": "4",
- "top": 439,
- "left": 530,
+ "id": "crn-1",
+ "text": "1",
+ "top": 376,
+ "left": 630,
"width": 93,
"height": 22
}, {
"type": "track",
- "id": "lb_track4",
- "text": "",
- "top": 450,
- "left": 444,
- "width": 850,
- "height": 2
- }, {
- "type": "crane",
- "id": "crn-3",
- "text": "3",
- "top": 308,
- "left": 530,
- "width": 93,
- "height": 22
- }, {
- "type": "track",
- "id": "lb_track3",
- "text": "",
- "top": 318,
- "left": 444,
- "width": 850,
+ "id": "lb_track1",
+ "text": "1",
+ "top": 387,
+ "left": 470,
+ "width": 1295,
"height": 2
}, {
"type": "crane",
"id": "crn-2",
"text": "2",
- "top": 145,
- "left": 530,
- "width": 93,
- "height": 22
- }, {
- "type": "crane",
- "id": "crn-1",
- "text": "1",
- "top": 32,
- "left": 530,
+ "top": 290,
+ "left": 630,
"width": 93,
"height": 22
}, {
"type": "track",
"id": "lb_track2",
- "text": "",
- "top": 155,
- "left": 444,
- "width": 850,
+ "text": "2",
+ "top": 301,
+ "left": 470,
+ "width": 1295,
+ "height": 2
+ }, {
+ "type": "crane",
+ "id": "crn-3",
+ "text": "3",
+ "top": 204,
+ "left": 630,
+ "width": 93,
+ "height": 22
+ }, {
+ "type": "track",
+ "id": "lb_track3",
+ "text": "3",
+ "top": 215,
+ "left": 470,
+ "width": 1295,
+ "height": 2
+ }, {
+ "type": "crane",
+ "id": "crn-4",
+ "text": "4",
+ "top": 118,
+ "left": 630,
+ "width": 93,
+ "height": 22
+ }, {
+ "type": "track",
+ "id": "lb_track4",
+ "text": "4",
+ "top": 129,
+ "left": 470,
+ "width": 1295,
+ "height": 2
+ }, {
+ "type": "crane",
+ "id": "crn-5",
+ "text": "5",
+ "top": 32,
+ "left": 630,
+ "width": 93,
+ "height": 22
+ }, {
+ "type": "track",
+ "id": "lb_track5",
+ "text": "5",
+ "top": 43,
+ "left": 470,
+ "width": 1295,
"height": 2
}, {
"type": "track",
- "id": "lb_track1",
- "text": "",
- "top": 43,
- "left": 447,
- "width": 850,
- "height": 2
+ "id": "lb_track10",
+ "text": "10",
+ "top": 0,
+ "left": 350,
+ "width": 2,
+ "height": 431
+ }, {
+ "type": "track",
+ "id": "lb_track11",
+ "text": "11",
+ "top": 0,
+ "left": 380,
+ "width": 2,
+ "height": 431
}],
"areas": [{
"type": "Control_floor",
@@ -217,68 +222,188 @@
"height": 706,
"stns": [{
"type": "stn",
- "id": "site-107",
- "text": "107",
- "top": 476,
- "left": 386,
+ "id": "site-1001",
+ "text": "1001",
+ "top": 403,
+ "left": 403,
"width": 92,
"height": 23
}, {
"type": "stn",
- "id": "site-106",
- "text": "106",
- "top": 404,
- "left": 386,
+ "id": "site-1002",
+ "text": "1002",
+ "top": 403,
+ "left": 240,
"width": 92,
"height": 23
}, {
"type": "stn",
- "id": "site-105",
- "text": "105",
+ "id": "site-1003",
+ "text": "1003",
"top": 344,
- "left": 386,
+ "left": 403,
"width": 92,
"height": 23
}, {
"type": "stn",
- "id": "site-104",
- "text": "104",
- "top": 269,
- "left": 386,
+ "id": "site-1004",
+ "text": "1004",
+ "top": 344,
+ "left": 240,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1005",
+ "text": "1005",
+ "top": 344,
+ "left": 287,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1006",
+ "text": "1006",
+ "top": 317,
+ "left": 403,
"width": 92,
"height": 23
}, {
"type": "stn",
- "id": "site-103",
- "text": "103",
- "top": 181,
- "left": 386,
+ "id": "site-1007",
+ "text": "1007",
+ "top": 258,
+ "left": 403,
"width": 92,
"height": 23
}, {
"type": "stn",
- "id": "site-102",
- "text": "102",
- "top": 110,
- "left": 386,
+ "id": "site-1008",
+ "text": "1008",
+ "top": 231,
+ "left": 403,
"width": 92,
"height": 23
}, {
"type": "stn",
- "id": "site-101",
- "text": "101",
- "top": 60,
- "left": 386,
+ "id": "site-1009",
+ "text": "1009",
+ "top": 231,
+ "left": 287,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1010",
+ "text": "1010",
+ "top": 231,
+ "left": 240,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1011",
+ "text": "1011",
+ "top": 231,
+ "left": 193,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1013",
+ "text": "1013",
+ "top": 172,
+ "left": 403,
"width": 92,
"height": 23
}, {
"type": "stn",
- "id": "site-100",
- "text": "100",
+ "id": "site-1014",
+ "text": "1014",
+ "top": 172,
+ "left": 287,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1015",
+ "text": "1015",
+ "top": 172,
+ "left": 240,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1016",
+ "text": "1016",
+ "top": 172,
+ "left": 193,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1012",
+ "text": "1012",
+ "top": 196,
+ "left": 193,
+ "width": 45,
+ "height": 34
+ }, {
+ "type": "stn",
+ "id": "site-1017",
+ "text": "1017",
+ "top": 145,
+ "left": 403,
+ "width": 92,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1018",
+ "text": "1018",
+ "top": 86,
+ "left": 403,
+ "width": 92,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1019",
+ "text": "1019",
+ "top": 59,
+ "left": 403,
+ "width": 92,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1023",
+ "text": "1023",
+ "top": 59,
+ "left": 240,
+ "width": 92,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1022",
+ "text": "1022",
"top": 0,
- "left": 386,
+ "left": 403,
"width": 92,
"height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1021",
+ "text": "1021",
+ "top": 0,
+ "left": 240,
+ "width": 45,
+ "height": 23
+ }, {
+ "type": "stn",
+ "id": "site-1020",
+ "text": "1020",
+ "top": 0,
+ "left": 287,
+ "width": 45,
+ "height": 23
}]
}]
}]
--
Gitblit v1.9.1