Gantry System reversing direction of Motor on y2

More
5 years 7 months ago #202229 by Creative25
I am trying to test my setup for a gantry system. So I want Stepper Motors of y and y2 to move in opposite direction. Is this done by inverting the dir pin for y2 or is there a better way of doing it?

Please Log in to join the conversation.

More
5 years 7 months ago #202232 by PCW
I think there are at least four ways to do this, 2 in hal and 2 with wiring changes:

1. Inverting the direction pin in hal
2. Changing the sign of the step scale in hal
3. If you are using differential drive so you have
DIR+ and DIR-, swapping these will reverse the direction
4. Swapping polarity on one of the motor windings

Your choice...

Please Log in to join the conversation.

More
5 years 7 months ago #202238 by Creative25
Thanks for the info I did not know of swapping the dir pins , do they actually swap polarity?

I will use one of the wiring methods to keep it simple.

Please Log in to join the conversation.

More
5 years 7 months ago #202358 by andypugh

Creative25 wrote: I will use one of the wiring methods to keep it simple.


I would always do it in HAL, to keep it simple.
You will always have access to HAL, but wiring gets buried in the machine.

I generally change the sign of the step_scale.

Please Log in to join the conversation.

More
5 years 7 months ago #202375 by Creative25
Can’t find step_scale in Hal only in the ini file.

Please Log in to join the conversation.

More
5 years 7 months ago #202377 by andypugh

Creative25 wrote: Can’t find step_scale in Hal only in the ini file.


The HAL reads it from the INI, so change it in the INI.

Please Log in to join the conversation.

More
5 years 7 months ago #202378 by Creative25
So basically I change the number that is there into a minus number
For example from 67 to -67 ?

Please Log in to join the conversation.

More
5 years 7 months ago #202380 by andypugh

Please Log in to join the conversation.

More
5 years 7 months ago #202386 by Creative25

Please Log in to join the conversation.

Time to create page: 0.190 seconds
Powered by Kunena Forum