Welcome to Our Community

Some features disabled for guests. Register Today.

Understanding 'Fake Homing'...Help!

Discussion in 'CNC Mills/Routers' started by Tony LaBelle, Jun 29, 2022.

  1. Tony LaBelle

    Builder

    Joined:
    Nov 27, 2015
    Messages:
    54
    Likes Received:
    6
    Hello All - I have a small form factor CNC Router and don't have limit switches installed. I move each axis to a designated spot, (its home position) before shutting down power to the BlackBox. This position is in it's 'Fake Home' position. Now here's my question: By using the G28 (home command) will it go back to the 'Fake Home' position? Also, how can I 'home' each axis individually...Is there a GCode command for that? There's been quite a few times where I would like to move just a single axis home.
    Thanks! Tony.
     
  2. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    You need to be careful with G28. It defaults to Machine 0 ("home") but you can override that to anywhere on the machine. If you're using OpenBuilds Control, the better thing to do is create macros.

    Send home:

    G53 G0 Z0
    G53 X0 Y0

    Send a specific axis home:

    G53 G0 z0
    G53 X0

    Or

    G53 G0 z0
    G53 Y0

    Notice in all of them it raises Z up first.
     
    David the swarfer likes this.
  3. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,922
    Likes Received:
    4,291
    G28 is not the homing command. $H is. Fit switches, couple bucks for total convenience :)
     
    Giarc and David the swarfer like this.
  4. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,435
    Likes Received:
    1,908
    G28 and G30 are 'predefined positions', which in GRBL default to 0,0,0 (the same as home unless you change it).

    I use G28 for tool changes, I jogged to where I want it for convenient tool changing then gave
    G28.1
    which stores the current position as offsets from home.
    Now when I want to change the tool I hit my G28 macro button and it goes there without disturbing any other settings.

    This does rely on a consistent home since it is an offset, if home is not correct your G28 moves will probably crash into something.
     
  5. Tony LaBelle

    Builder

    Joined:
    Nov 27, 2015
    Messages:
    54
    Likes Received:
    6
    Thanks abunch for the info. I'll be playing with the above shortly. One more question on G0 command. In the above examples could you, for instance, use the G1 command (Feedrate) rather than G0 (rapid) when creating Homing macros? Im curious if its possible.
     
  6. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,435
    Likes Received:
    1,908
    Yes you can use G1 but that means you also need to supply the feedrate.

    Send home
    Code:
    G21 G17 G90  ; note all bits of code must set the modes they need, never expect the modes to be correct
    G53 G1 Z0 F1000
    G53 G1 X0 Y0
    
    but why? G0 is the correct command for rapid moves for simple positioning. If you reduce the feedrate it will just take longer, no real benefit unless you always have 'something in the way' in which case 2 macros, one each for X and Y might be a better solution.
    ie move Z up, then move the other axis in each macro.

    for X
    Code:
    G21 G17 G90
    G53 G0 Z0 
    G53 G0 X0
    
    for Y
    Code:
    G21 G17 G90
    G53 G0 Z0 
    G53 G0 Y0
    
     
  7. Tony LaBelle

    Builder

    Joined:
    Nov 27, 2015
    Messages:
    54
    Likes Received:
    6
    Great Info Thanks again for the clarification. I'm off to play with the mini CNC now :D
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice