Welcome to Our Community

Some features disabled for guests. Register Today.

Gcode - G92 set position problem.

Discussion in 'CNC Mills/Routers' started by StigLindberg_, Sep 5, 2022.

  1. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Hey all.

    First at all I´m newbie to cnc and sorry for my bad english, I´m from Denmark.

    I have a Piranha CNC 1515 with Openbuilds Blackbox and with Openbuilds Blackbox interface, fantastic machine and works great, but I have a problem I hope you maybe can solve for me.

    Then I startup the cnc machine, I always standard homes all Axis to set zero for all axis.

    Then I run my start position gcode on the openbuilds interface with a gcode to get the new position for the axis before loading the mill program, but the interface reads Gcode G92 X0 Y0 Z0 in the gcode but goes back to the original home coordinates.

    But after the machine have reach the position and reads G92 X0 Y0 Z0 the interface shows the new position X0 Y0 Z0 but 2 sec after it goes back to X198 Y48 Z0 and I need to manuel setzero for all axis.

    What have I done wrong ?

    My gcode for the start position looks like this:
    G1 F800 Z0
    G1 F2000 Y48
    G1 F2000 X198
    G92 X0 Y0 Z0

    I use this start position gcode because I´m milling parts on a plastic unit there are centret between the machine work area.

    Best Regards
    Stig Lindberg.
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,871
    Likes Received:
    4,283
    Sets G53 and G54, good so far.

    See G Codes

    Are you sure you want to use G92? It is odd choice?

    i would:
    • Home
    • G0 to where you want the origin (perhaps in G53, or as relative moves in G54)
    • G10 L20 X0 Y0 Z0 to set Work Zero there
    Could skip the G0 step too and set the correct offset values in the G10 command too

    See G Codes
     
  3. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Thank you so much for the help, that worked :)
    Great I learned something new today too
     
    Peter Van Der Walt likes this.
  4. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,430
    Likes Received:
    1,907
    once you have used 'setzero' the blackbox remembers the offsets, even through power down.
    Therefore you do not need to set the offsets after every home, it already 'knows'.
    so if your boxes are always in the same place you never need to change the offsets.

    I would avoid G92, it can have unforseen sideeffects.
    Those are relative moves, relative the the previous 'setZero' or G92. I would not do this.
     

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