when I post code and after running the code on my machine with Mach 3, my machine doesn't stop where I want it to.
in my millpst it has this :
5. End of file for non-zero tool
n,spindle_off
n,coolant_off
n,"G91 G28 Z0"
n,"G28 Y0"
n,first_tool_with_prefix,"M06"
n,"M30"
At the end of the G-code it has this:
5. End of file for non-zero tool
n,spindle_off
n,coolant_off
n,"G91 G28 Z0"
n,"G28 Y0"
n,first_tool_with_prefix,"M06"
n,"M30"
does this mean it should go to Z0, Y0 ?
if so that is not where it is going.
I'm not sure where to look.
Similar Threads:
David L. Aery
www.hooksolutions.com
I'll study some more in the Mach, Thank you
David L. Aery
www.hooksolutions.com
Also G91 can be interpreted as an incremental move on some machines So,h if Mach reads it that way means the machine would make a move of 0"
Where/what does your machine actually go to ?
G28 is "return to reference point".
... some controls require a G91 ( incremental ), this may not be required, but if it is required...remember to switch back to G90 ( absolute )... place it before the M30, &/or any positioning move.
an alternative to G28 is G53 which is to use the machine coordinate system for that line of code ONLY...
syntax...
G53 Z0
G53 Y0
M30
I'm not sure where it goes because at the end of the file the Z started going down until it bottomed out on 2 occasions, the last time it went to a logical place and didn't throw reset.
I haven't changed anything from default settings.
this started when I had to changed computers because of computer crash, had to reinstall Mach, upgraded BC so there was a new millpst file, the old one wouldn't work, but now everything seems to work as expected.
David L. Aery
www.hooksolutions.com