Need Help! End of file


Results 1 to 6 of 6

Thread: End of file

  1. #1
    Member
    Join Date
    Feb 2009
    Location
    USA
    Posts
    214
    Downloads
    0
    Uploads
    0

    Default 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.

    Similar Threads:
    David L. Aery
    www.hooksolutions.com


  2. #2
    Ghost BurrMan's Avatar
    Join Date
    Dec 2008
    Location
    United States
    Posts
    4548
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Feb 2009
    Location
    USA
    Posts
    214
    Downloads
    0
    Uploads
    0

    Default Re: End of file

    I'll study some more in the Mach, Thank you

    David L. Aery
    www.hooksolutions.com


  4. #4
    Member
    Join Date
    Jul 2009
    Location
    USA
    Posts
    219
    Downloads
    0
    Uploads
    0

    Default 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
    Flies Fast Superman's Avatar
    Join Date
    Dec 2008
    Location
    Antarctica
    Posts
    3108
    Downloads
    0
    Uploads
    0

    Default

    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
    Member
    Join Date
    Feb 2009
    Location
    USA
    Posts
    214
    Downloads
    0
    Uploads
    0

    Default 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


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

End of file

End of file