I have some trouble on my code for stepper motors and limit switchers…
I need to do 7 different movements in z- and x-axis, and for this, I’m using limit switchers so I can get the precise position, so it can repeat the same position over and over.
I’m doing one movement towards a limit switch. After that, I want to do another movement with another motor in a different direction towards a new limit switch.
Then I want the same motor, to go the opposite direction to another limit switch.
Then the other motor to another limit switch, and so on.
Any suggestions over how I should program it?
This is the program I’ve come up with so far, and it doesn’t work correctly:
The program will be an answer to this post since it is too many characters.
All kinds of help are appreciated, thanks in advance