1/25/2018 10:35 AM | |
Joined: 9/23/2005 Last visit: 9/12/2025 Posts: 5116 Rating:
|
And how many pulses you'd like to count? Up to ifinity? Then it's gonna be quite challenging. Simple solution - as often simple solutions are, it's quite limited but maybe it will be enough in this case: Start with building a counter based on a DINT data type. I.e. each pulse increment it by 1. For displaying use different variable of a REAL type. Take the count, convert it to REAL, multiply by your magic number. But you must be aware - the counter will overflow after 2**32-1. Max readout - 412 316 860.416. However only first 6-7 digits can be shown. I.e. if you have 1 pulse each milisecond, it will overflow after ca. 49 days. You may be interested in further reading. |
Last edited by: jacek d at: 1/25/2018 10:39:27 AMRegards, |
|
This contribution was helpful to
2 thankful Users |
1/25/2018 2:24 PM | |
Joined: 7/9/2015 Last visit: 8/29/2025 Posts: 4443 Rating:
|
Hi, please check the following FAQ - ...better use DINT... How do you check real numbers for parity?Regards, Towome |
Last edited by: Towome at: 1/25/2018 2:25:23 PM
|
|
Follow us on