|
|
@@ -813,19 +813,20 @@ public class ExecuteTheRecipe { |
|
|
|
if(!isopen) |
|
|
|
{ |
|
|
|
WritePLC("水池进水阀",true,null); |
|
|
|
} |
|
|
|
|
|
|
|
if(yw!=null) |
|
|
|
}else |
|
|
|
{ |
|
|
|
Object jsf= ReadPLC("水池进水阀"); |
|
|
|
if(jsf!=null && (boolean)jsf) |
|
|
|
if(yw!=null ) |
|
|
|
{ |
|
|
|
new Handler().postDelayed(new Runnable() { |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
WritePLC("水池进水阀",false,null); |
|
|
|
} |
|
|
|
}, (int)Math.round((Double.parseDouble(ConfigName.getInstance().AutomaticWaterRefillTime) * 1000))); |
|
|
|
Object jsf= ReadPLC("水池进水阀"); |
|
|
|
if(jsf!=null && (boolean)jsf) |
|
|
|
{ |
|
|
|
new Handler().postDelayed(new Runnable() { |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
WritePLC("水池进水阀",false,null); |
|
|
|
} |
|
|
|
}, (int)Math.round((Double.parseDouble(ConfigName.getInstance().AutomaticWaterRefillTime) * 1000))); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|