Mag
Hi.
It´s me again.

I´m actually trying to program an filling container supervised by an ultrasonic sensor (LC1).
For that I get a analog signal which will be scaled within my Typ_AIN function block.

I want to fill out an exact amount of water.
My intention is to save the actual water level in the variable LC1_PVreal.

After that I start my fill out operation by opening an external valve.
So I can subtract the actual analog value from the previous saved variable LC1_PVreal until my desired
water level is reached.

So far so good.

But how can I save my variable LC1_PVreal only one times?
After every task cycle it would be overrided by the actual analog value.

Is there any way to switch on/off the MOVE function block to control the save-process?

Would you please help me or give me a hint?
Reply 0 0
thiagoralves
Double click your MOVE block and enable “execution control”. This will show an extra pin on the block called EN that controls when you want the block to be executed. If EN is FALSE, the block will be skipped and the MOVE operation won’t happen
Reply 0 0
Mag
Hi Thiago.
Thank you very much. 
Reply 0 0
Reply