Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: truckeic on March 22, 2017, 01:50:02 PM

Title: Motor tuning question..
Post by: truckeic on March 22, 2017, 01:50:02 PM
OK I am a newbie.. and I just got my motors turning yesterday..
I have set the mill to SAE.. not metric..
I have figured up my number by  200 x 8 x 5.08
I am using 1/8 stepping and I have 5mm pitch screw. .
I was told that co.es out to 5.08 inches
So I figured out my steps per inch to be 8128.
I have DROa on my mill actual mechanical one not just looking at MACH3..
I told the mill to mobe G0 x1 y1
The mechandicap dros showed .100

That is off by a bunch..
Any ideas on my screwup..

Thanks
Title: Re: Motor tuning question..
Post by: truckeic on March 22, 2017, 08:41:49 PM
Well to be sure I checked tonight..
I haver 1.8 step motor.. which I am told is a 200
My driver is 8 microstepping
And I have the Chinese balls crew c7 1605... which I am told is 5mm.

I have been told that convering the 5mm to tpi is 5.08

So doING the cal. I get 8128 steps..

I put that in then tell Mach  3 to move 1... G0 x1

I am looking on this with dial indicator and my mechanical dro..
.189 is actually what it moves...
What gives..
I tried to use the auto cal... and it got closer moved ..6 something but I may have done that wrong ..

This does not seem like it should be this hard...
Title: Re: Motor tuning question..
Post by: joeaverage on March 23, 2017, 02:20:56 AM
Hi,
your calculation is correct, the explanation is a bit wonky....

Your ball screw 1605 is indeed 5mm pitch, ie it moves 5mm per revolution.

1 inch= 25.40mm therefore the screw has to rotate 25.4/5 =5.08 revolutions to move 1 inch. It takes 200 fullsteps or 1600 1/8
microsteps  for the motor to turn one revolution. So your microsteps per inch is 1600 times 5.08 =8128. Set your steps per unit
in Mach3 to 8128 and leave it that way. If you pulse the motor 8128 times the axis should move 1 inch, if it doesn't then the driver
and or motor is missing steps. Fix it.

Make sure your native units are inches, Config/Select Native Units....set to inches and leave it that way. If you need to run a job in
mm's use G20/G21, DON'T mess around with native units.

When your motors move do they move smoothly? What sort of sound do they make, if its in anyway rough it may indicate that the motor
is missing steps. If I understand your description of the fault you first called G0 X1 and it actually moved 0.1 inch. Later you called another
G0 X1 and it moved 0.189 inch. Is this correct? If so that means its not a screwup so much as the motor not be able to pace the instructions
given to it.

In the first instance set the motor tuning slow and the acceleration even slower. Dave often recommends the acceleration be about 10% of
the speed. Try setting the speed to 20 ipm to start with.

Stepper motors exhibit GREAT torque at low speeds, in fact they blow most servos into the weeds at slow speeds, but they can't 'pull the
skin off a rice pudding' at speed. As a start don't expect your steppers to go faster than 500rpm. With 5mm pitch screws that means about
2500mm/min or 98 in/min.

Try settings around these values and let us know how you get on.

Craig
Title: Re: Motor tuning question..
Post by: truckeic on March 23, 2017, 02:06:17 PM
Hi,
your calculation is correct, the explanation is a bit wonky....

Your ball screw 1605 is indeed 5mm pitch, ie it moves 5mm per revolution.

1 inch= 25.40mm therefore the screw has to rotate 25.4/5 =5.08 revolutions to move 1 inch. It takes 200 fullsteps or 1600 1/8
microsteps  for the motor to turn one revolution. So your microsteps per inch is 1600 times 5.08 =8128. Set your steps per unit
in Mach3 to 8128 and leave it that way. If you pulse the motor 8128 times the axis should move 1 inch, if it doesn't then the driver
and or motor is missing steps. Fix it.

Make sure your native units are inches, Config/Select Native Units....set to inches and leave it that way. If you need to run a job in
mm's use G20/G21, DON'T mess around with native units.

When your motors move do they move smoothly? What sort of sound do they make, if its in anyway rough it may indicate that the motor
is missing steps. If I understand your description of the fault you first called G0 X1 and it actually moved 0.1 inch. Later you called another
G0 X1 and it moved 0.189 inch. Is this correct? If so that means its not a screwup so much as the motor not be able to pace the instructions
given to it.

In the first instance set the motor tuning slow and the acceleration even slower. Dave often recommends the acceleration be about 10% of
the speed. Try setting the speed to 20 ipm to start with.

Stepper motors exhibit GREAT torque at low speeds, in fact they blow most servos into the weeds at slow speeds, but they can't 'pull the
skin off a rice pudding' at speed. As a start don't expect your steppers to go faster than 500rpm. With 5mm pitch screws that means about
2500mm/min or 98 in/min.

