Gantry System reversing direction of Motor on y2

More
14 Mar 2021 17:14 #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 or Create an account to join the conversation.

More
14 Mar 2021 17:51 #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 or Create an account to join the conversation.

More
14 Mar 2021 18:13 #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 or Create an account to join the conversation.

More
15 Mar 2021 15:19 #202358 by andypugh

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 or Create an account to join the conversation.

More
15 Mar 2021 17:35 #202375 by Creative25
Can’t find step_scale in Hal only in the ini file.

Please Log in or Create an account to join the conversation.

More
15 Mar 2021 17:54 #202377 by andypugh

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.
The following user(s) said Thank You: Creative25

Please Log in or Create an account to join the conversation.

More
15 Mar 2021 17:59 #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 or Create an account to join the conversation.

More
15 Mar 2021 18:04 #202380 by andypugh
The following user(s) said Thank You: Creative25

Please Log in or Create an account to join the conversation.

More
15 Mar 2021 18:48 #202386 by Creative25

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.081 seconds
Powered by Kunena Forum