Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: charliev 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
:D
-
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
-
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.
-
Thank you Hood and HimyKabibble I'll give it a try!
-charlie
-
Well, it works! ;D
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
-
Charlie,
Set steps/unit to 0.9, and you can work directly in degrees.
Regards,
Ray L.
-
Ahhh, I see... because 400 * 0.9 = 360. Cool.
THANKS!
-charlie