Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    G28 Z Error

    Scheduled Pinned Locked Moved Solved
    General Discussion
    2
    6
    368
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanLundefined
      DanL
      last edited by

      Have homex, homey and homeall working perfectly, and homez works but delivers a G28Z error.
      When I individually home x and y, then z, the z will home but the error message pops. Searched and tried some different parameters, but just can't figure this out.
      I did not uncomment the last lines of Z probing because G30 does "lift Z" as it finishes.

      homey is same format as homex:

      ; homex.g
      ; called to home the X axis
      G91 ; relative positioning
      G1 Z3 F1800 S2 ; lift Z relative to current position
      M913 X70 ; current to 70%
      G1 S1 X305 F3000 ; move quickly to X axis endstop and stop there (first pass)
      G1 X-5 F6000 ; go back a few mm
      G1 S1 X305 F360 ; move slowly to X axis endstop once more (second pass)
      M913 X100 ; current to 100%
      G1 Z-3 F1800 S2 ; lower Z again
      G90 ; absolute positioning
      G1 X290

      ; homeall.g
      ; called to home all axes
      G91 ; relative positioning
      G1 Z3 F1800 S2 ; lift Z relative to current position
      M913 X70 Y70 Z60 ; reduce stepper currents
      G1 S1 X305 Y305 F3000 ; move quickly to X and Y axis endstops and stop there (first pass)
      G1 X-5 Y-5 F1800 ; go back a few mm
      G1 S1 X305 Y305 F360 ; move slowly to X and Y axis endstops once more (second pass)
      G90 ; absolute positioning
      G1 X150 Y150 F6000 ; go to first bed probe point and home Z
      G30 ; home Z by probing the bed
      M913 X100 Y100 Z100 ; increase current to 100%
      ; Uncomment the following lines to lift Z after probing
      ;G91 ; relative positioning
      ;G1 S2 Z5 F100 ; lift Z relative to current position
      ;G90 ; absolute positioning

      .; homez.g
      ; called to home the Z axis
      G91 ; relative positioning
      G1 Z3 F1800 S2 ; lower bed relative to current position
      G4 P1000 ; ensure time for bed drop
      G90 ; absolute positioning
      M913 Z60 ; reduce current to 60%
      G1 X150 Y150 F6000 ; go to first probe point

      G30 ; home Z by probing the bed
      M913 Z100 ; increase current to 100%

      ; Uncomment the following lines to lift Z after probing
      ;G91 ; relative positioning
      ;G1 S2 Z3 F1800 ; lift Z relative to current position
      ;G90 ; absolute positioning

      DanL

      Phaedruxundefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        What is the error?

        Does it still happen if you remove the G4 P1000 pause? That shouldn't be necessary, it should wait for the Z move to complete before moving on to the XY move.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • DanLundefined
          DanL
          last edited by

          The error message...pink box... just reads "G28 Z Error: Bad command"
          Is there more info somewhere else?
          I'll remove the pause.
          Thanks.

          DanL

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator @DanL
            last edited by

            @danl said in G28 Z Error:

            .; homez.g

            Just noticed that there is a period before the semicolon. Does that exist in your macro file as well?

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • DanLundefined
              DanL
              last edited by

              yep...just looked. Geez, this stuff is touchy.
              I'll drop the G4 and the period and test in about 5 minutes.
              Thanks. Wow...really great catch.

              DanL

              1 Reply Last reply Reply Quote 0
              • DanLundefined
                DanL
                last edited by

                Solved....whoa...just one little dot.
                Thank you.

                DanL

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA