Autor Thema: counter reset  (Gelesen 187 mal)

Offline srd

  • Jr. Member
  • **
  • Beiträge: 33
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

  • Full Member
  • ***
  • Beiträge: 360
  • 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 »
HTH & HAND

Manchmal, mitten in der Nacht da schleiche Ich mich zu meinem Wecker wenn er schläft, und brülle : NA WIE FÜHLT SICH DAS AN HÄÄ???

Offline weiss_nix

  • Full Member
  • ***
  • Beiträge: 360
  • 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 »
HTH & HAND

Manchmal, mitten in der Nacht da schleiche Ich mich zu meinem Wecker wenn er schläft, und brülle : NA WIE FÜHLT SICH DAS AN HÄÄ???

Offline weiss_nix

  • Full Member
  • ***
  • Beiträge: 360
  • 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
HTH & HAND

Manchmal, mitten in der Nacht da schleiche Ich mich zu meinem Wecker wenn er schläft, und brülle : NA WIE FÜHLT SICH DAS AN HÄÄ???