Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: pcrego on June 08, 2019, 06:04:11 PM

Title: mach3 milling errors
Post by: pcrego on June 08, 2019, 06:04:11 PM
I tried many different Mach3 settings but my machine does not work as expected. The machine is a Shapeoko 3 diy, not a Carbide 3D kit, but it has 30kgf motors driven by DMA860h drivers, HDZ Z axis, heavy duty wheels and eccentrics from BeaverCNC, a 500w temporary spindle to be replaced soon by a 2.2kw water cooled. The controller is of industrial strength 500khz ethernet Nevex NX-max 4 axis unit with a Mach3 plugin. Homing switches are not connected right now but soft limits are working ok. The machine seems to ride well on the aluminum profiles, belts are well tightened, motors are set at 3.0 amperes, motor tuning from mach3 settings page seems to be right on spot.  Any milling that I attempt looks like the machine is adding steps to the negative sides of X and Y axes, ruining the work. There is a Picture showing work done on my Shapeoko 2 versus two attempts on this Shapeoko 3 lookalike. Any ideas on what is wrong?
Title: Re: mach3 milling errors
Post by: joeaverage on June 08, 2019, 06:31:23 PM
Hi,
this is a classic case of one or more axes losing steps.

Stepper motors lose torque the faster they go. A given stepper may have 400oz.in holding torque but only 150oz.in
at 500 rpm and 40oz.in at 1000 rpm. Yes, you read that correctly.....only 10% of its initial torque at 1000 rpm.

First time buyer of steppers tend to buy based on holding torque alone. This is a mistake. The inductance of a stepper
determines how badly it will lose torque as the speed gets up. Thus a 500oz.in stepper with high inductance might have
only 50oz.in at 1000 rpm whereas a 400oz.in low inductance motor might retain 100oz.in at 1000 rpm. Believe it or not
the 400 oz.in motor is the better unit.

Can you post the model of the steppers you have used?

One way to combat the loss of torque as speed goes up is to use a higher voltage supply and driver. What voltage supply
are you using? The drivers (DMA860h) are advertised as being good for 80V so I would have a supply of 72V at least.

In the first instance you need to reduce the maximum velocity  and maximum acceleration of the machine in your motor
tuning to a very slow rate and then slowly increase the velocity (to start with) until you start to lose steps, then back
off 25%. Do the same with acceleration.

Craig
Title: Re: mach3 milling errors
Post by: pcrego on June 09, 2019, 08:18:49 AM
Hello... thank you for the reply!  All motors are wotiom ws23-0300-30-4 and the dma860h are fed from a 60VAC toroidal transformer rated at 30 amperes.
Title: Re: mach3 milling errors
Post by: pcrego on June 09, 2019, 09:25:56 AM
I lowered the speed and acceleration to 400 and 40, respectively, for axises X and Y. The jogging is appalingly slow. Tried the same milling again, it seems to go well for the first cuts but the same behaviour, a deviation to the negative sides of X and Y, looks the same. The cuts are not precise and do not reflect similarity with the expected result. 
Title: Re: mach3 milling errors
Post by: joeaverage on June 09, 2019, 02:18:00 PM
Hi,
the probability is that you have the jog rate set to only 6% of the traverse rate, its is set at 6% when Mach fires up.

Reduce the max speed and acceleration by half again and then re-try.

What is the inductance of your motors?
What is the voltage of your driver supply?

Craig
Title: Re: mach3 milling errors
Post by: pcrego on June 09, 2019, 04:23:06 PM
Hello Craig...   jog rate is set to 100% and as I lower the speed and accelleration on motor tuning, the slower the machine moves. I attached the technical specs for the motor. I also tried changing other settings in mach3...   tried to unmark all CV settings... no change...   tried to set motion mode to exact stop... no change... tried to change distance mode from absolute to incremental, machine went crazy...   will try lowering speed and acceleration to 200 and 20...   Voltage input to drivers is 60 VAC from a toroidal transformer rated at 30a. Inductance 6.5 mH.
Title: Re: mach3 milling errors
Post by: pcrego on June 09, 2019, 05:00:09 PM
At 200 velocity and 20 acceleration, machines moves too slowly but still cuts profiles all wrong...  same result as the other attempts... carves the small profiles out of alignment and makes the same deviation to the negative sides of the X and Y axes. I tried X-carve post processor, Shapeoko post processor and Mach3 Arc postprocessor... having to change the some to .txt files, but the results are wrong the same. I wonder if there is a basic flaw in electronics wiring or even a defective card or driver...   I believe this was not supposed to give me such a headache.... 
Title: Re: mach3 milling errors
Post by: joeaverage on June 10, 2019, 03:05:38 AM
Hi,
you have too many variables going on.

