585,733 active members*
5,010 visitors online*
Register for free
Login
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2008
    Posts
    36

    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

  2. #2
    Join Date
    Dec 2008
    Posts
    3109

    Re: Simple G-code question

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

  3. #3
    Join Date
    Dec 2013
    Posts
    5717

    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
    Join Date
    Jan 2005
    Posts
    15362

    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
    Join Date
    Jun 2008
    Posts
    36

    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
    Join Date
    Nov 2007
    Posts
    352

    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
    Join Date
    Jun 2008
    Posts
    36

    Re: Simple G-code question

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

  8. #8
    Join Date
    Nov 2007
    Posts
    352

    Re: Simple G-code question

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

  9. #9
    Join Date
    Jun 2008
    Posts
    36

    Re: Simple G-code question

    Z-Zero is high above the table...

  10. #10
    Join Date
    Nov 2007
    Posts
    352

    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

Similar Threads

  1. Help With Simple Code,
    By cubby in forum Milling
    Replies: 4
    Last Post: 02-28-2020, 07:09 PM
  2. Simple G-Code Question
    By ChrisWalker in forum G-Code Programing
    Replies: 7
    Last Post: 06-27-2017, 03:17 AM
  3. simple G code help
    By Deltabox in forum G-Code Programing
    Replies: 22
    Last Post: 06-11-2012, 04:46 PM
  4. Need (hopefully simple)G code Help
    By inventor30 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 2
    Last Post: 11-12-2010, 12:32 PM
  5. Simple Question Simple Answer ?
    By p3t3rv in forum Stepper Motors / Drives
    Replies: 6
    Last Post: 02-16-2006, 04:00 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
  •