Try settings around these values and let us know how you get on.

Craig

OK so I will set my acceleration and velocity at what starting points. The motors don't souND bad... I think I am at 200 acceleration . The 2 numhers to the right of these.. I forgot what they are called but they are both set to 5.. I don't think I changed them but what should they be at..

Should I try to do auto calibration?

It just seems like I am way off.. if the were 20 thou off I would not be so concerned... but I am off almost .800...
Title: Re: Motor tuning question..
Post by: joeaverage on March 24, 2017, 01:57:58 AM
Hi,
sounds like your accel is to high, start it low, very low and see if that fixes the problem. Then you can experiment to find
the useful maximum for your machine.

You can use the auto-cal function, I don't because I built my machine and I KNOW the parameters and can calculate the
steps per EXACTLY. The auto-cal function is for people who don't know their machine and can't be bothered to find out
and/or get confused over basic arithmetic. You decide which camp your in.

Work your axis backwards and forwards using MDI, going a useful distance each time. Set x=0 then go to x=4in and the back to x=0.
G0 X0
G0 X4
G0 X0
It should go back to the exact starting point. If it doesn't no setting or autocalibration is going to do you any good.

The numbers on the motor tuning screen are:
Step per unit, as discussed above should be 8128
Velocity in/min, recommended less than 98in/min, say 30in/min for a conservative starting point.
Acceleration in/sec/sec, recommended less than 9.8 in/sec/sec, say 3in/sec/sec for a conservative starting point.
G's, this is a display only and tells you the 'G force' corresponding to your acceleration setting above. For hobby machines
0.01 to 0.1 are common, high speed production machines can go upwards of 10.
The next two parameters are the pulse length presented to the motor drive by Mach3. My drivers are good quality Japanese ones
and the specs say 1.25us is enuf. If you have crappy ones 5-10 us might be better. If the pulse is to short the driver might miss it
altogether. Note that when you make alterations on the tuning page you have to 'save before exit' or the changes will not be implemented.

The trick to getting this stuff to work is not to change everything at once, change one item and establish what effect it has. If you can
understand each effect then you are well placed to find the right balance of parameters/settings.

Craig
Title: Re: Motor tuning question..
Post by: truckeic on March 24, 2017, 07:25:16 PM
Hi,
sounds like your accel is to high, start it low, very low and see if that fixes the problem. Then you can experiment to find
the useful maximum for your machine.

You can use the auto-cal function, I don't because I built my machine and I KNOW the parameters and can calculate the
steps per EXACTLY. The auto-cal function is for people who don't know their machine and can't be bothered to find out
and/or get confused over basic arithmetic. You decide which camp your in.

Work your axis backwards and forwards using MDI, going a useful distance each time. Set x=0 then go to x=4in and the back to x=0.
G0 X0
G0 X4
G0 X0
It should go back to the exact starting point. If it doesn't no setting or autocalibration is going to do you any good.

The numbers on the motor tuning screen are:
Step per unit, as discussed above should be 8128
Velocity in/min, recommended less than 98in/min, say 30in/min for a conservative starting point.
Acceleration in/sec/sec, recommended less than 9.8 in/sec/sec, say 3in/sec/sec for a conservative starting point.
G's, this is a display only and tells you the 'G force' corresponding to your acceleration setting above. For hobby machines
0.01 to 0.1 are common, high speed production machines can go upwards of 10.
The next two parameters are the pulse length presented to the motor drive by Mach3. My drivers are good quality Japanese ones
and the specs say 1.25us is enuf. If you have crappy ones 5-10 us might be better. If the pulse is to short the driver might miss it
altogether. Note that when you make alterations on the tuning page you have to 'save before exit' or the changes will not be implemented.

The trick to getting this stuff to work is not to change everything at once, change one item and establish what effect it has. If you can
understand each effect then you are well placed to find the right balance of parameters/settings.

Craig

Ok I am frustrated..LOL
So here is what i am using
KL-5956 driver and a C10 BOB

I have double checked my microstepping which is set to 8
 I am using a 1.8 degree motor which is 200..
C7 1605 ballscrews

That said ..
I put in 8128 and when I run auto cal..
MACH3 says it ran 1.0 but my DRO and Dial Caliper agree It  moved  .188
I have velocity @ 10 Acceleration @ 7
Mach 3 says my steps per inch need to be 43234. which is way to high.

I have tried to run the velocity and acceleration up to very high numbers and my motors don't seem to change...

Yea I know it chinese stuff but I know others are running this stuff..

any ideas???
I really don't see anything set wrong.. but I am sure it is...
Title: Re: Motor tuning question..
Post by: joeaverage on March 24, 2017, 10:11:46 PM
Hi,
provided there is not some mechanical fault or slippage then your driver is set incorrectly.

