easy-forum
Deutsch - Hardware => easyE4 => Thema gestartet von: srd am April 10, 2026, 23:10:33 Nachmittag
-
we have 7 boreholes which all go to counters to count how much they use daily. they now have a restiction on the amount of water they can take between any of the boreholes operating. is there a way of adding each of the counters so that when a limit is reached the pumps stop working until a next day reset. also the do not run all 7 boreholes all the time some basically we need to add up all the counters in operation on that day until they reach a set limit.
-
Hi srd ,
the solution depends on the programming language you use.
I think you use for counting the C-FB's. At these the RE input can be used for a reset of the counter.
The Counters have also a QV output.
In ST you can summerize it easily like:
MD1 := C01QV + C02QV + C03QV + C04QV + C05QV + C06QV + C07QV;
And then compare it with an IF clause:
IF MD1 >= 1000 THEN
;
END_IF;
In other programming languages you have to use multiple AR-FB's to summarize and the A-FB to compare.
Günter