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

    Duet Wifi - G29 causes extremely rapid Z movement and head crash

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    19
    1.5k
    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.
    • lowracerundefined
      lowracer
      last edited by

      I'm running an Ultimaker 2+ upgraded to Duet Wifi and BLtouch Classic. G29 soon after install of the Duet board worked correctly and generated a heightmap which I've been using for some months now. Generated lots of good prints with no issues.

      Recently, I decided to generate a new heightmap, but upon sending G29, this causes the bed to rise at a lightning fast pace until it impacts the hotend, at which point I feel compelled to do an Emergency Stop.

      Any ideas what could be going on?

      M115 reports: FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.02(RTOS) ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2018-12-24b1

      1 Reply Last reply Reply Quote 0
      • Vetiundefined
        Veti
        last edited by

        post all your config files.

        1 Reply Last reply Reply Quote 0
        • lowracerundefined
          lowracer
          last edited by

          Here is config.g: https://pastebin.com/p3RDx132

          1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti
            last edited by

            M203 X18000 Y18000 Z9000 E6000 ; Set maximum speeds (mm/min)

            you z speed is 150mm/s. that is a lot

            try something reasonable like 6-10mm/sec (360-600)

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

              M558 P9 H5 F1200

              Your probing speed is an order of magnitude faster than it should be for the BLTouch. Try F120 instead. This is in addition to the change Veti has suggested.

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • lowracerundefined
                lowracer
                last edited by

                Thanks for the tips. I re-tried the G29 with the speed and probing settings suggested. Now it goes slowly enough that I can see more detail of what is happening.

                During the slow rising of the bed, the BLTouch lights up red and is not extending its metal probe as it usually does at the beginning of a print.

                Also, simultaneously with the Z axis motion, the Y axis is moving ever so slowly to the left.

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

                  Does the probe work if you go through this procedure?

                  https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 0
                  • lowracerundefined
                    lowracer
                    last edited by

                    Those linked tests work, M401 & M402 behave as expected, G30 properly extends the probe, raises the bed slowly and detects the bed with the probe, then stops.

                    To clarify, this printer is working and has been working very well to make prints, always using BLTouch probe before printing. It's just that the G29 is behaving oddly. And it hasn't always been this way because I'm using G29 S1 in the startup GCODE of each print to load up a heightmap generated from a previous G29 some time ago.

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

                      @lowracer said in Duet Wifi - G29 causes extremely rapid Z movement and head crash:

                      During the slow rising of the bed, the BLTouch lights up red and is not extending its metal probe as it usually does at the beginning of a print.
                      Also, simultaneously with the Z axis motion, the Y axis is moving ever so slowly to the left.

                      That is very odd behaviour and I can' explain why it would be doing that, but then homing fine.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • lowracerundefined
                        lowracer
                        last edited by

                        I'm suspecting something scrozzled the firmware. Will try re-flashing new firmware tonight to see if that fixes it.

                        1 Reply Last reply Reply Quote 0
                        • lowracerundefined
                          lowracer
                          last edited by

                          Reflashing firmware did not fix the problem, unfortunately.

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

                            Can you post a video of it in action?

                            Z-Bot CoreXY Build | Thingiverse Profile

                            1 Reply Last reply Reply Quote 0
                            • lowracerundefined
                              lowracer
                              last edited by

                              Here's a dropbox link to the video of the G29 operation in action (7.78MB .mp4):

                              https://www.dropbox.com/s/u8qfz1u7khgt8f5/G29 UM2%2B Duet Wifi.mp4?dl=0

                              1 Reply Last reply Reply Quote 0
                              • Vetiundefined
                                Veti
                                last edited by

                                please post all your homing scripts.

                                1 Reply Last reply Reply Quote 0
                                • lowracerundefined
                                  lowracer
                                  last edited by

                                  Flashed firmware up to 2.03RC1, G29 still exhibits the same behavior. Here are the homing files as requested:

                                  ; homex.g
                                  ; called to home the X axis
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Fri Mar 15 2019 21:53:32 GMT-0700 (Pacific Daylight Time)
                                  G91 ; relative positioning
                                  ;G1 Z5 F6000 S2 ; lift Z relative to current position
                                  G1 S1 X-228 F9200 ; move quickly to X axis endstop and stop there (first pass)
                                  G1 X5 F6000 ; go back a few mm
                                  G1 S1 X-228 F360 ; move slowly to X axis endstop once more (second pass)
                                  ;G1 Z-5 F6000 S2 ; lower Z again
                                  G90 ; absolute positioning

                                  ; homey.g
                                  ; called to home the Y axis
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool on Fri Mar 15 2019 21:53:29 GMT-0700 (Pacific Daylight Time)
                                  G91 ; relative positioning
                                  ;G1 Z5 F6000 S2 ; lift Z relative to current position
                                  G1 S1 Y228 F9200 ; move quickly to Y axis endstop and stop there (first pass)
                                  G1 Y-5 F6000 ; go back a few mm
                                  G1 S1 Y228 F360 ; move slowly to Y axis endstop once more (second pass)
                                  ;G1 Z-5 F6000 S2 ; lower Z again
                                  G90 ; absolute positioning

                                  ;homez.g
                                  G91 ; relative mode
                                  G1 S1 Z210 F7000 ; move Z towards the switch until it triggers
                                  ;G1 S2 Z-5 F100 ; move Z back 5mm
                                  ;G1 S1 Z10 F100 ; move Z slowly towards the switch until it triggers
                                  G90 ; back to absolute mode

                                  ; homeall.g
                                  ; called to home all axes

                                  ;home Z to max extent (bottom of enclosure) first
                                  G91 ; relative mode

                                  G1 S1 Z250 F7000 ; move Z towards the switch until it triggers
                                  ;G1 S2 Z-5 F100 ; move Z back 5mm
                                  ;G1 S1 Z10 F100 ; move Z slowly towards the switch until it triggers

                                  G1 S1 X-228 Y228 F9000 ; move quickly to X and Y axis endstops and stop there (first pass) (was F1800)
                                  G1 X5 Y-5 F7200 ; go back a few mm
                                  G1 S1 X-228 Y228 F360 ; move slowly to X and Y axis endstops once more (second pass)
                                  G90 ; absolute positioning
                                  G1 X110 Y110 F7200 ; go to first probe point (approx center of bed)

                                  ;G30 ; home Z by probing the bed

                                  ; 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

                                  1 Reply Last reply Reply Quote 0
                                  • Vetiundefined
                                    Veti
                                    last edited by

                                    @lowracer said in Duet Wifi - G29 causes extremely rapid Z movement and head crash:

                                    G1 S1 Z250 F7000 ; move Z towards the switch until it triggers

                                    you move your bed up by 250mm? why

                                    ;G30 ; home Z by probing the bed

                                    you disabled your probing of the bed. so no wonder the probe is not deploying.

                                    lowracerundefined 1 Reply Last reply Reply Quote 1
                                    • lowracerundefined
                                      lowracer @Veti
                                      last edited by

                                      @veti said in Duet Wifi - G29 causes extremely rapid Z movement and head crash:

                                      @lowracer said in Duet Wifi - G29 causes extremely rapid Z movement and head crash:

                                      G1 S1 Z250 F7000 ; move Z towards the switch until it triggers

                                      you move your bed up by 250mm? why

                                      Thanks for the response.

                                      Original Ultimaker 2+ (UM2+) behavior (no BLTouch) has the bed "zero" to the bottom of the case before printing and after print is completed. Moving it 250 sends down it to where it will trip the Z endstop at the bottom of the cage.

                                      ;G30 ; home Z by probing the bed

                                      you disabled your probing of the bed. so no wonder the probe is not deploying.

                                      The problem described in the original post occurs when issuing a G29 command from the web interface. I was not aware these homing scripts get called by the G29 command.

                                      I commented out that G30 because I do not want "homing" behavior to include probing the bed. I have that done in the startup script in the GCODE of the file being printed, e.g.:

                                      G28 XY ;Home XY
                                      M561 ; Clear any bed transform that might be in place
                                      G1 X104.5 Y130 ; Move Probe to middle of bed
                                      G30 ; Do a single probe
                                      G29 S1; load heightmap
                                      G1 Z20.0 F6000 ; Move Z to 20

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

                                        So before you run G29 it needs to accurately know where Z0 is. If you are homing to Zmax, how confident are you that When you move the bed back up Z0 will mean the nozzle is touching the bed? Are you running a G30 before doing G29?

                                        Z-Bot CoreXY Build | Thingiverse Profile

                                        lowracerundefined 1 Reply Last reply Reply Quote 1
                                        • lowracerundefined
                                          lowracer @Phaedrux
                                          last edited by lowracer

                                          @phaedrux said in Duet Wifi - G29 causes extremely rapid Z movement and head crash:

                                          Are you running a G30 before doing G29?

                                          Bingo. That fixed it.
                                          Thanks for the help. Got a new heightmap generated and printing away.

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