10/12/2020 10:38 AM | |
Posts: 7 Rating:
|
Hi I know this is a very old post, but I am facing similar issues. I have connected the same encoder input (single channel A) to I0.0 and I0.1. I 0.0 is set as frequency measurement. I0.1 is set as counter. Funny thing is- the frequency seems to be correct at varying speed. However, the pulse count obtained from HSC using I0.1 varies for varying speed. Example for lower speeds it is 1024 ppr. but for higher speeds I get around 700 ppr. The ppr stays consistent for that particular speed. But, isnt it supposed to be the same for any speed as long as it does not exceed the hardware capacity (100KHZ in my case).. Please kindly advise whats going wrong. Thanks, Rueben ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 10/12/2020 13:58:49New subject after splitting |
|
2/1/2021 3:36 AM | |
Posts: 7 Rating:
|
Thanks for the suggestion guys, But, I have already tried changing the input filters with similar results. I have attached sample program where I used the encoders with shift register. Please have a look at it [snip] The encoder pulses are combined (50 pulses) to create a shifting pulse. The entire program is done in ladder (including the shift). I tried using arrays or bool and shift inside the script, but somehow it turned out to be slower (as the entire array had to be inside a loop). But, thats a concern for later :). Please have a look as see if anything can be changed. thx Rueben AttachmentEncoder_Shift_Example.zip (235 Downloads) |
Last edited by: Jen_Moderator at: 02/01/2021 12:21:56Removed link and added file as an attachment. |
|
Follow us on