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