Good Evenign Jurs, i used your code in for three encoder and work very well.
I need to reset the encoder count with a proximity switch.
Can you help me to modifiy the code?
Thanks.
Good Evenign Jurs, i used your code in for three encoder and work very well.
I need to reset the encoder count with a proximity switch.
Can you help me to modifiy the code?
Thanks.
You have posted a new question in a very old Thread so I have suggested to the Moderator to move you to your own Thread.
If you want help with a program you need to post the program and tell us in detail what it actually does and what you want it to do that is different. See How to use the Forum
...R
PS ...When posting code please use the code button </>

so your code
looks like this
and is easy to copy to a text editor
When you sense the switch tripped simply clear the counter. This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil