Need Help! Advice on going home at end of program


Results 1 to 5 of 5

Thread: Advice on going home at end of program

  1. #1
    Registered
    Join Date
    Oct 2008
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0

    Default Advice on going home at end of program

    My issue is that X,Y and Z all move at the same time.

    I typically end my programs like this:

    G0 Z20.0 (mm example)
    G49
    G91 G28 Z0.
    G28 X0 .Y0.
    M2

    With commercial machines I have use in the past this works fine.

    With KMotionCNC I have had to place G91 on its own line but why are X and Y moving before Z gets to home position?

    Similar Threads:


  2. #2
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2181
    Downloads
    0
    Uploads
    0

    Default Re: Advice on going home at end of program

    Hi eng101,

    That is the way it is coded.

    The Interpreter moves to the specified intermediate position (either incremental or absolute) then the XYZ Axes move to the home position.

    So G91 G28 Z0 indicates an incremental move of 0 and then the XYZ Axes move to the home position.

    To move Z to absolute 0 first code G90 G28 Z0

    Regards

    TK
    http://dynomotion.com


  3. #3
    Registered
    Join Date
    Oct 2008
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0

    Default Re: Advice on going home at end of program

    Hello Tom

    G90 G28 Z0 just sends the Z Axis to the machine table.Not the direction I wanted.

    I just have to make a sufficient clearance move before using G91 G28 Z0.



  4. #4
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2181
    Downloads
    0
    Uploads
    0

    Default Re: Advice on going home at end of program

    Hi eng101,

    Oops, if your coordinate system has 0 set at the table surface that would occur.

    G0 G53 Z0

    should move Z up assuming Machine 0 is fully up on your system.

    Regards

    TK
    http://dynomotion.com


  5. #5
    Registered
    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    1268
    Downloads
    2
    Uploads
    0

    Default Re: Advice on going home at end of program

    That's the way it seems to be coded. Some software, like UCCNC, allows you to set in which order the axes are homed, some don't allow that or don't have that feature implemented. Homing all at the same time never really works, so I don't know how those people were thinking, the way UCCNC handles this is very logical and useful. Of course, "home" should not be zero coordinate position because that can never really be OK as home, especially not for Z.

    https://adapting-camera.blogspot.com
    https://www.youtube.com/channel/UC_vrAWOz5YGX6_e3qtXg3YA


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

Advice on going home at end of program
Advice on going home at end of program