Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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
G21
(end_mill_.03)
M6 T1
M03 S0
G01Z0.500
G00X0.051Y0.038
Z0.016
G01Z0.000 F0
X0.055Y0.037Z-0.001 F2
X0.072Y0.029Z-0.004
X0.086Y0.020Z-0.007
(movement code deleted)
X0.148Y-0.010
X0.138Y0.005
X0.125Y0.020
X0.115Y0.029
G00Z1.5
M5 M9
M30
-
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.
Hood
-
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 http://www.machsupport.com/forum/index.php/topic,6339.0.html
Ian