Autor Thema: counter reset  (Gelesen 2879 mal)

Offline srd

  • Jr. Member
  • **
  • Beiträge: 92
counter reset
« am: November 20, 2020, 07:45:52 Vormittag »
we need to reset a counter on the 1st of every month at 10:00 and reset another counter on the 1st of jan at 10:00 every year. when doing a plausability check it always says the the yearly counter (HY) should have at least one on off day month year. For the monthly we have just put 1 in the day for on and off and a 1 in the day and month for the yearly one. Should this work or is there another way we should be doing it.

Offline weiss_nix

  • Sr. Member
  • ****
  • Beiträge: 594
  • it has to be easy, it's a easy!
Antw:counter reset
« Antwort #1 am: November 20, 2020, 09:38:03 Vormittag »
Hello srd!

In the attached example there is no problem with the plausibility check.
For the simulation with time lapse you will probably have to set the daily switching time to 12 hours.
You can carry out the desired reset with the rising edges.

best regards

PS: You can also generate the required impulses by evaluating the real-time clock ...
« Letzte Änderung: November 20, 2020, 11:08:19 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!

Offline weiss_nix

  • Sr. Member
  • ****
  • Beiträge: 594
  • it has to be easy, it's a easy!
Antw:counter reset
« Antwort #2 am: November 21, 2020, 10:51:32 Vormittag »
Hello srd,

In the appendix you will find a more or less simple example in which the real-time clock is used.

regards
« Letzte Änderung: November 21, 2020, 10:59:07 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!

Offline weiss_nix

  • Sr. Member
  • ****
  • Beiträge: 594
  • it has to be easy, it's a easy!
Antw:counter reset
« Antwort #3 am: November 25, 2020, 14:18:06 Nachmittag »
@srd: I would be interested if the answers were helpful ...

regards
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!

Offline srd

  • Jr. Member
  • **
  • Beiträge: 92
Antw:counter reset
« Antwort #4 am: Dezember 07, 2020, 16:37:30 Nachmittag »
Cheers for the replies they were a great help