Need help regarding introduing delay in script execution
Posted: Friday 08 February 2019 11:35
Hello Blocky Fans...
I have been particularly stuck at a timing and delay issue in using my Blocky. I am automating my Water motor
where water comes during a particular day (Municipal Corp. water supply) and my tank in Ground floor
has to be manually switched ON which pumps water to an overhead tank. I have placed 1 sensor in my tank
(for Dry Run - when pump is ON but no water is getting pumped in the tank).
I want to start a Water motor between a Pre-set time and also check for a condition for Dry-Run. I want to
start my water motor during a particular time slot - first for 5 mins (the time it takes for water from pump to reach
overhead tank) and if no water is coming then Switch OFF the motor for say 3 minutes and then re-start the motor
in the hope that water supply has resumed and Pump can now pump up the water to the overhead tank. So this loop
should continue for the water timing and if water is getting pumped then continue the pump till complete time slot.
I tried below Blocky, but somehow the overall Blocky script does not work and motor switches On invariably. I want to
add delay while Blocky executes one step and then proceeds on checking next condition. In my case I have setup a Dummy switch
"Water Pump Flag" which I manually trigger to control a User variable. Trouble is that when I manually trigger the Water Pump Flag switch,
the motor immediately turns OFF and does not display a delay in turning off behavior.
I hope i was able to explain my requirements.
Many Thanks
T
I have been particularly stuck at a timing and delay issue in using my Blocky. I am automating my Water motor
where water comes during a particular day (Municipal Corp. water supply) and my tank in Ground floor
has to be manually switched ON which pumps water to an overhead tank. I have placed 1 sensor in my tank
(for Dry Run - when pump is ON but no water is getting pumped in the tank).
I want to start a Water motor between a Pre-set time and also check for a condition for Dry-Run. I want to
start my water motor during a particular time slot - first for 5 mins (the time it takes for water from pump to reach
overhead tank) and if no water is coming then Switch OFF the motor for say 3 minutes and then re-start the motor
in the hope that water supply has resumed and Pump can now pump up the water to the overhead tank. So this loop
should continue for the water timing and if water is getting pumped then continue the pump till complete time slot.
I tried below Blocky, but somehow the overall Blocky script does not work and motor switches On invariably. I want to
add delay while Blocky executes one step and then proceeds on checking next condition. In my case I have setup a Dummy switch
"Water Pump Flag" which I manually trigger to control a User variable. Trouble is that when I manually trigger the Water Pump Flag switch,
the motor immediately turns OFF and does not display a delay in turning off behavior.
I hope i was able to explain my requirements.
Many Thanks
T