Hello Guest it is August 10, 2022, 01:09:25 PM

Author Topic: Trying to tune my motors  (Read 1761 times)

0 Members and 1 Guest are viewing this topic.

Trying to tune my motors
« on: March 27, 2016, 02:39:36 PM »
I just recently purchased Mach4, been using Mach3 for 10 years. I am using the PMDX-411 Plugin, which seems to be working quite well.  I am getting closer to the correct acceleration and steps, but I miss the function that was in Mach3 which would help you set the exact distance a motor travels by compensating internally for you when you ran their set Axis distance control.  Is there something in Mach4 to help do this?

Re: Trying to tune my motors
« Reply #1 on: March 27, 2016, 09:41:37 PM »
Get your steps/inch (or steps/mm) correct before you try to fine-tune your acceleration and max velocity.  The easy do-it-yourself way to determine the actual steps/whatever-units-you-are-using is:

(1) Calculate the hypothetical steps/units based on microstepping mode of your stepper driver and any belt/gear/thread-per-inch ratios of the drive train.  For the sake of this example, say that comes out to 2000 steps/inch.

(2) Manually jog an axis to a convenient starting point (near one end of travel).

(3) Click on the "Zero X" button (or "Zero Y" or whatever axis you are using) to zero the DRO

(4) Using MDI mode, move that axis some nice, known distance.  For example, move the axis 5 inches with "G0 X5".
**WARNING** This presumes that your max velocity and accel settings are realistic enough that the motors won't "cog" or loose steps during this motion.  To be safe,  you can set the accel and max velocity to something kinda slow.

(5) Measure the actual distance moved.  For our example, say that is 5.5 inches.

(5) Now calculate the actual steps/inch. First calculate the actual number of steps that Mach4 (should have) output:

     # of steps = (commanded disatance) * (current "steps/unit" setting)

So for our example, that would be (5 inches) * (2000 steps/inch) = 10,000 steps.

Now calculate actual steps/inch by:

    actual steps/inch = (# of steps) / (measured distance)

So the new, supposed actual steps/inch = 10,000 / 5.5 = 1818.  Enter that as the new "steps/unit" and then re-run this test to verify the setting.

Re: Trying to tune my motors
« Reply #2 on: March 28, 2016, 07:07:08 AM »
Thank you I will try it today.

Re: Trying to tune my motors
« Reply #3 on: February 05, 2018, 12:34:50 PM »
The above method is great! You also have the option now of using the Steps Per Unit Calculator, which is available in the Wizards. Check it out!

Happy CNCing!
Newfangled Solutions Helpdesk: http://support.machsupport.com
YouTube Support Channel: https://www.youtube.com/c/MachSupportOfficial