× Forum Header

How to switch stepper rotation?

More
31 Aug 2014 09:14 #50542 by Dave H
I bought a small 3 axis mill a while ago. Electronically it ran fine with LinuxCNC 2.5. The machine was in great need of a mechanical rebuild. I have now done that, but I want to mount the X and Y motors on the opposite ends of the screws than they were. So their rotation directions need to be reversed. Can someone tell me the changes I need to make to the .hal or .ini files to make this happen? Or is it more involved than that?

The only other changes I will need is to change the total travel of each axis, and hopefully I can figure that out. :unsure:

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

More
31 Aug 2014 13:19 - 31 Aug 2014 13:36 #50545 by Rick G
In your .ini file change the sign of SCALE for the axis you want to change direction.

www.linuxcnc.org/docs/devel/html/config/ini_config.html

So if
SCALE =1200
change to
SCALE = -1200

The travel is set with MIN_LIMIT and MAX_LIMIT

On a stepper system you can also invert the direction pin to reverse direction.

Rick G
Last edit: 31 Aug 2014 13:36 by Rick G.
The following user(s) said Thank You: Dave H

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

More
31 Aug 2014 15:49 #50546 by cncbasher
you can also move the wires of the stepper motor by reversing each pair of coils
so yes theirs the easy way , and a hard way
The following user(s) said Thank You: Dave H

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

More
31 Aug 2014 17:51 #50549 by Rick G

you can also move the wires of the stepper motor by reversing each pair of coils


I think you meant one pair (phase) of coils not both.

Rick G
The following user(s) said Thank You: Dave H

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

More
31 Aug 2014 19:48 #50551 by Dave H
Thank you very much guys. Much appreciated!

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

Time to create page: 0.132 seconds
Powered by Kunena Forum