Hello Guest it is December 07, 2019, 07:10:31 PM

Author Topic: Mach 3 and ESS , axis not going at the same speed g1 g0  (Read 1058 times)

0 Members and 1 Guest are viewing this topic.

Mach 3 and ESS , axis not going at the same speed g1 g0
« on: May 22, 2018, 11:17:59 AM »
Hello,

Just finished my 3 axis (Y has A axis as a slave) router 1200mm x 2500mm with HIWIN AC Servos 10000 pulses/rev encoders, and I am desperate because the axis do no go in diagonal neither in G0 and G1 (in g1 only at higher speeds) meaning that if a comand a G0 X500 Y500 THE X AXIS REACHES FASTER AT THAT POINT. All the steps per unit are set correctly. Simply can get the machine to go. Another problem is that the problematic axis Y does not stop when I press the jog button. I have tried to get different results by changeing the ESS frequecies but nothing changes.

IN ESSENCE THE AXIS DO NOT REACH AT THE SAME TIME AT FINAL POSITION

The x and z axis are working fine with 1000 steps/ unit (10mm pitch ballscrew) y and slave axis has also 10 mm pitch screw but with 2:1 reduction so it needs 2000pulses per unit.

Servos tuned ok, settings in motor tunning are ok

Please be kind and give me a hint I an stuck and the machine has to start cutting stuff soon.

Thank you!

Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #1 on: May 22, 2018, 12:23:50 PM »
Hi,
are you using a parallel port or an external motion controller?

Sounds to me like your controller cannot produce pulses fast enough to produce the commanded motion.

Craig
My wife left with my best friend...
     and I miss him!
Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #2 on: May 22, 2018, 12:28:26 PM »
Hi,
sorry you do say in the title that you are using an ESS.

What speeds are you commanding when the fault occurs? We need to do the calculation to determine the commanded pulse rate.

Craig
My wife left with my best friend...
     and I miss him!
Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #3 on: May 22, 2018, 01:14:52 PM »
Hi CRAIG !

So, the problem occurs allmost at any speed. X axis is set to 10000mm/min Y axis at the same speed , same with the slave A axis, Z axis is set to 5000mm/min.
X axis Steps/unit set to 1000 (10mm pitch screw 1:1 ratio)
Y axis Steps/unit set to 2000 (10mm pitch screw 2:1 ratio)
Z axis Steps/unit set to 4000 (5mm pitch screw 2:1 ratio)

X axis and z go in sync but Y axis does not.

SAMPLE CODE:
G0 Y-250 X0
G1 Y250 F5000
Z0
Z10
Y-250
Y250
Z0
Z10
Y-250
Y250
Z0
Z10
Y-250
Y250
Z0
Z10
Y-250
G1 Y0 F2000
G0 Y-250
M30

The z axis goes to it's z0 and z10 while the y axis is still on it's way to y250.
while travelling from y-250 and back to y250 it does not reach the end of its travel at aprox y-140 it stops and goes back to y250.

But at the end it reaches the final position y-250 spot on.

how can it be possible?

If i comand G1 X250 Y250 F5000 AN BACK TO X0 Y0 IT DOES NOT GO IN A PERFECT DIAGONAL MOVE, the x axis reaches x200 but the Y is still on its way, the DRO's reach at the same time,THE MACHINE IS ALL OVER THE PLACE. Y axis and the slave remain in sync but do not reach the end position in the same time as X.

I do not get any errors from the servo drives neither from the ESS that it has no memory or something. I have mach 3 with a license so any hack isue is null.

Maybe I can film it with my phone and post it on youtube.




Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #4 on: May 22, 2018, 02:51:45 PM »
Hi,
your Gcode is all wrong.

Lets assume the machine is at 0,0,0 then

G1 Z10 F5000
Y-250

will cause the Z axis to go to 10mm THEN the Y axis to go to -250mm.
If you wrote:

G1 Z10 Y-250 F5000

then the Z and Y axes would move in coordinated fashion arriving at Z=10 and Y= -250 at the same time. All co-ordinated moves are written one line.
Any move written on one line will complete before the next line is processed.

Mach's interpretation of Gcode is very close to the interpretation given by:
CNC Programming Handbook by Peter Smid.
It also the interpretation followed by Fanuc controllers.

You need to either get and read the book or find some decent Gcode tutorials online.

Craig
My wife left with my best friend...
     and I miss him!
Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #5 on: May 22, 2018, 04:59:12 PM »
I know that the code is 'wrong' but the movement of the machine is to.

https://youtu.be/H40viSqKAZo
In the video you will have a clear view of the problem.
It is my second attempt to use the ESS , I have a plasma table that I run with the ESS board and the same laptop. Plasma table runs ok, this one is not.

Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #6 on: May 22, 2018, 06:06:44 PM »
Hi,
I see what you mean, the co-ordinated moves are not co-ordinated.

I think the pulse rate of the ESS is not keeping up with the commanded motion.

Can you post a pic of the ESS? One also of the ESS setup page?

Craig
My wife left with my best friend...
     and I miss him!
Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #7 on: May 23, 2018, 12:40:10 AM »
OK I will do that as soon I get to the shop.
Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #8 on: May 24, 2018, 06:43:23 AM »
Hi,
what is the version number of the ESS plugin?

Craig
My wife left with my best friend...
     and I miss him!
Re: Mach 3 and ESS , axis not going at the same speed g1 g0
« Reply #9 on: May 24, 2018, 07:13:22 AM »
Craig, thank you for your time!

Problem solved, it was a servo tunning isue. sevos where only autotunned , obiously the Autotunning function sucks hairy camel b...s! I had trusted them for that. The bad thing is that I do not have a good documentation of the tunning process of the drive and I have to figure it out by my self.

So Mach 3 and ESS ARE GOOD, I am the bad part in the system  >:D

I will post a video of the working machine when it will be all set up

Thank you again!