10-29-2020 10:14 AM
sending a single step it was option, but it was very slow, i will give it a go again.
i appreciated the help.
10-29-2020 10:30 AM - edited 10-29-2020 10:30 AM
@Marckus wrote:
sending a single step it was option, but it was very slow, i will give it a go again.
i appreciated the help.
Well honestly you should not have to do this every time you move the stepper or even run the program.
Finding the number of steps to full extension and calculating the half way point should be a "calibration routine" that you run once to get your numbers. Then use those numbers until it falls out of acceptable operation and calibrate it again.
10-29-2020 01:35 PM
i have rewrote the code counting every single step, and it looks alright.
the final routine where i need to repeat the steps back and forward will have the 2 end stops sensors on to check the steps consistency.
thanks for the suggestions.
Cheers,
Marco
10-29-2020 03:07 PM
You really need to go back to the tutorials. Most of your code is just plain silly!
Example (focus on the green stuff!):
(Also NEVER EVER delete the labels of controls and indicators (e.g. your booleans). You can hide them on the front panel (right-click...visible items...) if you don't want to see them.