Hello everyone, i know there are some posts about this topic but none convinced me.
I have an input pulse that comes for every m3 of water that flows.
So my idea is to have a timer running continously with a preset of 30 sec.
Then i have a counter, that counts up every time that the pulse comes.
So to calculate the instant flow i would do the following calculation as I have 1 m3 for each pulse:
instantflow=counter.acc/timer.pre
This would give me the instant flow in m3/s
This calculation will be done when timer.dn bit is enable
Is this idea correct ??
Thanks
I have an input pulse that comes for every m3 of water that flows.
So my idea is to have a timer running continously with a preset of 30 sec.
Then i have a counter, that counts up every time that the pulse comes.
So to calculate the instant flow i would do the following calculation as I have 1 m3 for each pulse:
instantflow=counter.acc/timer.pre
This would give me the instant flow in m3/s
This calculation will be done when timer.dn bit is enable
Is this idea correct ??
Thanks