取货出问题 手动完成信号处理
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -37,7 +37,7 @@
|
|||||||
<spring-framework.version>5.3.39</spring-framework.version>
|
<spring-framework.version>5.3.39</spring-framework.version>
|
||||||
<hutool.version>5.8.27</hutool.version>
|
<hutool.version>5.8.27</hutool.version>
|
||||||
<lombok.version>1.18.30</lombok.version>
|
<lombok.version>1.18.30</lombok.version>
|
||||||
<HslCommunication.version>3.7.0</HslCommunication.version>
|
<HslCommunication.version>2.0.0</HslCommunication.version>
|
||||||
<mybatis-plus.version>3.5.2</mybatis-plus.version>
|
<mybatis-plus.version>3.5.2</mybatis-plus.version>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ public class PlcDdjRead extends Thread {
|
|||||||
|
|
||||||
void closeServer() {
|
void closeServer() {
|
||||||
if (readWriteNet != null) {
|
if (readWriteNet != null) {
|
||||||
readWriteNet.ConnectClose();
|
siemensS7Net.ConnectClose();
|
||||||
}
|
}
|
||||||
setIsConnect(false);
|
setIsConnect(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -417,6 +417,7 @@ public abstract class BaseDdjThread implements Runnable, DdjThreadInterface {
|
|||||||
*/
|
*/
|
||||||
if (ddj.getCzfs() == 5 && ddj.getSbzt() == 0 && ddj.getJdbz() == 5) {
|
if (ddj.getCzfs() == 5 && ddj.getSbzt() == 0 && ddj.getJdbz() == 5) {
|
||||||
Long rwh = ddj.getRwh();
|
Long rwh = ddj.getRwh();
|
||||||
|
Integer hczt = ddj.getHczt();
|
||||||
//完成作业
|
//完成作业
|
||||||
DdjDeviceExecutionQueue ddjDeviceExecutionQueue = ddjDeviceExecutionQueueService.selectDdjDeviceExecutionQueueByRwh(rwh, ddj.getId());
|
DdjDeviceExecutionQueue ddjDeviceExecutionQueue = ddjDeviceExecutionQueueService.selectDdjDeviceExecutionQueueByRwh(rwh, ddj.getId());
|
||||||
if (ObjUtil.isNotNull(ddjDeviceExecutionQueue)) {
|
if (ObjUtil.isNotNull(ddjDeviceExecutionQueue)) {
|
||||||
@@ -428,6 +429,11 @@ public abstract class BaseDdjThread implements Runnable, DdjThreadInterface {
|
|||||||
}
|
}
|
||||||
} else if (ddjDeviceExecutionQueue.getRwlx() == 4) {
|
} else if (ddjDeviceExecutionQueue.getRwlx() == 4) {
|
||||||
ddjTaskFinish(rwh, ddj.getId(), 2);
|
ddjTaskFinish(rwh, ddj.getId(), 2);
|
||||||
|
} else if (ddjDeviceExecutionQueue.getRwlx() == 1) {
|
||||||
|
if (hczt==0){
|
||||||
|
//回传完成信号
|
||||||
|
ddjTaskFinish(rwh, ddj.getId(), 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user