Hello Guest it is March 06, 2021, 12:18:41 AM

Author Topic: Step and Dir Spindle and A axis with 1 motor 1 drive how?  (Read 1767 times)

0 Members and 1 Guest are viewing this topic.

Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #10 on: September 20, 2019, 10:31:10 AM »
If that's the case what would you suggest as a controller that I may use with those two old breakouts. I ran out of space in there and do not want to have to rewire this hole thing again.

thanks,

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #11 on: September 20, 2019, 02:06:37 PM »
Just set up some imaginary port and pin numbers, you won't be using them anyway as you will be swapping the Axes and thus using the pins that are actually connected.
Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #12 on: September 20, 2019, 02:42:38 PM »
Thanks Hood. I'll give that a try tonight. I did not know it was an option to use fake pin numbers.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #13 on: September 20, 2019, 03:14:54 PM »
It has been a while, probably 10 years since I used it but if I recall the command in the macro would be SwapAxis(3,6) then in another macro it would be ReSetSwapAxis()

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #14 on: September 20, 2019, 03:15:35 PM »
Actually it may be ResetAxisSwap()
Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #15 on: September 20, 2019, 03:54:24 PM »
I found the Mach3 Macro Programmers Reference which has the SwapAxis() and ResetAxisSwap() in it with example. I'll change my Macro and give it a go.
I'll post the results over the weekend.

thanks again
Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #16 on: September 22, 2019, 07:45:51 PM »
The swap axis worked to a point. You can't just pick any port or pin number. It has to be a valid pin and port that Mach likes.

Thanks for the help.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #17 on: September 23, 2019, 03:11:55 AM »
I will have to fire up the Beaver Mill today and see but I was sure I just put something like port 5 and pins 1, 2 etc. I have a recollection that the SS maybe said they were not valid but had a box you could check to say to ignore in future, maybe that has been removed from recent versions, my plugin is probably 8 or more years old, or maybe I am just not remembering correctly, haven't used the Beaver Mill for about 5 or so years.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Step and Dir Spindle and A axis with 1 motor 1 drive how?
« Reply #18 on: September 23, 2019, 08:43:10 AM »
Just looked, I have the A axis set to port 7 and pins 1 and 2. There is no such port but as I said earlier that does not matter as it is just there so I can use SwapAxis.
Works fine, can swap between A and Spindle just by the two macros I have m101 and m102.

Also as I mentioned earlier my plugin has the option so that the SS does not throw warning messages to me, see pic.

I also did a video, not very clear  but shows it working.

https://www.youtube.com/watch?v=DnicjyARUek&t=41s