587,827 active members*
2,949 visitors online*
Register for free
Login

Thread: End of file

Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2009
    Posts
    214

    End of file

    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.
    David L. Aery
    www.hooksolutions.com

  2. #2
    Join Date
    Dec 2008
    Posts
    4548

    Re: End of file

    Quote Originally Posted by dlaery View Post
    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.
    The G28 is a machine zero home. Look in your mach3 preparations for the work coords setup, coupled with the machine coords setup.

    When you zero mach3 for the job, there are 2 different zero's to contend with.

  3. #3
    Join Date
    Feb 2009
    Posts
    214

    Re: End of file

    I'll study some more in the Mach, Thank you
    David L. Aery
    www.hooksolutions.com

  4. #4
    Join Date
    Jul 2009
    Posts
    219

    Re: End of file

    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"

  5. #5
    Join Date
    Dec 2008
    Posts
    3136
    Quote Originally Posted by dlaery View Post
    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"
    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

  6. #6
    Join Date
    Feb 2009
    Posts
    214

    Re: End of file

    Quote Originally Posted by Superman View Post
    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

Similar Threads

  1. How to Merge Init file with external buttons file.
    By amitkumar171 in forum Dynomotion/Kflop/Kanalog
    Replies: 5
    Last Post: 11-19-2017, 07:14 PM
  2. Replies: 8
    Last Post: 05-04-2015, 12:49 PM
  3. Windows x64 text file splitter that goes by lines, not file size?
    By Galane in forum Uncategorised CAM Discussion
    Replies: 0
    Last Post: 04-06-2015, 12:26 AM
  4. How do you convert STL file from 3D printer to G-code or a CNC desktop mill file
    By imperial90303 in forum Uncategorised CAM Discussion
    Replies: 4
    Last Post: 01-25-2015, 08:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •