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