Welcome to Our Community

Some features disabled for guests. Register Today.

Z Axis Endstop Hit at the beginning of all jobs

Discussion in 'Controller Boards' started by Rithik231, Nov 28, 2020.

  1. Rithik231

    Rithik231 New
    Builder

    Joined:
    Jun 5, 2020
    Messages:
    9
    Likes Received:
    5
    For some reason, after I load a g-code file and hit run starting at (0,0,0), the Z Axis hits the Z end stop after moving up. When I restart the machine, sometimes it just barely hits it and the job continues. Is there a way to prevent the spindle from rising so high before the job starts? I'm using HSMWorks with Solidworks.

    I'm thinking that this maybe some firmware adjustment in the BlackBox?

    These are a few of the first lines that are generated.

    Thanks!

    (Contour1)
    (T1 D=3.175 CR=0 - ZMIN=-5.5 - flat end mill)
    G90 G94
    G17
    G21
    G28 G91 Z0
    G90

    (Contour1)
    G54
    M8
    G0 X20.987 Y2.732
    Z15.24
    Z-5.182
    G1 Y2.74 Z-5.253 F381
    X20.988 Y2.764 Z-5.32
    Y2.802 Z-5.38
    X20.989 Y2.852 Z-5.431
    X20.99 Y2.912 Z-5.469
    X20.991 Y2.979 Z-5.492
    X20.992 Y3.05 Z-5.5
    X21.015 Y4.446
    G3 X20.703 Y4.768 I-0.317 J0.005
    G1 X19.268 Y4.792 F1000
    X19.124 Y4.794
    X18.837 Y4.803
    X17.401 Y4.845
    X17.258 Y4.849
    X14.961 Y4.941
    X14.817 Y4.948
    X13.956 Y4.992
    X13.813 Y5
    X13.669 Y5.01
    X13.079 Y5.054
    X12.951 Y5.066
    X12.521 Y5.111
    X12.377 Y5.126
    X12.233 Y5.146
    X11.803 Y5.206
     
  2. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,431
    Likes Received:
    1,908
    Your postprocessor is generating a G28 safety move.
    GRBL (in the controller) default G28 to 0,0,0, the same as machine home (which must be Z as high as it will go).
    what you need to do is move it off the switch, just enough.

    in the serial console (I assume you are using OpenbuildsCONTROL) give these commands after homing (if you dont have home switches then please search this forum for the 'fake the home' resource)
    G21
    G0 X-1 Y-1 Z-1
    G28.1

    Those commands will move away from the home position by 1mm and then set G28 to that position. Now the G28 G0 Z0 will move to this set position instead of the actual machine home.
     

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