Hello Guest it is September 28, 2020, 09:53:54 PM

Author Topic: Move X axis on "# of steps" or degrees (?)  (Read 3511 times)

0 Members and 1 Guest are viewing this topic.

charliev

• 32
Move X axis on "# of steps" or degrees (?)
« on: September 08, 2008, 02:48:17 PM »
Hello all.

I am a newbie, so any help is appreciated.

I am using MACH3 to drive a stepper motor on a custom test jig. The stepper is holding a fixture that rotates 360 degrees... I'm using the X axis to do this (though I can change this to like the "A" axis if it makes more sense). The stepper (and MACH3) is set for 200 steps per revolution (of the stepper).

Is there a way in MACH3 to specify the movement of the X axis in "# of stepper motor steps"? I want to move the stepper 50 steps to facilitate 90 degree movements of my jig.

Alternately, is there a setting in MACH3 (or a G code, etc.) to specify DEGREES OF MOVEMENT... so, instead of selecting "50 steps out of 200" (which is 90 degrees of motion) I simply just specify "90 degrees"?

Tried my best to explain my setup.

Thank you for the help.
-charlie

Hood

• 25,846
• Carnoustie, Scotland
Re: Move X axis on "# of steps" or degrees (?)
« Reply #1 on: September 08, 2008, 02:58:04 PM »
You can do either G0 *50 (Where * is the axis you have it set as , ie X or Y or Z or A...... ) Or if s if you set it as an A axis you can use degrees and if you command G0 A90 it will move 90 degrees.
Hood

HimyKabibble

• 1,687
Re: Move X axis on "# of steps" or degrees (?)
« Reply #2 on: September 08, 2008, 04:16:59 PM »
Given that Mach doesn't really care about the units, you can set the steps/unit to 1, and then your commands will simply be in steps.  So, G0 X50 will move 50 steps, or 90 degrees.  You can also set steps/unit to 0.5555556, and then give it commands in degrees.  So, G0 X90 will move 90 * 0.5555556 steps, which is 50 steps or 90 degrees.  Or, just use the A axis, which I think is already in degrees.

Regards,
Ray L.
Regards,
Ray L.

charliev

• 32
Re: Move X axis on "# of steps" or degrees (?)
« Reply #3 on: September 08, 2008, 08:35:39 PM »
Thank you Hood and HimyKabibble I'll give it a try!
-charlie

charliev

• 32
Re: Move X axis on "# of steps" or degrees (?)
« Reply #4 on: September 09, 2008, 11:24:52 AM »
Well, it works!

Found out my stepper controller is set to 400 steps/rev. So, after setting my MACH3 UNITS to "1", I got the stepper to move 90 degrees by using: G0 X100

Thanks agian for the help!
-charlie

HimyKabibble

• 1,687
Re: Move X axis on "# of steps" or degrees (?)
« Reply #5 on: September 09, 2008, 12:37:54 PM »
Charlie,
Set steps/unit to 0.9, and you can work directly in degrees.

Regards,
Ray L.
Regards,
Ray L.

charliev

• 32
Re: Move X axis on "# of steps" or degrees (?)
« Reply #6 on: September 10, 2008, 11:58:29 AM »
Ahhh, I see... because 400 * 0.9 = 360. Cool.
THANKS!
-charlie