优化调整
This commit is contained in:
@@ -72,9 +72,9 @@ public class PlcDdj1Read extends Thread {
|
||||
msgDdj.setYxxf(ParseUtil.optInt(24, ddsx));
|
||||
msgDdj.setXtxh(ParseUtil.optInt(26, ddsx));
|
||||
|
||||
msgDdj.setCurrentRow(ParseUtil.optInt(26, ddsx));
|
||||
msgDdj.setCurrentColumn(ParseUtil.optInt(26, ddsx));
|
||||
msgDdj.setCurrentFloor(ParseUtil.optInt(26, ddsx));
|
||||
msgDdj.setCurrentRow(ParseUtil.optInt(18, ddsx));
|
||||
msgDdj.setCurrentColumn(ParseUtil.optInt(18, ddsx));
|
||||
msgDdj.setCurrentFloor(ParseUtil.optInt(18, ddsx));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,8 @@ public class PlcDdj1Read extends Thread {
|
||||
|
||||
void closeServer() {
|
||||
if (readWriteNet != null) {
|
||||
readWriteNet.ConnectClose();
|
||||
// readWriteNet.ConnectClose();
|
||||
siemensS7Net.ConnectClose();
|
||||
}
|
||||
setIsConnect(false);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,8 @@ public class PlcDdj2Read extends Thread {
|
||||
|
||||
void closeServer() {
|
||||
if (readWriteNet != null) {
|
||||
readWriteNet.ConnectClose();
|
||||
// readWriteNet.ConnectClose();
|
||||
siemensS7Net.ConnectClose();
|
||||
}
|
||||
setIsConnect(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user