Stepper motor #1 axis

Moderators: TomKerekes, dynomotion

Moray
Posts: 305
Joined: Thu Apr 26, 2018 10:16 pm

Re: Stepper motor #1 axis

Post by Moray » Fri Dec 13, 2024 9:28 am

In your configuration file, ch3 is still slaved to ch1, which you probably want to disable for testing with the motors off the machine.
For testing, set ch3->MasterAxis=-1 (note the -).

If that doesn't work, try swapping the channels in DefineCoordSystem, to 0,3,2,1, as that will eliminate any issues with the 4th axis configuration settings, and allow you to test the ch3 motor as the Y axis.

User avatar
TomKerekes
Posts: 2804
Joined: Mon Dec 04, 2017 1:49 am

Re: Stepper motor #1 axis

Post by TomKerekes » Fri Dec 13, 2024 7:42 pm

I think I see the problem the Slave is included in the Coordinate System as axis A. Only the Master should be included.

change

Code: Select all

DefineCoordSystem(0,1,2,3);
to

Code: Select all

DefineCoordSystem(0,1,2,-1);
Regards,

Tom Kerekes
Dynomotion, Inc.

DrillBitBob
Posts: 10
Joined: Thu Jul 11, 2019 8:17 pm

Re: Stepper motor #1 axis

Post by DrillBitBob » Fri Dec 13, 2024 9:13 pm

I have tried everything suggested including changing out the KStep board. It just doesn't want to drive both motors in the same direction. Changing the polarity on one of the coils doesn't change the direction. It's weird but probably operator error. Thank you all

Moray
Posts: 305
Joined: Thu Apr 26, 2018 10:16 pm

Re: Stepper motor #1 axis

Post by Moray » Fri Dec 13, 2024 9:45 pm

I think we're all getting a bit confused here.
I had assumed that that last init file, you were working each axis individually for testing purposes.

So starting from the last init file you posted.
You've swapped motors, so we know that the motors themselves are good.

As Tom has highlighted, if you have an axis slaved and set as an axis, it'll cause problems.

You are only reversing one pair of coil wires?
If you reverse both, then the motor will still run the same direction.
The alternative way to reverse motor direction, is to set OutputGain to -1.

Although stupid question, the motor can be made to run both directions, even if not the 'correct' direction?

DrillBitBob
Posts: 10
Joined: Thu Jul 11, 2019 8:17 pm

Re: Stepper motor #1 axis

Post by DrillBitBob » Sat Dec 14, 2024 4:19 am

Tom and Moray thank you for all your help. Definitely confusing to me and I'm sure I did a poor job of describing what I was seeing. I've learned alot how the system works. The resolution was changing 3 to -1 in DefineCoordSystem. Thanks again

Post Reply