From c5698e42c67e32892424a1a94ed9e7b532f0f7b8 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期一, 08 十二月 2025 09:43:49 +0800
Subject: [PATCH] 济南二机床wcs功能调试完善
---
src/main/java/com/zy/core/model/protocol/StaProtocol.java | 10
src/main/java/com/zy/entity/WrkDetl.java | 4
src/main/webapp/views/console.html | 4
src/main/java/com/zy/service/impl/MainServiceImpl.java | 23 +
src/main/webapp/static/js/console.map.js | 352 +++++--------------------------
src/main/java/com/zy/common/model/SearchLocParam.java | 5
src/main/java/com/zy/core/MainProcess.java | 2
src/main/webapp/static/js/common.js | 2
pom.xml | 2
src/main/java/com/zy/common/model/LocTypeDto.java | 18 +
src/main/java/com/zy/core/thread/SiemensDevpThread.java | 39 +-
src/main/resources/application.yml | 152 +++++++------
12 files changed, 215 insertions(+), 398 deletions(-)
diff --git a/pom.xml b/pom.xml
index e5040b9..1579f5a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -185,7 +185,7 @@
</dependencies>
<build>
- <finalName>jsjwcs</finalName>
+ <finalName>jgwcs</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
diff --git a/src/main/java/com/zy/common/model/LocTypeDto.java b/src/main/java/com/zy/common/model/LocTypeDto.java
index c751fe7..a1224cf 100644
--- a/src/main/java/com/zy/common/model/LocTypeDto.java
+++ b/src/main/java/com/zy/common/model/LocTypeDto.java
@@ -1,6 +1,7 @@
package com.zy.common.model;
import com.zy.core.model.protocol.StaProtocol;
+import com.zy.utils.News;
import lombok.Data;
/**
@@ -30,7 +31,22 @@
}
public LocTypeDto(StaProtocol staProtocol) {
- this.locType1 = staProtocol.getGoodsHeight();
+ if (staProtocol.isHigh() == staProtocol.isLow() || staProtocol.isChang() == staProtocol.isDuan()) {
+ News.error("plc楂樹綆/闀跨煭妫�娴嬪紓甯�,high:{},low:{}锛宑hang:{},duan:{}",staProtocol.isHigh(),staProtocol.isLow(),staProtocol.isChang(),staProtocol.isDuan());
+ return;
+ }
+
+ if (staProtocol.isHigh()) {
+ this.locType1 = 2;
+ } else {
+ this.locType1 = 1;
+ }
+
+ if (staProtocol.isChang()) {
+ this.locType2 = 2; // 闀垮簱浣�
+ } else {
+ this.locType2 = 1; // 鐭簱浣�
+ }
}
/**
diff --git a/src/main/java/com/zy/common/model/SearchLocParam.java b/src/main/java/com/zy/common/model/SearchLocParam.java
index 159024e..0c69308 100644
--- a/src/main/java/com/zy/common/model/SearchLocParam.java
+++ b/src/main/java/com/zy/common/model/SearchLocParam.java
@@ -15,9 +15,12 @@
private String barcode;
- // 搴撲綅瑙勬牸锛� 0:鏈煡, 1:浣庡簱浣�, 2:涓簱浣�, 3:楂樺簱浣� 锛�
+ // 搴撲綅瑙勬牸锛� 0:鏈煡, 1:浣庡簱浣�, 2:楂樺簱浣� 锛�
private Short locType1;
+ // 搴撲綅瑙勬牸锛� 0:鏈煡, 1:鐭簱浣�, 2:闀垮簱浣� 锛�
+ private Short locType2;
+
public static void main(String[] args) {
SearchLocParam searchLocParam = new SearchLocParam();
searchLocParam.setIoType(1);
diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java
index 9f482ba..8823dba 100644
--- a/src/main/java/com/zy/core/MainProcess.java
+++ b/src/main/java/com/zy/core/MainProcess.java
@@ -41,7 +41,7 @@
}
// 鎷f枡銆佸苟鏉裤�佺洏鐐瑰啀鍏ュ簱
- mainService.stnToCrnStnPick(3);
+// mainService.stnToCrnStnPick(3);
// 鍏ュ簱 ===>> 鍏ュ簱绔欏埌鍫嗗灈鏈虹珯锛屾牴鎹潯鐮佹壂鎻忕敓鎴愬叆搴撳伐浣滄。
mainService.generateStoreWrkFile(); // 缁勬墭
diff --git a/src/main/java/com/zy/core/model/protocol/StaProtocol.java b/src/main/java/com/zy/core/model/protocol/StaProtocol.java
index dfd1a4e..c90516c 100644
--- a/src/main/java/com/zy/core/model/protocol/StaProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/StaProtocol.java
@@ -40,15 +40,21 @@
// 婊℃墭鐩�
private boolean fullPlt;
- // 楂�
+ // 楂樺簱浣� 鏀�6灞�
private boolean high;
// 涓�
private boolean center;
- // 浣�
+ // 浣� 15灞�
private boolean low;
+ // 闀挎墭鐩� 鏀惧悗涓夊垪
+ private boolean chang;
+
+ // 鐭墭鐩� 2-14 鍒�
+ private boolean duan;
+
// 閿佸畾鏍囪
private boolean pakMk = true;
diff --git a/src/main/java/com/zy/core/thread/SiemensDevpThread.java b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
index cfc018f..9c3c08c 100644
--- a/src/main/java/com/zy/core/thread/SiemensDevpThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -45,20 +45,20 @@
private short heartBeatVal = 1;
private StaError1 staError1;
public static final ArrayList<Integer> staNos = new ArrayList<Integer>() {{
- add(101);add(102);add(103);add(104);add(105);add(106);add(107);add(108);
+ add(201);add(202);add(203);add(204);add(205);
}};
public static final ArrayList<Integer> BarcodeList = new ArrayList<Integer>() {{
- add(1); add(2);
+ add(1); add(2);add(3);
}};
public static final ArrayList<Integer> staNosErrList = new ArrayList<Integer>() {{
- add(104); add(106);
+ add(201); add(203); add(205);
}};
/**
* 鏉$爜鏁伴噺
*/
- private int barcodeSize = 2;
+ private int barcodeSize = 3;
/**
* 鍏ュ嚭搴撴ā寮�
@@ -183,7 +183,7 @@
private void read() {
// 绔欑偣淇℃伅
- OperateResultExOne<byte[]> result = siemensS7Net.Read("DB101.0", (short) (8*8));
+ OperateResultExOne<byte[]> result = siemensS7Net.Read("DB101.0", (short) (8*5));
if (result.IsSuccess) {
for (int i = 0; i < staNos.size(); i++) {
Integer siteId = staNos.get(i); // 绔欑偣缂栧彿
@@ -205,8 +205,9 @@
staProtocol.setEmptyMk(status[4]); // 绌烘澘淇″彿
staProtocol.setFullPlt(status[5]); // 婊℃墭鐩�
staProtocol.setHigh(status[6]); // 楂樺簱浣�
- staProtocol.setLow(status[7]); // 涓簱浣�
- staProtocol.setCenter(status[8]); // 浣庡簱浣�
+ staProtocol.setLow(status[7]); // 浣庡簱浣�
+ staProtocol.setChang(status[8]); // 闀挎墭鐩�
+ staProtocol.setDuan(status[9]); // 鐭墭鐩�
if (!staProtocol.isPakMk() && !staProtocol.isLoading()) {
staProtocol.setPakMk(true);
@@ -220,7 +221,7 @@
}
// 鏉$爜鎵弿鍣�
- OperateResultExOne<byte[]> barcodeResult = siemensS7Net.Read("DB101.400", (short) (BarcodeList.size() * 10));
+ OperateResultExOne<byte[]> barcodeResult = siemensS7Net.Read("DB101.600", (short) (BarcodeList.size() * 10));
if (barcodeResult.IsSuccess) {
for (int i = 0; i < BarcodeList.size(); i++) {
String barcode = siemensS7Net.getByteTransform().TransString(barcodeResult.Content,i*10 + 2,8, "UTF-8");
@@ -232,28 +233,28 @@
}
// 澶栧舰妫�娴�
- OperateResultExOne<byte[]> resultErr = siemensS7Net.Read("DB101.430", (short) (staNosErrList.size() *4)); // 涓嶈繛缁紝澶氳涓棿涓�涓�
+ OperateResultExOne<byte[]> resultErr = siemensS7Net.Read("DB101.700", (short) (staNosErrList.size() *4)); // 涓嶈繛缁紝澶氳涓棿涓�涓�
if (resultErr.IsSuccess){
for (int i = 0;i<staNosErrList.size();i++){
- boolean[] status = siemensS7Net.getByteTransform().TransBool(resultErr.Content, i*4, 1);
+ boolean[] status = siemensS7Net.getByteTransform().TransBool(resultErr.Content, i*4 + 2, 1);
StaProtocol staProtocol = station.get(staNosErrList.get(i));
staProtocol.setFrontErr(status[0]);
staProtocol.setBackErr(status[1]);
staProtocol.setHighErr(status[2]);
staProtocol.setLeftErr(status[3]);
staProtocol.setRightErr(status[4]);
- staProtocol.setGroupSupportErr(status[5]);
+// staProtocol.setGroupSupportErr(status[5]);
+ staProtocol.setWeightErr(status[5]);
staProtocol.setBarcodeErr(status[6]);
- staProtocol.setWeightErr(status[7]);
- short goodsHeight = siemensS7Net.getByteTransform().TransInt16(resultErr.Content, i * 4 + 2);
- staProtocol.setGoodsHeight(goodsHeight);
+// short goodsHeight = siemensS7Net.getByteTransform().TransInt16(resultErr.Content, i * 4 + 2);
+// staProtocol.setGoodsHeight(goodsHeight);
}
}
// 鏁呴殰淇℃伅鍙嶉
- OperateResultExOne<byte[]> resultErr2 = siemensS7Net.Read("DB101.442", (short) (staNos.size() * 4));
+ OperateResultExOne<byte[]> resultErr2 = siemensS7Net.Read("DB101.400", (short) (staNos.size() * 4));
if (resultErr2.IsSuccess) {
- for (int i = 0; i < staNos.size(); i++) {
+ for (int i = 0; i < staNos.size(); i++) {
boolean[] status = siemensS7Net.getByteTransform().TransBool(resultErr2.Content, i*4 + 2, 1);
StaProtocol staProtocol = station.get(staNos.get(i)); // 绔欑偣缂栧彿
staProtocol.setBreakerErr(status[0]);
@@ -305,15 +306,15 @@
return;
}
- int address = staNos.indexOf(staProtocol.getSiteId()) * 4;
+ int address = staNos.indexOf(staProtocol.getSiteId()) * 6;
OperateResult write;
OperateResult write1;
//浠诲姟涓嬪彂娆℃暟
int writeCount = 0;
do {
- write = siemensS7Net.Write("DB100." + address, staProtocol.getWorkNo().shortValue()); // 宸ヤ綔鍙�
- write1 = siemensS7Net.Write("DB100." + (address + 2), staProtocol.getStaNo()); // 鐩爣绔�
+ write1 = siemensS7Net.Write("DB100." + (address + 4), staProtocol.getStaNo()); // 鐩爣绔�
+ write = siemensS7Net.Write("DB100." + address, staProtocol.getWorkNo()); // 宸ヤ綔鍙�
Thread.sleep(200);
if(write.IsSuccess && write1.IsSuccess){
break;
diff --git a/src/main/java/com/zy/entity/WrkDetl.java b/src/main/java/com/zy/entity/WrkDetl.java
index fb871de..9b6f8db 100644
--- a/src/main/java/com/zy/entity/WrkDetl.java
+++ b/src/main/java/com/zy/entity/WrkDetl.java
@@ -166,8 +166,8 @@
/**
* 闀垮害
*/
- @ApiModelProperty(value= "闀垮害")
- private Double length;
+// @ApiModelProperty(value= "闀垮害")
+// private Double length;
/**
* 浣撶Н
diff --git a/src/main/java/com/zy/service/impl/MainServiceImpl.java b/src/main/java/com/zy/service/impl/MainServiceImpl.java
index 0c71b66..24f466a 100644
--- a/src/main/java/com/zy/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/service/impl/MainServiceImpl.java
@@ -93,7 +93,7 @@
@Value("${wms.url}")
private String wmsUrl;
- public Integer wrkNo = 9997;
+ public Integer wrkNo = 9999;
/**
* 缁勬墭
@@ -152,7 +152,7 @@
back = true;
}
// 閫�鍥�
- if (back && (staProtocol.getWorkNo() == 9999 || staProtocol.getWorkNo() == 9998) && staProtocol.isInEnable() && staProtocol.isLoading() && staProtocol.isPakMk()) {
+ if (back && (staProtocol.getWorkNo() >= 9993 && staProtocol.getWorkNo() <= 9995) && staProtocol.isLoading() && staProtocol.isPakMk()) {
MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(3, errMsg));
staProtocol.setWorkNo(wrkNo);
News.info("{}鍏ュ簱鍥為��锛歿}锛屼换鍔″彿锛歿}", inSta.getStaNo(), errMsg,wrkNo);
@@ -168,7 +168,7 @@
&& staProtocol.isLoading()
&& staProtocol.isInEnable()
&& !staProtocol.isEmptyMk()
- && staProtocol.isPakMk() && staProtocol.getWorkNo() == 9999) {
+ && staProtocol.isPakMk() && staProtocol.getWorkNo() >= 9993 && staProtocol.getWorkNo() <= 9995) { // 9990-9992绌烘墭锛�9993-9995 婊℃墭锛�9999鍥為��
if(Cools.isEmpty(barcode) || "NG".endsWith(barcode) || "NoRead".equals(barcode) || "00000000".equals(barcode)) {
News.info("{}鏉$爜鎵弿閿欒锛歿}",barcodeThread.getSlave().getId(),barcode);
continue;
@@ -191,6 +191,7 @@
param.setIoType(1);
param.setSourceStaNo(inSta.getStaNo());
param.setLocType1(locTypeDto.getLocType1());
+ param.setLocType2(locTypeDto.getLocType2());
String response = new HttpHandler.Builder()
.setUri(wmsUrl)
.setPath("/rpc/pakin/loc/v1")
@@ -597,6 +598,9 @@
crnCommand.setTaskMode(CrnTaskModeType.LOC_MOVE); // 浠诲姟妯″紡: 搴撲綅绉昏浆
crnCommand.setSourcePosX(crnStn.getRow().shortValue()); // 婧愬簱浣嶆帓
crnCommand.setSourcePosY(crnStn.getBay().shortValue()); // 婧愬簱浣嶅垪
+ if(crnStn.getBay() == 1 && locMast.getBay1() >= 15) { // 鍏ュ簱 闀垮簱浣嶅垯鍙栬揣浣嶇疆涓�0鍒�
+ crnCommand.setSourcePosY((short) 0);
+ }
crnCommand.setSourcePosZ(crnStn.getLev().shortValue()); // 婧愬簱浣嶅眰
crnCommand.setDestinationPosX(locMast.getRow1().shortValue()); // 鐩爣搴撲綅鎺�
crnCommand.setDestinationPosY(locMast.getBay1().shortValue()); // 鐩爣搴撲綅鍒�
@@ -741,6 +745,9 @@
crnCommand.setSourcePosZ(sourceSta.getLev1().shortValue()); // 婧愬簱浣嶅眰
crnCommand.setDestinationPosX(crnStn.getRow().shortValue()); // 鐩爣搴撲綅鎺�
crnCommand.setDestinationPosY(crnStn.getBay().shortValue()); // 鐩爣搴撲綅鍒�
+ if(crnStn.getBay() == 1 && sourceSta.getBay1() >= 15) { // 闀垮簱浣� 鍑哄簱鏀捐揣鍒� 涓�0
+ crnCommand.setDestinationPosY((short) 0);
+ }
crnCommand.setDestinationPosZ(crnStn.getLev().shortValue()); // 鐩爣搴撲綅灞�
crnCommand.setTraySize(sourceSta.getLocType1() == 2); //搴撲綅绫诲瀷
if (!MessageQueue.offer(SlaveType.Crn, wrkMast.getCrnNo(), new Task(2, crnCommand))) {
@@ -1038,7 +1045,7 @@
&& staProtocol.isInEnable()
&& staProtocol.isEmptyMk()
&& staProtocol.isPakMk()
- && staProtocol.getWorkNo() == 9998 // 9997 鍥為�� 9998 绌� 9999 婊�
+ && staProtocol.getWorkNo() >= 9990 && staProtocol.getWorkNo() <= 9992 // 9990-9992绌烘墭锛�9993-9995 婊℃墭锛�9999鍥為��
) {
News.warnNoLog(""+mark+" - 0"+" - 寮�濮嬫墽琛岋細绌烘爤鏉垮垵濮嬪寲鍏ュ簱,鍙夎溅鍏ュ簱绔欐斁璐�");
@@ -1049,6 +1056,7 @@
param.setIoType(10);
param.setSourceStaNo(emptyInSta.getStaNo());
param.setLocType1(locTypeDto.getLocType1());
+ param.setLocType2(locTypeDto.getLocType2());
String response = new HttpHandler.Builder()
.setUri(wmsUrl)
.setPath("/rpc/pakin/loc/v1")
@@ -1056,6 +1064,7 @@
.build()
.doPost();
JSONObject jsonObject = JSON.parseObject(response);
+ log.info("绌烘墭鍏ュ簱璇锋眰wms鍘熷杩斿洖:" + jsonObject);
if (jsonObject.getInteger("code").equals(200)) {
StartupDto dto = jsonObject.getObject("data", StartupDto.class);
@@ -1067,7 +1076,7 @@
log.error("杈撻�佺嚎涓嬪彂6锛�"+dto.getWorkNo()+","+staProtocol.getSiteId());
if (!result) {
News.errorNoLog(""+mark+" - 1"+" - 鏇存柊plc绔欑偣淇℃伅澶辫触");
- throw new CoolException("鏇存柊plc绔欑偣淇℃伅澶辫触");
+ throw new CoolException("SiemensDevp - 5");
}
if (ledThread != null) {
@@ -1613,8 +1622,8 @@
CrnCommand crnCommand = new CrnCommand();
crnCommand.setCrnNo(crn.getId()); // 鍫嗗灈鏈虹紪鍙�
crnCommand.setTaskNo((short) 9999); // 宸ヤ綔鍙�
- crnCommand.setTaskMode(CrnTaskModeType.GO_ORIGIN); // 浠诲姟妯″紡: 鍥炲師鐐�
- crnCommand.setSourcePosX((short) (crn.getId() == 1 ? 3 : 6)); // 婧愬簱浣嶆帓
+ crnCommand.setTaskMode((short)8); // 浠诲姟妯″紡: 鍥炲師鐐�
+ crnCommand.setSourcePosX((short) 1); // 婧愬簱浣嶆帓
crnCommand.setSourcePosY((short) 1); // 婧愬簱浣嶅垪
crnCommand.setSourcePosZ((short) 1); // 婧愬簱浣嶅眰
crnCommand.setDestinationPosX((short) 0); // 鐩爣搴撲綅鎺�
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 9282531..5dcb7a0 100644
--- a/src/main/resources/application.yml
+++ b/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://127.0.0.1:1433;databasename=jsjasrs
+ url: jdbc:sqlserver://127.0.0.1:1433;databasename=jgwms
username: sa
password: sa@123
mvc:
@@ -34,21 +34,21 @@
enable: false
wms:
- url: 127.0.0.1:8080/jsjwms
+ url: 127.0.0.1:8089/jgwms
# 涓嬩綅鏈洪厤缃�
wcs-slave:
# 鍙屾繁
- doubleDeep: true
+ doubleDeep: false
# 鍙屾繁搴撲綅鎺掑彿
doubleLocs: 1,4,5,8
# 涓�涓爢鍨涙満璐熻矗鐨勮揣鏋舵帓鏁�
- groupCount: 4
+ groupCount: 2
# 鍫嗗灈鏈�1
crn[0]:
id: 1
- ip: 192.168.5.10
+ ip: 172.26.11.31
port: 102
rack: 0
slot: 0
@@ -58,103 +58,119 @@
# 鍫嗗灈鏈哄叆搴撶珯鐐�
crnInStn[0]:
devpPlcId: ${wcs-slave.devp[0].id}
- staNo: 104
- row: 3
- bay: 1
- lev: 1
- # 鍫嗗灈鏈哄嚭搴撶珯鐐�
- crnOutStn[0]:
- devpPlcId: ${wcs-slave.devp[0].id}
- staNo: 102
+ staNo: 201
row: 2
bay: 1
lev: 1
- # 鍫嗗灈鏈�2
- crn[1]:
- id: 2
- ip: 192.168.5.20
- port: 102
- rack: 0
- slot: 0
- # 鍋忕Щ閲忥紝褰撳爢鍨涙満绔欑偣鍒楀彿=1鏃讹紝鍋忕Щ閲�=2
- offset: 2
- demo: false
- # 鍫嗗灈鏈哄叆搴撶珯鐐�
- crnInStn[0]:
+ # 鍫嗗灈鏈哄叆搴撶珯鐐�2
+ crnInStn[1]:
devpPlcId: ${wcs-slave.devp[0].id}
- staNo: 106
- row: 6
+ staNo: 203
+ row: 1
bay: 1
lev: 1
- # 鍫嗗灈鏈哄嚭搴撶珯鐐�
+ # 鍫嗗灈鏈哄嚭搴撶珯鐐�1
crnOutStn[0]:
devpPlcId: ${wcs-slave.devp[0].id}
- staNo: 108
- row: 7
+ staNo: 203
+ row: 1
+ bay: 1
+ lev: 1
+ # 鍫嗗灈鏈哄嚭搴撶珯鐐�2
+ crnOutStn[1]:
+ devpPlcId: ${wcs-slave.devp[0].id}
+ staNo: 205
+ row: 1
+ bay: 9
+ lev: 1
+ # 鍫嗗灈鏈哄嚭搴撶珯鐐�3
+ crnOutStn[2]:
+ devpPlcId: ${wcs-slave.devp[0].id}
+ staNo: 201
+ row: 2
bay: 1
lev: 1
# 杈撻�佺嚎1
devp[0]:
id: 1
- ip: 192.168.5.40
+ ip: 172.26.11.41
port: 102
rack: 0
slot: 0
# 鍏ュ簱鍙�1
inSta[0]:
- staNo: 104
+ staNo: 201
barcode: ${wcs-slave.barcode[0].id}
- backSta: 103
- led: ${wcs-slave.led[1].id}
+ backSta: 202
+ led: ${wcs-slave.led[0].id}
# 鍏ュ簱鍙�2
inSta[1]:
- staNo: 106
- barcode: ${wcs-slave.barcode[1].id}
- backSta: 105
+ staNo: 205
+ barcode: ${wcs-slave.barcode[2].id}
led: ${wcs-slave.led[2].id}
+ # 鍏ュ簱鍙�3
+ inSta[2]:
+ staNo: 203
+ barcode: ${wcs-slave.barcode[1].id}
+ led: ${wcs-slave.led[1].id}
+ backSta: 204
# 绌烘澘鍏ュ簱鍙�1
emptyInSta[0]:
- staNo: 104
+ staNo: 201
barcode: ${wcs-slave.barcode[0].id}
- backSta: 103
- led: ${wcs-slave.led[1].id}
+ backSta: 202
+ led: ${wcs-slave.led[0].id}
# 绌烘澘鍏ュ簱鍙�2
emptyInSta[1]:
- staNo: 106
- barcode: ${wcs-slave.barcode[1].id}
- backSta: 105
+ staNo: 205
+ barcode: ${wcs-slave.barcode[2].id}
led: ${wcs-slave.led[2].id}
- # 鎷f枡鍏ュ簱鍙�1
- pickSta[0]:
- staNo: 104
- barcode: ${wcs-slave.barcode[0].id}
- backSta: 103
+ # 绌烘澘鍏ュ簱鍙�3
+ emptyInSta[2]:
+ staNo: 203
+ barcode: ${wcs-slave.barcode[1].id}
+ backSta: 204
led: ${wcs-slave.led[1].id}
- # 鎷f枡鍏ュ簱鍙�2
- pickSta[1]:
- staNo: 106
- barcode: ${wcs-slave.barcode[1].id}
- backSta: 105
- led: ${wcs-slave.led[2].id}
+# # 鎷f枡鍏ュ簱鍙�1
+# pickSta[0]:
+# staNo: 104
+# barcode: ${wcs-slave.barcode[0].id}
+# backSta: 103
+# led: ${wcs-slave.led[1].id}
+# # 鎷f枡鍏ュ簱鍙�2
+# pickSta[1]:
+# staNo: 106
+# barcode: ${wcs-slave.barcode[1].id}
+# backSta: 105
+# led: ${wcs-slave.led[2].id}
# 鍑哄簱鍙�1
outSta[0]:
- staNo: 101
- led: ${wcs-slave.led[0].id}
+ staNo: 204
+ led: ${wcs-slave.led[1].id}
# 鍑哄簱鍙�2
outSta[1]:
- staNo: 107
- led: ${wcs-slave.led[3].id}
+ staNo: 205
+ led: ${wcs-slave.led[2].id}
+ # 鍑哄簱鍙�3
+ outSta[2]:
+ staNo: 202
+ led: ${wcs-slave.led[1].id}
# 鏉$爜鎵弿浠�1
barcode[0]:
id: 1
- ip: 192.168.5.42
+ ip: 172.26.11.43
port: 51236
# 鏉$爜鎵弿浠�2
barcode[1]:
id: 2
- ip: 192.168.5.43
+ ip: 172.26.11.44
+ port: 51236
+ # 鏉$爜鎵弿浠�3
+ barcode[2]:
+ id: 3
+ ip: 172.26.11.45
port: 51236
# LED1
@@ -163,7 +179,7 @@
ip: 192.168.5.104
port: 5005
devpPlcId: ${wcs-slave.devp[0].id}
- staArr: 101
+ staArr: 202
crnId: 1
# LED2
led[1]:
@@ -171,7 +187,7 @@
ip: 192.168.5.105
port: 5005
devpPlcId: ${wcs-slave.devp[0].id}
- staArr: 104
+ staArr: 204
crnId: 1
# LED3
led[2]:
@@ -179,13 +195,5 @@
ip: 192.168.5.106
port: 5005
devpPlcId: ${wcs-slave.devp[0].id}
- staArr: 106
- crnId: 2
- # LED4
- led[3]:
- id: 4
- ip: 192.168.5.107
- port: 5005
- devpPlcId: ${wcs-slave.devp[0].id}
- staArr: 107
- crnId: 2
\ No newline at end of file
+ staArr: 205
+ crnId: 1
\ No newline at end of file
diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index 9932f15..e69beac 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -1,4 +1,4 @@
-var baseUrl = "/jsjwcs";
+var baseUrl = "/jgwcs";
// 璧嬪��
function setVal(el, val) {
diff --git a/src/main/webapp/static/js/console.map.js b/src/main/webapp/static/js/console.map.js
index c7cae1d..1f24ab0 100644
--- a/src/main/webapp/static/js/console.map.js
+++ b/src/main/webapp/static/js/console.map.js
@@ -3,245 +3,64 @@
"rackCount": 8,
"crnCount": 2,
"stbCount": 18,
- "hpPosition": 0,
+ "hpPosition": 1,
"minBayNo": 1,
"floors": 1,
"racks": [
{
"type": "rack",
"id": "rack1",
- "top": 189,
- "left": 400,
+ "top": 250,
+ "left": 270,
"width": 1350,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 27
- },
- {
- "type": "rack",
- "id": "rack8",
- "top": 457,
- "left": 400,
- "width": 1350,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 27
- },
- {
- "type": "rack",
- "id": "rack7",
- "top": 430,
- "left": 400,
- "width": 1350,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 27
- },
- {
- "type": "rack",
- "id": "rack6",
- "top": 365,
- "left": 400,
- "width": 1350,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 27
- },
- {
- "type": "rack",
- "id": "rack5",
- "top": 338,
- "left": 400,
- "width": 1350,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 27
- },
- {
- "type": "rack",
- "id": "rack4",
- "top": 311,
- "left": 400,
- "width": 1350,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 27
- },
- {
- "type": "rack",
- "id": "rack3",
- "top": 283,
- "left": 400,
- "width": 1350,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 27
- },
- {
- "type": "rack",
- "id": "rack2",
- "top": 217,
- "left": 400,
- "width": 1350,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 27
- },
- {
- "type": "rack",
- "id": "rack9",
- "top": 500,
- "left": 300,
- "width": 1500,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 32
- },
- {
- "type": "rack",
- "id": "rack10",
- "top": 570,
- "left": 300,
- "width": 656,
- "height": 23,
- "minBayNo": 1,
- "maxBayNo": 14
- },
- {
- "type": "rack",
- "id": "rack11",
- "top": 570,
- "left": 1143,
- "width": 656,
- "height": 23,
- "minBayNo": 19,
- "maxBayNo": 14
- }
+ "height": 30,
+ "minBayNo": 2,
+ "maxBayNo": 17
+ }, {
+ "type": "rack",
+ "id": "rack2",
+ "top": 325,
+ "left": 270,
+ "width": 1350,
+ "height": 30,
+ "minBayNo": 2,
+ "maxBayNo": 17
+ }
],
"rackDescs": [
{
"type": "rackDescs",
- "id": "lb_desc14",
- "text": "銆嬨�嬨�嬪叆搴�",
- "top": 339,
- "left": 303,
- "width": 100,
- "height": 23
- },
- {
- "type": "rackDescs",
"id": "lb_desc13",
- "text": "銆嬨�嬨�嬪叆搴�",
- "top": 312,
- "left": 303,
+ "text": "銆嬨�嬨�嬪嚭搴�",
+ "top": 360,
+ "left": 1600,
"width": 100,
"height": 23
},
{
"type": "rackDescs",
"id": "lb_desc12",
- "text": "銆娿�娿�� 鍑哄簱",
- "top": 459,
- "left": 303,
+ "text": "銆娿�娿�� 鍏ュ簱",
+ "top": 220,
+ "left": 1600,
"width": 100,
"height": 23
},
- {
- "type": "rackDescs",
- "id": "lb_desc11",
- "text": "銆娿�娿�� 鍑哄簱",
- "top": 190,
- "left": 303,
- "width": 100,
- "height": 23
- },
- {
- "type": "rackDescs",
- "id": "lb_desc10",
- "text": "#10",
- "top": 570,
- "left": 1800,
- "width": 33,
- "height": 23
- },
- {
- "type": "rackDescs",
- "id": "lb_desc9",
- "text": "#9",
- "top": 500,
- "left": 1800,
- "width": 33,
- "height": 23
- },
- {
- "type": "rackDescs",
- "id": "lb_desc8",
- "text": "#8",
- "top": 460,
- "left": 1750,
- "width": 33,
- "height": 23
- },
- {
- "type": "rackDescs",
- "id": "lb_desc7",
- "text": "#7",
- "top": 430,
- "left": 1750,
- "width": 33,
- "height": 23
- },
- {
- "type": "rackDescs",
- "id": "lb_desc6",
- "text": "#6",
- "top": 370,
- "left": 1750,
- "width": 33,
- "height": 23
- },
- {
- "type": "rackDescs",
- "id": "lb_desc5",
- "text": "#5",
- "top": 340,
- "left": 1750,
- "width": 33,
- "height": 23
- },
- {
- "type": "rackDescs",
- "id": "lb_desc4",
- "text": "#4",
- "top": 310,
- "left": 1750,
- "width": 33,
- "height": 23
- },
- {
- "type": "rackDescs",
- "id": "lb_desc3",
- "text": "#3",
- "top": 280,
- "left": 1750,
- "width": 33,
- "height": 23
- },
{
"type": "rackDescs",
"id": "lb_desc2",
- "text": "#2",
- "top": 218,
- "left": 1750,
+ "text": "#1",
+ "top": 330,
+ "left": 233,
"width": 33,
"height": 23
},
{
"type": "rackDescs",
"id": "lb_desc1",
- "text": "#1",
- "top": 190,
- "left": 1750,
+ "text": "#2",
+ "top": 255,
+ "left": 235,
"width": 33,
"height": 23
}
@@ -251,35 +70,17 @@
"type": "crane",
"id": "crn-1",
"text": "1",
- "top": 250,
- "left": 350,
- "width": 101,
+ "top": 285,
+ "left": 270,
+ "width": 100,
"height": 32
},
{
"type": "track",
"id": "lb_track3",
"text": "",
- "top": 265,
- "left": 400,
- "width": 1350,
- "height": 1
- },
- {
- "type": "crane",
- "id": "crn-2",
- "text": "2",
- "top": 393,
- "left": 350,
- "width": 101,
- "height": 29
- },
- {
- "type": "track",
- "id": "lb_track4",
- "text": "",
- "top": 408,
- "left": 400,
+ "top": 302,
+ "left": 270,
"width": 1350,
"height": 1
}
@@ -305,75 +106,48 @@
"stns": [
{
"type": "stn",
- "id": "site-101",
- "text": "101",
- "top": 218,
- "left": 260,
- "width": 65,
- "height": 22
+ "id": "site-201",
+ "text": "201",
+ "top": 250,
+ "left": 1620,
+ "width": 70,
+ "height": 30
},
{
"type": "stn",
- "id": "site-102",
- "text": "102",
- "top": 218,
- "left": 330,
- "width": 68,
- "height": 22
+ "id": "site-202",
+ "text": "202",
+ "top": 250,
+ "left": 1691,
+ "width": 70,
+ "height": 30
},
{
"type": "stn",
- "id": "site-103",
- "text": "103",
- "top": 284,
- "left": 260,
- "width": 65,
- "height": 22
+ "id": "site-203",
+ "text": "203",
+ "top": 325,
+ "left": 1620,
+ "width": 70,
+ "height": 30
},
{
"type": "stn",
- "id": "site-104",
- "text": "104",
- "top": 284,
- "left": 330,
- "width": 68,
- "height": 22
+ "id": "site-204",
+ "text": "204",
+ "top": 325,
+ "left": 1691,
+ "width": 70,
+ "height": 30
},
{
"type": "stn",
- "id": "site-105",
- "text": "105",
- "top": 367,
- "left": 260,
- "width": 65,
- "height": 22
- },
- {
- "type": "stn",
- "id": "site-106",
- "text": "106",
- "top": 367,
- "left": 330,
- "width": 68,
- "height": 22
- },
- {
- "type": "stn",
- "id": "site-107",
- "text": "107",
- "top": 431,
- "left": 260,
- "width": 65,
- "height": 22
- },
- {
- "type": "stn",
- "id": "site-108",
- "text": "108",
- "top": 431,
- "left": 330,
- "width": 68,
- "height": 22
+ "id": "site-205",
+ "text": "205",
+ "top": 325,
+ "left": 945,
+ "width": 83,
+ "height": 30
}
]
}
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 14864cd..d859ab7 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -600,12 +600,12 @@
crns[i].bay = 1
}
- var offSet = 350;
+ var offSet = 1620;
if(crns[i].bay === 1){
crnEl.animate({left: offSet + 'px'}, 1000);
} else {
- let lf = (offSet + (crns[i].bay - 1 )* 50);
+ let lf = (offSet - (crns[i].bay - 1 )* 84);
crnEl.animate({left: lf + 'px'}, 1000);
}
--
Gitblit v1.9.1