easy-forum

Deutsch - Software => easySoft => Thema gestartet von: srd am November 20, 2020, 07:45:52 Vormittag

Titel: counter reset
Beitrag von: srd 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.
Titel: Antw:counter reset
Beitrag von: weiss_nix 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 ...
Titel: Antw:counter reset
Beitrag von: weiss_nix 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
Titel: Antw:counter reset
Beitrag von: weiss_nix am November 25, 2020, 14:18:06 Nachmittag
@srd: I would be interested if the answers were helpful ...

regards
Titel: Antw:counter reset
Beitrag von: srd am Dezember 07, 2020, 16:37:30 Nachmittag
Cheers for the replies they were a great help