|
|
@@ -244,7 +244,8 @@ public class PlcUtil {
|
|
|
// 修改设备的禁用开关
|
|
|
public static Boolean changeEnable(S7PLC s7PLC,Boolean result){
|
|
|
try{
|
|
|
- s7PLC.writeBoolean("DB9.30.4",result); // AB
|
|
|
+ s7PLC.writeBoolean("DB9.18.3",result); // AB
|
|
|
+// s7PLC.writeBoolean("DB9.30.4",result); // CD
|
|
|
return true;
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
@@ -256,7 +257,9 @@ public class PlcUtil {
|
|
|
public static Boolean getEnable(S7PLC s7PLC){
|
|
|
Boolean ret = false;
|
|
|
try{
|
|
|
- ret = s7PLC.readBoolean("DB9.30.4");
|
|
|
+ ret = s7PLC.readBoolean("DB9.18.3"); // AB
|
|
|
+// ret = s7PLC.readBoolean("DB9.30.4"); // CD
|
|
|
+
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|