Hello Guest it is May 19, 2019, 11:15:15 PM

Author Topic: Z axis drift during X-axis motion...  (Read 9357 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Z axis drift during X-axis motion...
« Reply #30 on: November 22, 2010, 09:50:32 AM »
Ok so is it t towards the end of the line 29 move that it starts digging in?

In the code you attached if you change the Z in line 29 to 0.1 is it OK?


Hood

Offline Chet

*
  •  58 58
    • View Profile
Re: Z axis drift during X-axis motion...
« Reply #31 on: November 22, 2010, 09:57:31 AM »
The slow Z-axis rotation starts immediately...
I won't be able to do the line modify until later today...
Thanks for enduring...

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Z axis drift during X-axis motion...
« Reply #32 on: November 22, 2010, 10:12:19 AM »
Yes the code is telling the Z to rotate slowly and that is why it is doing it.
Here  is what the code is saying

27  X0.0823  Y0.626  Z 0.0  ( X, Y and Z to move to these positions at the commanded feedrate set earlier)

28  G00  Z0.1  (This is telling Z to Rapid to 0.1)

29  X9.9157  Y1.376  Z0.0 (this is telling X,Y and Z to go to the positions and all will move but as X has the furthest to go it will move faster, Y will be next fastest but Z has hardly any distance to move so it will go slow. The reason is all axis need to start and finish at the same time)

30  X9.9157  Y1.376  Z-0.25(This line is essentially telling the Z to move to -0.25, there are X and Y commands but as they are already there they dont move and are actually not needed in the code, replacing that line with z-0.25 would do exactly the same)

So as you can see the machine is doing as its told by the code. If the Z0 on line 29 was deleted or replaced with Z0.1 the Z Axis would not move until that line had completed and then the next line would take it down to -0.25

Hood
« Last Edit: November 22, 2010, 10:14:33 AM by Hood »

Offline Chet

*
  •  58 58
    • View Profile
Re: Z axis drift during X-axis motion...
« Reply #33 on: November 22, 2010, 10:39:43 AM »
Outstanding explanation!!!!
Thanks, Hood!!!!!

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Z axis drift during X-axis motion...
« Reply #34 on: November 22, 2010, 11:49:33 AM »
Glad it helped.
Hood