
Gregg (Customer) asked a question.
Is there a function to get rate/frequency from the P1-02HSC card or if not what is a good way to get reliable time in terms of like a timer. We included arduino-timer.h and it seems those timers are not reliable.

Gregg (Customer) asked a question.
Copyright © 1999-2023 AutomationDirect. ALL RIGHTS RESERVED
found knowledge article that may help
https://community.automationdirect.com/s/article/PROGRAMMING-EMAMPLE-Productivity-Series-HSC-rate-calculation
Thanks for the link. That is for the productivity tool set and we are using the Arduinio stuff where the issue is the timers in the existing libraries are not reliable/consistent in terms of time.
Hi Gregg
There is no function to get rate / frequency from the P1AM using the P1-02HSC card.
Here are the samples on the HSC card on Github.These will mainly get the position.
https://github.com/facts-engineering/P1AM/tree/master/examples/SpecialtyModules/HSC
You would have to create your own function based on the time rate you need to update the rate. The larger the time base the more accurate the rate.
Regards,
Garry
https://accautomation.ca/series/productivity-open-arduino-compatible-industrial-controller/