Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: baldysm on April 01, 2008, 10:17:18 AM

Title: Z not working well
Post by: baldysm on April 01, 2008, 10:17:18 AM
I'm having a problem with a Z axis not working right. 100% a software/program issue. I'm using version R2.0.060

Below is 1 example of a program that I'm having a problem with. I have not tried every program, but I think it's occuring with all my programs.

The problem is that the last move in the program is Z1.5, but movement stops at Z.8573, consistently. Thats where the software stops and the display says .8573.

Any ideas?

G00 G49 G40.1 G17 G80 G50 G90
M6 T1
M03 S0
G01Z0.000 F0
X0.055Y0.037Z-0.001 F2

(movement code deleted)

M5 M9
Title: Re: Z not working well
Post by: Hood on April 01, 2008, 10:34:11 AM
Not sure but try putting your M5 and M9 on seperate lines. Also make sure there is a return after the last line of code, its normal practice to end the code with a % and that way you know you have pressed the return key to move your code to the next line.
Title: Re: Z not working well
Post by: stirling on April 01, 2008, 11:09:42 AM
When I loaded this, Mach complained and was generally an unhappy little motion controller. I corrected the following before I could run it.

1) You can't have zero spindle speed
2) You can't have zero feedrate
3) use some spaces here and there (they're freeĀ  ;D) - particularly before an an axis word (X Y and Z)

It then ran fine - Z stopped on 1.5

However it may be worth reading my posts at,6339.0.html