Can you post the manual? How about rechecking your microstepping settings.

Try setting for zero microsteps, ie 200 pulses per revolution and set your steps per unit to 200 times 5.08=1016 and try it out.

Craig
Title: Re: Motor tuning question..
Post by: joeaverage on March 24, 2017, 10:29:53 PM
Hi,
I found a manual for Keling 5056 driver online. Is this in fact the driver you have?

I noted that the switch arrangement for 8 microsteps is 'off off on on' whereas the switches for 40 microsteps is 'on on off off'.
Is it possible you've got the switch arrangement backwards?

Craig
Title: Re: Motor tuning question..
Post by: joeaverage on March 24, 2017, 10:39:58 PM
Hi,
have been doing some more reading and Keling drives have a solid reputation, if I made an on the cuff or biased
remark please accept my apologies. I am not fond of people who criticise on the basis of preconceptions but I am
capable of doing exactly that!

Craig
Title: Re: Motor tuning question..
Post by: truckeic on March 25, 2017, 12:08:18 AM
Hi,
have been doing some more reading and Keling drives have a solid reputation, if I made an on the cuff or biased
remark please accept my apologies. I am not fond of people who criticise on the basis of preconceptions but I am
capable of doing exactly that!

Craig

No you have not made any remarks. ..
I appreciate your help..
Been working on this mill for months and now to get the motors turning and canthe figure this out.. guess I shold stick to TV engineering. .lol
I wI'll check the microsteps..maybe I am backwards. .
If not I will give it a shot to back off the microstepping.. see what I get..
Might even chanel out the y for the x driver see if they is a bad driver..

Trying to self tech myself all this ... what cad cam do you use?
Title: Re: Motor tuning question..
Post by: joeaverage on March 25, 2017, 12:36:46 AM
Hi,
by all means try reducing the microstepping. If you do so just do it alone, ie don't change anything else. Try repeated
microstep changes until such time as you have a positive understanding of how it works.

I started CNCing to make circuit boards for which I use EAGLE, PCB-to-Gcode and Autoleveller software and utilites.
For simple machining tasks like facing and pocketing I use Wizards and/or hand coded Gcode.

For more complex shapes I use Mastercam. It includes quite a useful drawing suite and is a VERY capable CAM package.

Craig
Title: Re: Motor tuning question..
Post by: truckeic on March 25, 2017, 12:46:54 AM
I am mainly wanting to machine guns aND gun parts.. I was looking at Cambam something cheap.. but I am going to have to teach myself cad as well.. you know of any good vids on starting cad drawing..
Title: Re: Motor tuning question..
Post by: joeaverage on March 25, 2017, 01:39:40 AM
Hi,
Fusion 360 is pretty damn good and free.

Craig
Title: Re: Motor tuning question..
Post by: truckeic on March 25, 2017, 09:13:12 AM
I have a copy of that but it's way over my head...
Title: Re: Motor tuning question..
Post by: joeaverage on March 25, 2017, 03:03:29 PM
Hi,
unless I am mistaken all CAD/CAM packages are broadly similar and no matter which one you choose you will
initially be 'out of your depth'.

Craig
Title: Re: Motor tuning question..
Post by: truckeic on March 28, 2017, 02:42:41 PM
Hi,
by all means try reducing the microstepping. If you do so just do it alone, ie don't change anything else. Try repeated
microstep changes until such time as you have a positive understanding of how it works.

I started CNCing to make circuit boards for which I use EAGLE, PCB-to-Gcode and Autoleveller software and utilites.
For simple machining tasks like facing and pocketing I use Wizards and/or hand coded Gcode.

For more complex shapes I use Mastercam. It includes quite a useful drawing suite and is a VERY capable CAM package.

Craig

OK so here is what I found out.
My drivers do not do no microstepping.. do I put one if them on 2 MS.

I was able to get accuracy some we here .002
But my steps per were like 20k

So then I went to 4 x MS
 I got .005 accuracy. . But my steps per were 50k +

I don't kn I will if iyou matters if these numbers are that high..
But they feel very wrong..
I have checked my motors a 1.8 degree
5mm pitch..
I am wired big polar parellel

The motors don't scream they sound good.. but then not sure how they are supposed to sound..

So what do you think?
Title: Re: Motor tuning question..
Post by: truckeic on March 28, 2017, 09:21:41 PM
Well I fixed my problem...
Guy on a forum posted the dip switch settings are backwards.

I am truly disappointed in Automation Technologies. . Called to ask a simple question  and was told the need to remote into the machine.. charge me 100 bucks.. I am sure I am not the only had this issue....I bet they know too..

Shop elsewhere. .