Simple G-code question


Results 1 to 10 of 10

Thread: Simple G-code question

  1. #1
    Member
    Join Date
    Jun 2008
    Location
    USA
    Posts
    36
    Downloads
    0
    Uploads
    0

    Default Simple G-code question

    I am trying to adjust my post processor to have the machine go to the back left corner after the job is done using:

    M5
    G53 Z0
    G0 X0 Y120

    When this executes, after the Z moves to the top, as the machine is moving across to the XY position, the Z starts moving down. I can specify a Z like G0 X0 Y120 Z6, but I prefer not to guess what a good Z is here and just have the Z stay at Machine 0.

    Shawn

    Similar Threads:


  2. #2
    Flies Fast Superman's Avatar
    Join Date
    Dec 2008
    Location
    Antarctica
    Posts
    3109
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    G53 is only effective on the line it is stated
    So..
    G53 Z0
    G53 X0 Y120.



  3. #3
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    That makes no sense. After the Z move is complete, it should just stay there until commanded to move again.

    M5
    G53 Z0

    G0 X0 Y120 What happens if you run the code without this line? I understand the X and Y would not move, but what is the Z doing? Is the Z drifting down from vibration, or is it really being commanded to move? Try jogging X and Y to position after the G53 Z0 move and see what happens.

    Try running this code and see what happens
    M5
    G53 Z0
    G54
    G0 X0 Y120

    or this code
    M5
    G53 Z0
    G53 X0 Y120

    Jim Dawson
    Sandy, Oregon, USA


  4. #4
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    Quote Originally Posted by szavoda View Post
    I am trying to adjust my post processor to have the machine go to the back left corner after the job is done using:

    M5
    G53 Z0
    G0 X0 Y120

    When this executes, after the Z moves to the top, as the machine is moving across to the XY position, the Z starts moving down. I can specify a Z like G0 X0 Y120 Z6, but I prefer not to guess what a good Z is here and just have the Z stay at Machine 0.

    Shawn
    What Control / software are you using

    Mactec54


  5. #5
    Member
    Join Date
    Jun 2008
    Location
    USA
    Posts
    36
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    Quote Originally Posted by Jim Dawson View Post
    That makes no sense. After the Z move is complete, it should just stay there until commanded to move again.

    M5
    G53 Z0

    G0 X0 Y120 What happens if you run the code without this line? I understand the X and Y would not move, but what is the Z doing? Is the Z drifting down from vibration, or is it really being commanded to move? Try jogging X and Y to position after the G53 Z0 move and see what happens.

    Try running this code and see what happens
    M5
    G53 Z0
    G54
    G0 X0 Y120

    or this code
    M5
    G53 Z0
    G53 X0 Y120
    I am sure it is not drift - it went down about 7 inches across the span from 0,40 to 0, 120. I will experiment with all of the recommendations and get back with results.

    Regarding the software, this is Compass on a Yaskawa system.



  6. #6
    Member
    Join Date
    Nov 2007
    Location
    Canada and Nothern ireland
    Posts
    352
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    G53 is cancelation of all work offsetts and takes comands direct from machine position
    Were is your actual x and Y and z zero position when machine is homed ?



  7. #7
    Member
    Join Date
    Jun 2008
    Location
    USA
    Posts
    36
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    Home would be the front-left corner at top of the Z Axis



  8. #8
    Member
    Join Date
    Nov 2007
    Location
    Canada and Nothern ireland
    Posts
    352
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    Were is Z -zero ?---high above the table or at the table ?



  9. #9
    Member
    Join Date
    Jun 2008
    Location
    USA
    Posts
    36
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    Z-Zero is high above the table...



  10. #10
    Member
    Join Date
    Nov 2007
    Location
    Canada and Nothern ireland
    Posts
    352
    Downloads
    0
    Uploads
    0

    Default Re: Simple G-code question

    Try
    (Safe home)
    G00 G91 G28 Z0.0
    G00 G28 X0.0 Y0.0
    G90
    M1
    M30



    Slowley --SINGLE STEP ---RAPID Down
    This should send the machine to Home

    (ATC/APC/Loading Position)
    G00 G91 G30 Z0.0
    G00 G30 X0.0 Y0.0
    G90
    M1
    M30

    this will send the machine to 2nd ref position usually for an ATC or Pallet change position or loading if required



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

Simple G-code question

Simple G-code question