I'm beginning to think that your steps/per are wrong.

Do you use inches or mm?

If you zero the Xaxis and MDI:

g1 x100 f200 (this assumes mm units)

does the axis move exactly 100mm? Repeat the test with Y and Z axes.

Craig
Title: Re: mach3 milling errors
Post by: Tweakie.CNC on June 10, 2019, 03:36:17 AM
Hi pcrego,

Do you have a Mach3 license registered in your own name or the name of your company ?

Tweakie.
Title: Re: mach3 milling errors
Post by: pcrego on June 10, 2019, 08:23:20 AM
Tweakie, my mach3 license is registered to Paulo Cesar Rego 73NZ.  I purchased it less than a month ago, when the machine was ready for some testing.

Craig, I repeated the commands for all axises and the results are very consistent. Movement stops dead on where it is supposed to.  I have done this tuning many times, at different speeds and accelerations, and I found that 39.95 for X and 40.3 for Y gives me the more accurate movements, even when testing movement at 700mm. The Z axis is set at 320, per BeaverCNC calculations and it is also accurate. Because my problems show at the xY coordinates I did not worry yet about Z when milling...
Title: Re: mach3 milling errors
Post by: pcrego on June 10, 2019, 08:54:01 AM
The controller I am using, NX-Max 4-axis ethernet, was made by a local enterprise. I bought it a couple of years back and I was surprised to learn that they do not make the card anymore and give little to none support to it. To be honest, when I called them, I got no good answers and a lot of arrogance. Unfortunately it took me too long to build this machine but I thought it would br nice to have a top of the line controller.. but now I am on my own regarding this component. Although I do not think the controller as much as a suspect, but I wanted to mention the lack of support in case some doubt about it arises. Cheers!
Title: Re: mach3 milling errors
Post by: pcrego on June 10, 2019, 09:08:01 AM
The drivers are connected like this, according to the NX-800 documentation and the motors definition in mach3.

Title: Re: mach3 milling errors
Post by: Graham Waterworth on June 10, 2019, 09:13:15 AM
Are you using shielded cable to the motors and step/dir grounded at one end only?

For the moment ignore the steps/per as it has no bearing on your problem.

Your problem is missed steps or extra steps.  This can be noise on the motor cables from power lines being too close or on the step/dir lines or even a dodgy power supply.  it may be you need a filter on the AC input or a different motor PSU for testing.

Once the cut design is starting and finishing in the correct place then worry about fine tuning the steps/per.

Title: Re: mach3 milling errors
Post by: Graham Waterworth on June 10, 2019, 09:28:37 AM
Edit your g-code so the last move is the same position as the first move so you can see if its back to the right place.
Title: Re: mach3 milling errors
Post by: pcrego on June 10, 2019, 10:53:14 AM
X axis motor cable and spindle are shielded from the motors to the front plate conector. Y cables are shielded for the most part, going "comando" only half meter to the front plate conector. Connections inside the electronics enclosure (which right now is only a base where the parts are screwed to), are normal wiring. I changed most of the wires to not cross any power supply lines, but it is hard to say if there is enough distance to avoid any noise. The ethernet cable for both notebook and controller are CAT6 from Furukawa, so I donĀ“t think they are prone to pick up noise.  After changing positions of cables and AC feed lines, I run a small program in the air (meaning spindle off and no actual milling), marked the zero position and bam... there is the same deviation to X and Y axises.  The ceiling is quite low on this part of the woodshop where I have the cnc installed and illumination is from cheap Chinese led lamps... Tried to leave everything turned off. Run the program once more... same results.  At this point it is worth mentioning that the deviation is pretty consistent at -5mm for both X and Y.  Checked the little gcode and there is already a line sending it to x0 y0 at the end of the program.
Title: Re: mach3 milling errors
Post by: pcrego on June 10, 2019, 11:46:49 AM
Did I mention that my kernel speed is set to 100Khz? And pulse and dir are 5us?
Title: Re: mach3 milling errors
Post by: joeaverage on June 10, 2019, 02:40:29 PM
Hi,
if you are using an Ethernet connected motion  controller then the kernel speed is irrelevant, the kernel
speed applies to Machs parallel port.

I would disable or even remove the parallel port driver entirely, you don't need it and its a CPU hog should it be running
even when you don't want it.

Craig