Welcome to Our Community

Some features disabled for guests. Register Today.

Z axis not resetting to zero

Discussion in 'General Talk' started by Dave O, Feb 11, 2021.

  1. Dave O

    Dave O New
    Builder

    Joined:
    Jan 23, 2021
    Messages:
    12
    Likes Received:
    3
    Work bee 1010 Black box

    Hi I have a problem with the Z axis not resetting and I hoping someone can help please. If I have a toolpath say to drill two holes. Having set my Z with the job the first hole is drilled correctly to 6mm and moved to the safe height When drilling second hole it starts at 6mm rather than 0mm.

    Thanks Dave
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,044
    Likes Received:
    4,123
    Include the gcode you are using please?

    Are both holes in one file, or are you manually jogging over and running it twice? If so, are you by accident zeroing XYZ instead of just XY?
     
  3. Dave O

    Dave O New
    Builder

    Joined:
    Jan 23, 2021
    Messages:
    12
    Likes Received:
    3
     
  4. Dave O

    Dave O New
    Builder

    Joined:
    Jan 23, 2021
    Messages:
    12
    Likes Received:
    3
    Peter
    Thanks for the fast reply, The holes are in one file I can senf you the code later if it will help
    Dave
     
  5. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,044
    Likes Received:
    4,123
    Yes please do:
     
  6. Dave O

    Dave O New
    Builder

    Joined:
    Jan 23, 2021
    Messages:
    12
    Likes Received:
    3
     
  7. Dave O

    Dave O New
    Builder

    Joined:
    Jan 23, 2021
    Messages:
    12
    Likes Received:
    3
    Peter
    This is the code I'm using.
    It looks like its setting the Z back to zero after the first drill, could it be a setting on the black box that's not right?
    Regards
    Dave

    ; GCODE Generated by cam.openbuilds.com on 2021-02-11
    G21 ; mm-mode
    G54; Work Coordinates
    G21; mm-mode
    G90; Absolute Positioning
    M3 S1000; Spindle On
    ; Operation 0: Drill: Continuous (Centered)
    ; Endmill Diameter: 3
    G0 Z15; move to z-safe height
    G0 F1000 X22.7288 Y18.5128
    G0 Z0
    G1 F100 Z0.0000
    G1 F2000 X22.7288 Y18.5128 Z-4.0000 S1000
    G1 F2000 X22.7288 Y18.5128 Z0.0000 S1000
    G0 Z15; move to z-safe height
    G0 X22.5000 Y87.1875
    G0 Z0
    G1 F100 Z0.0000
    G1 F2000 X22.5000 Y87.1875 Z-4.0000 S1000
    G1 F2000 X22.5000 Y87.1875 Z0.0000 S1000
    ; retracting back to z-safe
    G0 Z15
    M5 S0; Spindle Off
     
  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,044
    Likes Received:
    4,123
    Code is correct. Machine slipping during Z Moves? Check everything mechanical is tight, check that Z Max rate and Z acceleration is set appropriately, check wiring, check grubscrews on shaft coupler
     
    David the swarfer likes this.
  9. Dave O

    Dave O New
    Builder

    Joined:
    Jan 23, 2021
    Messages:
    12
    Likes Received:
    3
    Thanks, will look into this. I hadn't thought of a mechanical problem.
     
  10. Dave O

    Dave O New
    Builder

    Joined:
    Jan 23, 2021
    Messages:
    12
    Likes Received:
    3
    Peter thanks, grubscrews on shaft coupler have also changed Z acceleration
     
    Peter Van Der Walt likes 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