Hi rsdoran.
You put up a valid point.
When it comes to timers and counters in S7, then there are several possibilities.
The "S5 style" timers and counters are to my opinion only available in order to make S7 backwards compatible with S5.
They are limited, cumbersome to use and best avoided to my opinion.
Then there are the "IEC style" timers and counters implemented in SFBs.
They work as intended. Drawback is that you have to assign an instance DB to each or to work with "multiple instance". This has its own disadvantages.
Lastly, there are many kinds of "do it yourself" timers and counters.
As a counter is so easy to implement, I prefer to go this way.
A timer is a little bit more difficult.
You put up a valid point.
When it comes to timers and counters in S7, then there are several possibilities.
The "S5 style" timers and counters are to my opinion only available in order to make S7 backwards compatible with S5.
They are limited, cumbersome to use and best avoided to my opinion.
Then there are the "IEC style" timers and counters implemented in SFBs.
They work as intended. Drawback is that you have to assign an instance DB to each or to work with "multiple instance". This has its own disadvantages.
Lastly, there are many kinds of "do it yourself" timers and counters.
As a counter is so easy to implement, I prefer to go this way.
A timer is a little bit more difficult.