8/6/2024 5:34 AM | |
Joined: 10/7/2005 Last visit: 12/20/2024 Posts: 3029 Rating: (1058) |
While a maximum value of 999 holds true for the legacy counters, you can (and arguably should) use IEC counters (i.e. CTU, CTD or CTUD). You can with these also decide to use SINT, UINT, UDINT (1200's and 1500's) or even ULINT (1500 only) as their datatype. A 64bit ULINT will allow you count up to maximum 18446744073709551615 so you probably won't have to worry about what happens if you reach that value (it will simply stop counting though should you reach it) |
Cheers |
|
This contribution was helpful to2 thankful Users |
Follow us on