Autor Thema: monthly counter  (Gelesen 2031 mal)

Offline srd

  • Full Member
  • ***
  • Beiträge: 120
monthly counter
« am: April 16, 2024, 12:51:54 Nachmittag »
i am trying to do a program in LD that counts a pulse from a water meter from the 1st apr until the 31st oct, i need to show on the screen the saved reading for each month and then on the 1st of april all saved totals reset and start again until october. i kknow i can save the total as a mw but how can i show each month and have them all saved on the screen until the start of the next count year. so for example star counting the pulses for april and when the may starts we want the april count to stay on the screen until the cycle starts again next year and thiis is to happen with each month. Cheers

Offline weiss_nix

  • Sr. Member
  • ****
  • Beiträge: 608
  • it has to be easy, it's a easy!
Antw:monthly counter
« Antwort #1 am: April 17, 2024, 10:00:58 Vormittag »
Hi srd.

You will find a programming approach in the appendix.
The counters must be set remanently. For the months to be counted, you only have to copy networks 2-4 and parameterize them accordingly.

But I think that the project could be solved much more elegantly in ST.

Regards
« Letzte Änderung: April 17, 2024, 10:14:00 Vormittag von weiss_nix »
Sollte ich (gefährliches) Halbwissen verbreiten, beuge ich demütig mein Haupt mit der Gewissheit versagt zu haben!
WICHTIG: Sämtliche Programme dienen lediglich der Veranschaulichung von Funktionen und sind nicht für den Produktiveinsatz geeignet!