6/9/2009 8:18 AM | |
Joined: 10/22/2008 Last visit: 7/26/2024 Posts: 369 Rating:
|
I use 313C. How to reset sfb47 count? without HW comparision, so the output stays LOW. |
6/9/2009 2:37 PM | |
Joined: 1/4/2008 Last visit: 9/2/2024 Posts: 703 Rating:
|
Hello, when you need a few independent countings then you could choose theoperating mode "Count continuously" and don't stop the counting with the gate function. The counter will count continuously, when reaches its limit (2147483647) itresumes the count from zero. Theindividual countings you get by external remembering (in some DB)of appropriate start value for each objectand then subtraction from theactual count value. Take care about the count value overflow (can use the calculation I wrote here). The countig then will be independent at all, only bad thing is the inaccuracy (delay)due to the CPU cycle, there will be a difference between the actual count value and the value youget from the module for calculating so the reaction could be little bit slower then module output depending on counter by HW config. The number of revolutions you get from the calculated position differencedividing bythe value which means the number of pulses per revolution (in your case 100). Regards Sydney |
Follow us on