AC500 PM554 Onboard Fast counter
I have two high speed sensors that are inputs for PM554 ( terminal DI0 and DI1). I have an application where i need to reset the counter every 1000 counts (need 1000 sensor counts for sampling) and also, in the mean time need the total number of count value without stopping the Counter ( for both the inputs).
As a solution i thought of coping the function block and change the var of the function block so that one function block resets after (ACT1 and ACt2 value) reaches 1000. And the other function block use for normal counting. I tried but does not look like it's working.
Any advise on how to deal with the specific scenario.
Any suggestions will be appreciated.
a possible solution that I can not test at this time, is to write ciclically the two variables ACT 1 and ACT 2 on two different support registers, for example ACT1_app and ACT2_app and make a comparison of these records with your values 1000. You must create and test that the conditions to reset to zero the support variables are not influenced by the increase counting.
Hope this help you