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

Automatic Bed Tilt Calibration, G30 S4, and G30 S-2

Scheduled Pinned Locked Moved
General Discussion
5
46
2.8k
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.
  • undefined
    BStump @BStump
    last edited by 23 Jun 2021, 14:27

    After commenting out the M558 and M280 in my Tilt Macro the results are better but it does not look like it corrected the Z=0. Maybe I need to run a G30 S-2 K0 to correct the Z=0.

    6571d84c-7454-457b-b462-2641d26b1cff-image.png

    M300 S555 P666 ;
    ;M280 P7 S60
    M300 S1888 P444 ; Beep
    M561
    G28 ; Home
    ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
    G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
    G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
    G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
    G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
    M561 ; home
    G28 ; home
    ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
    G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
    G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
    G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
    G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
    M561 ; home
    G28 ; home
    ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
    G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
    G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
    G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
    G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
    M561 ; home
    G28 ; home
    M300 S1600 P555
    M291 S2 P"Automatic bed tilt calibration has been performed"
    undefined 1 Reply Last reply 23 Jun 2021, 14:34 Reply Quote 0
    • undefined
      BStump @BStump
      last edited by 23 Jun 2021, 14:34

      Well the G30 S-2 K0 still errored out and said no tool selected.

      0404c870-0e2e-45b2-9acd-f199b3790395-image.png

      M300 S555 P666 ;
      ;M280 P7 S60
      M300 S1888 P444 ; Beep
      G30 S-2 K0
      M561
      G28 ; Home
      ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
      G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
      G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
      G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
      G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
      M561 ; home
      G28 ; home
      ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
      G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
      G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
      G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
      G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
      M561 ; home
      G28 ; home
      ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
      G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
      G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
      G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
      G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
      M561 ; home
      G28 ; home
      M300 S1600 P555
      M291 S2 P"Automatic bed tilt calibration has been performed"
      undefined 1 Reply Last reply 23 Jun 2021, 14:51 Reply Quote 0
      • undefined
        BStump @BStump
        last edited by 23 Jun 2021, 14:51

        Added T0 to the macro (not config.g) and got past the G30 S-2 no tool error, but still no sign the Z=0 is being reset.

        41eb135b-06db-4aff-9ba3-98a81b02ee83-image.png

        M300 S555 P666 ;
        ;M280 P7 S60
        M300 S1888 P444 ; Beep
        T0
        G30 X10 Y980 S-2 K0
        M561
        G28 ; Home
        ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
        G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
        G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
        G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
        G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
        M561 ; home
        G28 ; home
        ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
        G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
        G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
        G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
        G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
        M561 ; home
        G28 ; home
        ;M558 P9 H15 F120 T9000 A1 R0.7 ; Set Z probe type to bltouch and the dive height + speeds
        G30 P0 X10 Y10 Z-99999 ; Probe near a leadscrew
        G30 P1 X980 Y10 Z-99999 ; Probe near a leadscrew
        G30 P2 X980 Y980 Z-99999 ; Probe near a leadscrew
        G30 P3 X10 Y980 Z-99999 S4 ; Probe near a leadscrew
        M561 ; home
        G28 ; home
        M300 S1600 P555
        M291 S2 P"Automatic bed tilt calibration has been performed"
        undefined 1 Reply Last reply 23 Jun 2021, 15:02 Reply Quote 0
        • undefined
          BStump @BStump
          last edited by 23 Jun 2021, 15:02

          I need a way that automatically works to reset the Z=0. Currently no sign the tilt correction is taking nor the Z=0 is being reset correctly.

          1 Reply Last reply Reply Quote 0
          • undefined
            BStump @jay_s_uk
            last edited by 23 Jun 2021, 15:09

            @jay_s_uk said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

            if !move.axes[0].homed || !move.axes[1].homed ; If the printer hasn't been homed, home it G28 XY ; home y and x ; G28 Z ; home z ; M561 ; clear any bed transform M98 P"bed_screws.g" ; perform bed tramming echo "BTC: 1 - Difference was " ^ move.calibration.initial.deviation ^ "mm" ; while move.calibration.initial.deviation >= 0.01 ; perform additional tramming if previous deviation was over 0.01mm if iterations = 5 abort "Too many auto tramming attempts" M98 P"bed_screws.g" ; perform bed tramming echo "BTC: " ^ iterations + 2 ^ " - Difference was " ^ move.calibration.initial.deviation ^ "mm" continue ; G28 Z

            I tried to use your suggested macro and it errored out

            5e5d7a71-a9fc-4384-9065-5502b8b3bbb9-image.png 0bf4bd25-64ae-4b10-8cc1-1f03dade83db-image.png

            undefined 1 Reply Last reply 23 Jun 2021, 15:12 Reply Quote 0
            • undefined
              BStump @BStump
              last edited by BStump 23 Jun 2021, 15:12

              @jay_s_uk

              @bstump said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

              I tried to use your suggested macro and it errored out

              But it does sort of run and the second iteration does look like it compensated for the Z=0

              30a7f8a9-fc21-46fa-8d53-35f142a0e1d3-image.png

              undefined 1 Reply Last reply 23 Jun 2021, 15:20 Reply Quote 0
              • undefined
                jay_s_uk @BStump
                last edited by 23 Jun 2021, 15:20

                @bstump what version of RRF are you running?
                Post the output of M115

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                undefined 1 Reply Last reply 23 Jun 2021, 16:42 Reply Quote 0
                • undefined
                  BStump @jay_s_uk
                  last edited by 23 Jun 2021, 16:42

                  @jay_s_uk said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                  @bstump what version of RRF are you running?
                  Post the output of M115

                  eec6465d-fbf4-4e95-848b-e6cd8c915051-image.png

                  undefined 1 Reply Last reply 23 Jun 2021, 16:45 Reply Quote 0
                  • undefined
                    BStump @BStump
                    last edited by 23 Jun 2021, 16:45

                    @bstump said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                    @jay_s_uk said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                    @bstump what version of RRF are you running?
                    Post the output of M115

                    eec6465d-fbf4-4e95-848b-e6cd8c915051-image.png

                    Looks to be the latest RRF

                    undefined 1 Reply Last reply 23 Jun 2021, 16:50 Reply Quote 0
                    • undefined
                      BStump @BStump
                      last edited by 23 Jun 2021, 16:50

                      @bstump said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                      @bstump said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                      @jay_s_uk said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                      @bstump what version of RRF are you running?
                      Post the output of M115

                      eec6465d-fbf4-4e95-848b-e6cd8c915051-image.png

                      Looks to be the latest RRF

                      But simple thing like

                      if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed
                      M117 "Homing"
                      G28

                      cause errors

                      25567d08-dae0-439f-924f-953ccdc8444a-image.png

                      It is like it does not like many commands or expressions

                      undefined 1 Reply Last reply 23 Jun 2021, 16:59 Reply Quote 0
                      • undefined
                        jay_s_uk @BStump
                        last edited by 23 Jun 2021, 16:59

                        @bstump none of my macro will work for you then. Its for rrf 3.2 and above.
                        You may want to look at upgrading as its so much easier to accomplish in RRF 3. The latest is RRF 3.3.0

                        to quote @Phaedrux

                        Upload these 3 zip files, one at a time in the system tab. Don't extract them. Reboot after each. Use M115 to verify the firmware has been applied.
                        https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip
                        https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
                        https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/Duet2and3Firmware-3.3.zip
                        That will get your firmware and DWC up to date.
                        You can see the change logs here:
                        https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x
                        For your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
                        https://configtool.reprapfirmware.org/Start
                        Backup your existing config files in the sys folder in case you want to switch back to RRF3. IT’s easy to switch back and forth, just upload the zip file for the version you want and then upload your config files.
                        These documents will come in handy during the conversion.
                        https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview
                        https://duet3d.dozuki.com/Wiki/Gcode```

                        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                        undefined 1 Reply Last reply 23 Jun 2021, 17:05 Reply Quote 0
                        • undefined
                          BStump @jay_s_uk
                          last edited by 23 Jun 2021, 17:05

                          @jay_s_uk said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                          @bstump none of my macro will work for you then. Its for rrf 3.2 and above.
                          You may want to look at upgrading as its so much easier to accomplish in RRF 3. The latest is RRF 3.3.0

                          to quote @Phaedrux

                          Upload these 3 zip files, one at a time in the system tab. Don't extract them. Reboot after each. Use M115 to verify the firmware has been applied.
                          https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip
                          https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
                          https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/Duet2and3Firmware-3.3.zip
                          That will get your firmware and DWC up to date.
                          You can see the change logs here:
                          https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x
                          For your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
                          https://configtool.reprapfirmware.org/Start
                          Backup your existing config files in the sys folder in case you want to switch back to RRF3. IT’s easy to switch back and forth, just upload the zip file for the version you want and then upload your config files.
                          These documents will come in handy during the conversion.
                          https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview
                          https://duet3d.dozuki.com/Wiki/Gcode```

                          We are on 2.05.1. Do we need to implement that first file? Looks to be the current RRF.

                          undefined 1 Reply Last reply 23 Jun 2021, 17:06 Reply Quote 0
                          • undefined
                            jay_s_uk @BStump
                            last edited by 23 Jun 2021, 17:06

                            @bstump 2.05.1 is not the current RRF and hasn't been for ~18 months

                            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                            undefined 1 Reply Last reply 23 Jun 2021, 17:07 Reply Quote 0
                            • undefined
                              BStump @jay_s_uk
                              last edited by 23 Jun 2021, 17:07

                              @jay_s_uk said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                              @bstump 2.05.1 is not the current RRF and hasn't been for ~18 months

                              I mean our current RRF

                              undefined 1 Reply Last reply 23 Jun 2021, 17:08 Reply Quote 0
                              • undefined
                                BStump @BStump
                                last edited by 23 Jun 2021, 17:08

                                @bstump said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                                @jay_s_uk said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                                @bstump 2.05.1 is not the current RRF and hasn't been for ~18 months

                                I mean our current RRF

                                734e8a45-bb43-4d58-84d7-54bda0dc7c65-image.png

                                undefined 1 Reply Last reply 23 Jun 2021, 19:58 Reply Quote 0
                                • undefined
                                  fcwilt @BStump
                                  last edited by 23 Jun 2021, 19:58

                                  @bstump

                                  One question: do you have a printer with multiple tools?

                                  One suggestion: take the time to update to the current v3 firmware - there are many, many improvements and fixes. It involves some changes to your configuration files but it takes less time than you might think. I put it off for a long time only to find it wasn't that much work.

                                  Frederick

                                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                  undefined 1 Reply Last reply 23 Jun 2021, 20:44 Reply Quote 0
                                  • undefined
                                    BStump @fcwilt
                                    last edited by 23 Jun 2021, 20:44

                                    @fcwilt Dual extruder, 4 Z steppers, LEDs, and even and external air filter tried to the contoller

                                    undefined 1 Reply Last reply 23 Jun 2021, 21:27 Reply Quote 0
                                    • undefined
                                      BStump
                                      last edited by 23 Jun 2021, 20:46

                                      Were there I/O mapping changes from 2.05.1 to 3.3? We have an error coming up with regards to the LED Current callout is M42 P27 S100 but it says the P is too high.

                                      undefined 1 Reply Last reply 23 Jun 2021, 21:23 Reply Quote 0
                                      • undefined
                                        fcwilt @BStump
                                        last edited by 23 Jun 2021, 21:23

                                        @bstump said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                                        Were there I/O mapping changes from 2.05.1 to 3.3? We have an error coming up with regards to the LED Current callout is M42 P27 S100 but it says the P is too high.

                                        Did you see this regards v2 to v3:

                                        In RRF3, before you can use M42 you must create a GPIO port using M950. Then in the M42 command, the P parameter is the GPIO port number, not the logical pin number. Duet 2 supports up to 10 GPIO ports, numbered 0 to 9. No GPIO ports are allocated by default.

                                        In RRF3, the F and I parameters are no longer supported in M42. Instead, use the F and I parameters in M950 when you create the GPIO port.

                                        Example - RRF2 code:

                                        M42 P3 I1 S0.5 F500 ; set Heater 3 pin to 50% PWM at 500Hz

                                        Example - RRF3 code:

                                        M950 P0 C"exp.heater3" Q500 ; allocate GPIO port 0 to heater3 on expansion connector, 500Hz

                                        M42 P0 S0.5 ; set 50% PWM on GPIO port 0

                                        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                        undefined 1 Reply Last reply 23 Jun 2021, 21:27 Reply Quote 0
                                        • undefined
                                          fcwilt @BStump
                                          last edited by 23 Jun 2021, 21:27

                                          @bstump said in Automatic Bed Tilt Calibration, G30 S4, and G30 S-2:

                                          @fcwilt Dual extruder, 4 Z steppers, LEDs, and even and external air filter tried to the contoller

                                          Does each extruder have it's own Z probe?

                                          Frederick

                                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                          undefined 1 Reply Last reply 23 Jun 2021, 21:32 Reply Quote 0
                                          23 out of 46
                                          • First post
                                            23/46
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA