现场调度修改
This commit is contained in:
@@ -182,11 +182,10 @@ public class ScheduleThread {
|
||||
plcDdj5ReadCustomThread.getThread().start();
|
||||
|
||||
}
|
||||
/*plcDdj2ReadCustomThread.getThread().start();
|
||||
plcDdj3ReadCustomThread.getThread().start();
|
||||
plcDdj4ReadCustomThread.getThread().start();
|
||||
plcDdj5ReadCustomThread.getThread().start();
|
||||
plcDdj6ReadCustomThread.getThread().start();*/
|
||||
if (plcDdj6ReadCustomThread!=null){
|
||||
plcDdj6ReadCustomThread.getThread().start();
|
||||
|
||||
}
|
||||
isRun = true;
|
||||
}
|
||||
|
||||
@@ -215,11 +214,10 @@ public class ScheduleThread {
|
||||
ddj5CustomThread.thread.start();
|
||||
|
||||
}
|
||||
/*ddj2CustomThread.thread.start();
|
||||
ddj3CustomThread.thread.start();
|
||||
ddj4CustomThread.thread.start();
|
||||
ddj5CustomThread.thread.start();
|
||||
ddj6CustomThread.thread.start();*/
|
||||
if (ddj6CustomThread!=null){
|
||||
ddj6CustomThread.thread.start();
|
||||
|
||||
}
|
||||
isRun2 = true;
|
||||
}
|
||||
|
||||
@@ -232,11 +230,15 @@ public class ScheduleThread {
|
||||
plcDdj1ReadCustomThread.runnable.isRun = false;
|
||||
plcDdj1ReadCustomThread.thread.interrupt();
|
||||
plcDdj2ReadCustomThread.runnable.isRun = false;
|
||||
plcDdj2ReadCustomThread.thread.interrupt();
|
||||
plcDdj3ReadCustomThread.runnable.isRun = false;
|
||||
plcDdj3ReadCustomThread.thread.interrupt();
|
||||
plcDdj4ReadCustomThread.runnable.isRun = false;
|
||||
plcDdj4ReadCustomThread.thread.interrupt();
|
||||
plcDdj5ReadCustomThread.runnable.isRun = false;
|
||||
plcDdj5ReadCustomThread.thread.interrupt();
|
||||
plcDdj6ReadCustomThread.runnable.isRun = false;
|
||||
plcDdj6ReadCustomThread.thread.interrupt();
|
||||
plcReadInit();
|
||||
isRun = false;
|
||||
}
|
||||
@@ -247,8 +249,18 @@ public class ScheduleThread {
|
||||
public void stopAllThread2() {
|
||||
monitoringCustomThread.runnable.isRun = false;
|
||||
monitoringCustomThread.thread.interrupt();
|
||||
ddj1CustomThread.runnable.isRun = false;
|
||||
ddj1CustomThread.thread.interrupt();
|
||||
ddj2CustomThread.runnable.isRun = false;
|
||||
ddj2CustomThread.thread.interrupt();
|
||||
ddj3CustomThread.runnable.isRun = false;
|
||||
ddj3CustomThread.thread.interrupt();
|
||||
ddj4CustomThread.runnable.isRun = false;
|
||||
ddj4CustomThread.thread.interrupt();
|
||||
ddj5CustomThread.runnable.isRun = false;
|
||||
ddj5CustomThread.thread.interrupt();
|
||||
ddj6CustomThread.runnable.isRun = false;
|
||||
ddj6CustomThread.thread.interrupt();
|
||||
scheduleInit();
|
||||
isRun2 = false;
|
||||
}
|
||||
|
||||
@@ -43,20 +43,32 @@ public class Ddj5Thread extends BaseDdjThread {
|
||||
ssjList.put("outSsj2", outSsj2);
|
||||
|
||||
//初始化巷道口 排 列 层
|
||||
roadwayMap.put("L1003", Arrays.asList(1, 1, 1));
|
||||
roadwayMap.put("L1004", Arrays.asList(2, 1, 1));
|
||||
roadwayMap.put("L1003", Arrays.asList(1, 0, 1));
|
||||
roadwayMap.put("L1004", Arrays.asList(2, 0, 1));
|
||||
//未扫码 回退任务号 无入库任务在此基础+100
|
||||
roadwayRollback.put("L1003", 94);
|
||||
roadwayRollback.put("L1004", 95);
|
||||
|
||||
//初始化称重设备连接ip port
|
||||
czRoadwayMap.put("L1003", "172.19.40.216:4001");
|
||||
czRoadwayMap.put("L1004", "172.19.40.217:4001");
|
||||
|
||||
/*czOverMap.put("L1003", "DB502.12");
|
||||
czOverMap.put("L1004", "DB502.26");*/
|
||||
|
||||
outJobMap.put("L1003", "DB502.38");
|
||||
outJobMap.put("L1004", "DB502.52");
|
||||
|
||||
log.info("Ddj5Thread init");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public HashMap<String, Object> getParamMap(String trayCode,Integer height,double weight) {
|
||||
HashMap<String, Object> paramMap = new HashMap<>();
|
||||
paramMap.put("trayCode", trayCode);
|
||||
paramMap.put("warehouseId",WAREHOUSE_02);
|
||||
paramMap.put("roadwayId",ROADWAY_ID_02);
|
||||
paramMap.put("roadwayId",ROADWAY_ID_05);
|
||||
paramMap.put("height",height);
|
||||
paramMap.put("weight",weight);
|
||||
return paramMap;
|
||||
@@ -66,7 +78,7 @@ public class Ddj5Thread extends BaseDdjThread {
|
||||
public MydoJob getOutJobParam() {
|
||||
MydoJob mydoJob = new MydoJob();
|
||||
mydoJob.setWarehouseId(WAREHOUSE_02);
|
||||
mydoJob.setRoadwayId(String.valueOf(ROADWAY_ID_02));
|
||||
mydoJob.setRoadwayId(String.valueOf(ROADWAY_ID_05));
|
||||
mydoJob.setStatus("1");
|
||||
|
||||
return mydoJob;
|
||||
|
||||
@@ -43,11 +43,22 @@ public class Ddj6Thread extends BaseDdjThread {
|
||||
ssjList.put("outSsj2", outSsj2);
|
||||
|
||||
//初始化巷道口 排 列 层
|
||||
roadwayMap.put("L1005", Arrays.asList(1, 1, 1));
|
||||
roadwayMap.put("L1006", Arrays.asList(2, 1, 1));
|
||||
roadwayMap.put("L1005", Arrays.asList(1, 0, 1));
|
||||
roadwayMap.put("L1006", Arrays.asList(2, 0, 1));
|
||||
//未扫码 回退任务号 无入库任务在此基础+100
|
||||
roadwayRollback.put("L1005", 96);
|
||||
roadwayRollback.put("L1006", 97);
|
||||
|
||||
//初始化称重设备连接ip port
|
||||
czRoadwayMap.put("L1005", "172.19.40.218:4001");
|
||||
czRoadwayMap.put("L1006", "172.19.40.219:4001");
|
||||
|
||||
/*czOverMap.put("L1003", "DB502.12");
|
||||
czOverMap.put("L1004", "DB502.26");*/
|
||||
|
||||
outJobMap.put("L1005", "DB502.66");
|
||||
outJobMap.put("L1006", "DB502.80");
|
||||
|
||||
log.info("Ddj6Thread init");
|
||||
}
|
||||
|
||||
@@ -57,10 +68,9 @@ public class Ddj6Thread extends BaseDdjThread {
|
||||
HashMap<String, Object> paramMap = new HashMap<>();
|
||||
paramMap.put("trayCode", trayCode);
|
||||
paramMap.put("warehouseId",WAREHOUSE_02);
|
||||
paramMap.put("roadwayId",ROADWAY_ID_03);
|
||||
paramMap.put("roadwayId",ROADWAY_ID_06);
|
||||
paramMap.put("height",height);
|
||||
paramMap.put("weight",weight);
|
||||
|
||||
return paramMap;
|
||||
}
|
||||
|
||||
@@ -68,7 +78,7 @@ public class Ddj6Thread extends BaseDdjThread {
|
||||
public MydoJob getOutJobParam() {
|
||||
MydoJob mydoJob = new MydoJob();
|
||||
mydoJob.setWarehouseId(WAREHOUSE_02);
|
||||
mydoJob.setRoadwayId(String.valueOf(ROADWAY_ID_03));
|
||||
mydoJob.setRoadwayId(String.valueOf(ROADWAY_ID_06));
|
||||
mydoJob.setStatus("1");
|
||||
|
||||
return mydoJob;
|
||||
@@ -86,4 +96,5 @@ public class Ddj6Thread extends BaseDdjThread {
|
||||
return "1";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user