easy-forum
Deutsch - Hardware => MFD-Titan® => Thema gestartet von: mebots am September 11, 2008, 23:21:53 Nachmittag
-
Hello,
Need some help with a total counter.
Want to make a total liter counter.
Have the following parameters:
Q01 output to a pump
Pump gives 54 L/h (changed by display)
So during Q01 is high, I want to calculate the liters which are dosed.
With regards,
Martijn
-
Hi Horst,
It can be 1 second or x seconds, I use a MFD-80B+CP8-ME+R16
With regards,
Martijn
-
Hello Horst,
It's a nice idea to do it on this way, I was thinking to do it on this way:
54 / 3600 then you know the liters per second.
But your solution is realy nice but not accurate enough.
normal you must get 0.9 liter per minute with 54 L/h but I get 0.64.
Is there a way to make it better?
Thank you.
Martijn
-
Hi Horst,
Thanx for this sample it works good.
have make some modifications.
How can i store the value of md20 and when q01 is again high,
md20 counts again.
sample:
md20 = 1,10 => q01 = 0 => store md20 => q01 = 1 => count again (1,10 + md20)
with regards,
Martijn
-
Hi Horst,
It's working.
But I have a question, why is the following example not working.
Maybe you can help me also with the following problem.
The pumps I use give 122 pulses / per minute.
Now I want to make a batch, push a button and the the pump need x pulses to get x liters
Input push button (I1)
Input on screen (Liters) MW10
Pump capacity (120 l/h)
Pulses for pump 122 p/min (minimum length = 15 mS)
120 l/h / 60 minutes = 2 liters / minute => 122 p/min
So if I need for example 1 liter (input) I need 122 / 2 = 61 pulses
How can i make this ?
With regards,
Martijn
-
Hello Horst,
Everything is working also batch :)
Have only one problem how can I reset the total counter to 0.
Thanx for helping me.
with regards,
Martijn
-
Hello Horst,
With here the complete program :)
The problem is that the 3 counters in the consumption menu must be reset by pressing Del.
Also I can not get one alarm screen you see, have now made an overlay screen for it.
But this is not handy :-[, maybe you know how this works, because when I activate the alarm
screen it come not back to the original screen.
Project description:
2 conductivity meters in 2 baths, and 5 pumps, 1 switch to switch between low and high concentration
P1 runs in 100 % at the conductivity I1 analog
P2 runs on P1 (interlock between them) in menu only give the ratio (settings_2)
P3 runs in 100 % at the conductivity I2 analog
P4 runs on P3 (interlock between them) in menu only give the ratio (settings_2)
P5 runs on P1 with ratio given in menu (settings_2)
P5 can also run on batch mode give the amount of liters and it's runs.
Also conductivity in bath 1 can be conductivity in bath 2 so SP1 = SP2 on that moment
Screens:
Actual_1 -> Actual values on the concentration in bath 1 and 2
Actual_2 -> SP1 and SP2 in low and High Concentration bath 1 and 2
Consumption -> total consumption prod1, prod2, prod3. (del = reset -> don't work)
Settings_1 -> pump capacity for pump 1, 3, 5
Settings_2 -> ratio pump 2, 4, 5 on pump 1 and 2
Settings_3 -> Setpoint bath 1 = Setpoint bath 2
Settings_4 -> Max dosing time, time before dosing, time before empty alarm
Batch -> Batch for pump5 (prod3)
Alarm -> Alarms.
With regards,
Martijn