Calculation for MOD1 spur linear travel distance per rotation

More
14 Sep 2020 12:42 - 14 Sep 2020 13:09 #182075 by radek_marko
Hi,

I'm trying to confirm my calculations for the travel distance per rotation on my CNC machine

I have MOD1 rack and pinion on x-axis and dual y-axis. All of them are driven by NEMA34 (200 steps per rotation), 50:10 pulley reduction gearbox with the output shaft equped with MOD1 15T spur.

My calculation is as follows:
Pitch Diameter (d) for MOD1 15T is 15mm.
Travel distance per rotation of end shaft MOD1 gear is from the circle circumference =>
2 * Pi * r
or
Pi * d

So in my case 47.1238898mm.

The output shaft is connected to the motor via 5:1 reduction, so one rotation of the motor is 9.424777961mm of the linear travel.

I found the following formula for setting the scale:
For "scale" i use "40" since i have full step drives connected to 200 step/rev 
 (1.8 degre/step) motors attached to 5mm/rev ballscrews. This is simple 
 math: steps per rev/mm per rev, in my case 200/5=40.

Following this example, I will have SCALE value for INI file as 200 / 9.424777961 = 21.22065908.
BTW - The calculated value do not correspond to my current INI values. Current INI does work with massive inaccuracy in the travel distance ;).

Am I right or my calculation is totally incorrect?

P.S. Later on I will feed these details into stepconf and will see if it will get the same result.
Last edit: 14 Sep 2020 13:09 by radek_marko. Reason: More details added

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 13:07 #182076 by Aciera

For "scale" i use "40" since i have full step drives connected to 200 step/rev
(1.8 degre/step) motors attached to 5mm/rev ballscrews. This is simple
math: steps per rev/mm per rev, in my case 200/50=40.


Note that the math at the end is wrong: it should be 200/5=40

So your calculation should be 200 / 9.424777961 = 21.22065908 to get steps/mm

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 13:12 #182077 by radek_marko
Yeh, I've just spotted it and edited my post with the correct math ;)

Can you confirm that my logic and the calculation formula correct?

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 13:17 #182078 by Mud
Are you not using microstepping?
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 13:29 #182080 by Aciera
seems all right to me. Do you have micro stepping activated?

The empirical way is to set scale to, for example 10, and command a move say 10mm and measure the length actually traveled and then calculate the correction required.
This is my usual method.

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 13:40 #182081 by anfänger
Got the same.
There is a unite easy way to do this. The tooth pitch ist module x pi

So the circumference here is 1xpix15

So travel per step is 200x5/15pi = 21,2206591 steps / mm

But i would always double check by going 10mm with a dail indicator as a reference.

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 14:42 - 14 Sep 2020 14:50 #182088 by radek_marko
Are you not using microstepping?

I'm a complete newbie - so sorry for the lame answer - Yes, I think I'm microstepping as my driver settings are 400 steps (min on DM860A) and in the stepconf I have put 200 steps and 2 in "Driver Microstepping" filed...

So, that means I need to use calculation based on 400 steps per revolution?

(2 * 200) / ((15 * Pi) / 5) = 42.44131816

(<microstepping> * <steps per rev>) / ((<pitch diameter> * Pi) / <gear reduction ration>)
Last edit: 14 Sep 2020 14:50 by radek_marko.

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 14:54 - 14 Sep 2020 14:56 #182089 by Aciera
yes.

scale tells linuxcnc how many steps it needs to send to the motor drive to move the axis 1mm.
Last edit: 14 Sep 2020 14:56 by Aciera.

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 15:43 #182097 by Mud
I sanity checked your math and concur...your setup is very similar to mine (only I'm 20T on the MOD1, and geared 4:1).

Please Log in or Create an account to join the conversation.

More
14 Sep 2020 20:06 #182127 by radek_marko
Wow!
What a big surprise - the theoretical calculation of the SCALE checked in the reality was spot-on on 1600mm of x-axis movement and just a few mm out of expected move on 3100mm on y-axis!

Again - thank you for your support!

Please Log in or Create an account to join the conversation.

Moderators: cncbasher
Time to create page: 0.100 seconds
Powered by Kunena Forum