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

    Duet 2 Wifi Dual Z issue after increasing esteps

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    45
    1.7k
    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.
    • slabstationsundefined
      slabstations @Norder
      last edited by

      @norder I also had the same issue when I was running the stock stepper motors. 400 esteps it would move fine but if I commanded 10mm it would give me 1-2mm, I though something could be wrong with the motors since they are older and thats when I tried the new creality ones and same issue.

      deckingmanundefined Norderundefined slabstationsundefined 3 Replies Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @slabstations
        last edited by deckingman

        @slabstations You refer to Z steppers in the plural yet your configuration only has one Z stepper defined. So I assume that you have wired the two motors in series to a single driver. IIRC on the Duet 2, that means connecting one motor to ZA and the other the ZB. Is that what you'd done? If so, have you remembered to remove the jumpers?

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        1 Reply Last reply Reply Quote 0
        • Norderundefined
          Norder @slabstations
          last edited by

          @slabstations said in Duet 2 Wifi Dual Z issue after increasing esteps:

          @norder I have removed the D3 V40 and commented out the M575 and M918 lines. I have not gotten far enough for me to setup the probe offset yet, ran into this problem and have been messing with it since. I do one highend mounted endstop connected to the board. The motors are connected in the Z spot, I removed the jumpers in the second Z spot to plug in the second motor. I had it at 400 esteps originally but when I asked it to move 10mm, it would only move 1-2mm so that is why I bumped them up. But once I added the addition esteps, it started to do what its doing in the video.

          @deckingman I've already asked him that.

          DDA5X... 0.9° Stepper... Linearrails... Duet 2 Wifi... PT100 Board... Duet IR-Probe... Dyze Pro Kit up to 500°C.. etc
          Thingiverse

          1 Reply Last reply Reply Quote 0
          • Norderundefined
            Norder @slabstations
            last edited by

            @slabstations
            Recently there was a similar problem here, the motors must be identical, otherwise problems arose when Z1 and Z2, i.e. one driver for both steppers, were used.

            If both spindles each have an endstop, or you have a second endstop to spare, then you could set up a Dual-Z so that each Z motor has its own driver. E1 should still be free!?

            My printer also runs Dual-Z. It has the advantage that the X-axis can be leveled.
            I have self-made HAL sensor endstops, each with an adjustable magnet.

            Would Dual-Z be conceivable for you?

            Google Translate
            -- Original Text --

            Letztens gab es hier ein ähnliches Problem, die Motoren müssen identisch sein sonst kam es zu Problemen wenn Z1 und Z2, also ein Treiber für beide Stepper, genutzt wurden.

            Wenn beide Spindeln je einen Endstop haben oder Du einen zweiten Endstop übrig hast, dann könntest Du ein Dual-Z einrichten so das jeder Z-Motor seinen eigenen Treiber hat. E1 sollte doch noch frei sein !?

            Bei meinem Drucker läuft auch Dual-Z. Es hat den Vorteil das die X-Achse nivelliert werden kann.
            Ich habe selbst gebaute HAL-Sensoren Endstops mit je einem justierbaren Magneten.

            Wäre Dual-Z für Dich denkbar ?

            DDA5X... 0.9° Stepper... Linearrails... Duet 2 Wifi... PT100 Board... Duet IR-Probe... Dyze Pro Kit up to 500°C.. etc
            Thingiverse

            1 Reply Last reply Reply Quote 0
            • Norderundefined
              Norder @slabstations
              last edited by Norder

              Unbenannt.JPG

              So 1600 steps are correct.

              DDA5X... 0.9° Stepper... Linearrails... Duet 2 Wifi... PT100 Board... Duet IR-Probe... Dyze Pro Kit up to 500°C.. etc
              Thingiverse

              slabstationsundefined 1 Reply Last reply Reply Quote 0
              • Norderundefined
                Norder @slabstations
                last edited by Norder

                @slabstations said in Duet 2 Wifi Dual Z issue after increasing esteps:

                @norder Yea I had bumped the esteps up to 1600 and thats why the motors would stall out like they did in the video. They both move and stutter out, with one side tending to move a little bit more then the other.

                So that I understand this correctly... After you set 800mA for the motors, you tried to let these 800mA run with 1600 steps, so not earlier but now ?

                To be on the safe side, please post your current config.g with which you started the last attempt !

                DDA5X... 0.9° Stepper... Linearrails... Duet 2 Wifi... PT100 Board... Duet IR-Probe... Dyze Pro Kit up to 500°C.. etc
                Thingiverse

                1 Reply Last reply Reply Quote 0
                • slabstationsundefined
                  slabstations @slabstations
                  last edited by

                  @deckingman No I just plugged the second motor into the second port on the board. I did the same thing on an ender 3 and it worked just fine. The only jumpers I removed were the ones in the second z port.

                  1 Reply Last reply Reply Quote 0
                  • slabstationsundefined
                    slabstations @Norder
                    last edited by

                    @norder Yes I tried with 800mA and 1600esteps and same result as in the video.

                    jay_s_ukundefined slabstationsundefined 2 Replies Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @slabstations
                      last edited by

                      @slabstations what voltage are you running at?

                      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

                      1 Reply Last reply Reply Quote 0
                      • slabstationsundefined
                        slabstations @slabstations
                        last edited by

                        @jay_s_uk 24v. It even says it on the dashboard, that was one of the first things I checked.

                        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                        • jay_s_ukundefined
                          jay_s_uk @slabstations
                          last edited by

                          @slabstations how fast are you trying to move the motors?

                          max speed you can really run them at before generating too much EMF is 28mm/s (F1680)
                          6eed7354-d5dd-460e-97e3-f1ea977b870b-image.png

                          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

                          slabstationsundefined Norderundefined 2 Replies Last reply Reply Quote 0
                          • slabstationsundefined
                            slabstations @jay_s_uk
                            last edited by

                            @jay_s_uk Honestly I am not sure, whatever the default is when you control it through the web interface. I started with the creality ender 3 base config in the configurator. I have gotten an ender 3 pro up and running, so I just copied the config and change printer size to fit the lulzbot. Only thing I did different was add a bl touch to the lulzbot, which seems to be working properly, have only gotten as far as retracting and dropping it.

                            slabstationsundefined 1 Reply Last reply Reply Quote 0
                            • Norderundefined
                              Norder @jay_s_uk
                              last edited by

                              According to the previous information... Motor model / Za + Zb / voltages and speeds from the config.g) this result should be more accurate.
                              I didn't know the values for "Phase resistance" and "Phase inductance" and I didn't change the displayed value either.

                              Unbenannt.JPG

                              @slabstations :
                              I asked you earlier whether you have two end stops and possibly want to use E1 and Za for the two Z motors !? 🙂

                              Google Translate
                              -- Original Text --

                              Nach den bisherigen Infos... Motoren Modell / Za + Zb / Spannungen und Geschwindigkeiten aus der config.g) sollte dieses Ergebnis zutreffender sein.
                              Werte für "Phase resistance" und "Phase inductance" wusste ich nicht und habe den angezeigten Wert auch nicht geändert.

                              @slabstations :
                              Ich hatte Dich vorhin gefragt ob Du zwei Endstops hast und eventuell E1 und Za für die beiden Z-Motoren nutzen willst !? 🙂

                              DDA5X... 0.9° Stepper... Linearrails... Duet 2 Wifi... PT100 Board... Duet IR-Probe... Dyze Pro Kit up to 500°C.. etc
                              Thingiverse

                              slabstationsundefined 1 Reply Last reply Reply Quote 0
                              • slabstationsundefined
                                slabstations @slabstations
                                last edited by

                                @jay_s_uk I would like the dual z bed leveling. Do you think I should try setting that up and hope this problem goes away, or do you think it could be something I have setup wrong?

                                jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                • slabstationsundefined
                                  slabstations @Norder
                                  last edited by

                                  @norder I only have one endstop switch mounted on highend of the left z axis. And setting up two z motors sounds good, I like the bed leveling feature!

                                  slabstationsundefined 1 Reply Last reply Reply Quote 0
                                  • jay_s_ukundefined
                                    jay_s_uk @slabstations
                                    last edited by

                                    @slabstations it definitely won't hurt as it makes sure everything is level. it may or may not help your issue though.
                                    I would bump your current for Z up to 1200, separate them out as you say (don't forget the jumpers). and map E1 to Z using M584 e.g. M584 Z2:4
                                    Then repost your config, homez and homeall

                                    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

                                    slabstationsundefined 1 Reply Last reply Reply Quote 0
                                    • slabstationsundefined
                                      slabstations @jay_s_uk
                                      last edited by

                                      @jay_s_uk I followed the instructions from this https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors Hopefully everything is good, I don't want to test it until its been looked over just in case! I really appreciate your time and help!
                                      homeall.g config.g bed.g homez.g

                                      1 Reply Last reply Reply Quote 0
                                      • slabstationsundefined
                                        slabstations @slabstations
                                        last edited by Phaedrux

                                        @jay_s_uk

                                        config.g: ; Configuration file for Duet WiFi (firmware version 3)
                                        ; executed by the firmware on start-up
                                        ;
                                        ; generated by RepRapFirmware Configuration Tool v3.3.13 on Sat Sep 24 2022 04:07:34 GMT-0400 (Eastern Daylight Time)
                                        
                                        ; General preferences
                                        ;M575 P1 S1 B57600                              ; enable support for PanelDue
                                        G90                                            ; send absolute coordinates...
                                        M83                                            ; ...but relative extruder moves
                                        M550 P"LulzBot Mini"                           ; set printer name
                                        ;M918 P1 E4 F2000000                            ; configure direct-connect display
                                        
                                        ; Network
                                        M551 P"1084"                                   ; set password
                                        M552 S1                                        ; enable network
                                        M586 P0 S1                                     ; enable HTTP
                                        M586 P1 S0                                     ; disable FTP
                                        M586 P2 S0                                     ; disable Telnet
                                        
                                        ; Drives
                                        M569 P0 S1                                     ; physical drive 0 goes forwards
                                        M569 P1 S0                                     ; physical drive 1 goes backwards
                                        M569 P2 S1                                     ; physical drive 2 goes forwards
                                        M569 P3 S0                                     ; physical drive 3 goes backwards
                                        M584 X0 Y1 Z2:4 E3                             ; set drive mapping
                                        M671 x20:200 y0:0 s0.5                         ; leadscrews at left (connected to Z) and right (connected to E1) of X axis
                                        M208 X05:205 Y0:200                            ; X carriage moves from -5 to 205, Y bed goes from 0 to 200
                                        M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
                                        M92 X101.26 Y100.00 Z1600 E436.54              ; set steps per mm
                                        M566 X1200.00 Y1200.00 Z24.00 E300.00          ; set maximum instantaneous speed changes (mm/min)
                                        M203 X9000.00 Y9000.00 Z1200.00 E6000.00       ; set maximum speeds (mm/min)
                                        M201 X500.00 Y500.00 Z100.00 E5000.00          ; set accelerations (mm/s^2)
                                        M906 X800 Y800 Z1200 E1000 I50                  ; set motor currents (mA) and motor idle factor in per cent
                                        M84 S30                                        ; Set idle timeout
                                        
                                        ; Axis Limits
                                        M208 X0 Y0 Z0 S1                               ; set axis minima
                                        M208 X170 Y180 Z148 S0                         ; set axis maxima
                                        
                                        ; Endstops
                                        M574 X1 S1 P"xstop"                            ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
                                        M574 Y1 S1 P"ystop"                            ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
                                        M574 Z2 S1 P"zstop"                            ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin zstop
                                        
                                        ; Z-Probe
                                        M950 S0 C"exp.heater3"                         ; create servo pin 0 for BLTouch
                                        M558 P9 C"^zprobe.in" H5 F120 T6000            ; set Z probe type to bltouch and the dive height + speeds
                                        G31 P500 X0 Y0 Z2.5                            ; set Z probe trigger value, offset and trigger height
                                        M557 X15:170 Y15:180 S20                       ; define mesh grid
                                        
                                        ; Heaters
                                        M308 S0 P"bedtemp" Y"thermistor" T100000 B4092 ; configure sensor 0 as thermistor on pin bedtemp
                                        M950 H0 C"bedheat" T0                          ; create bed heater output on bedheat and map it to sensor 0
                                        M307 H0 B0 S1.00                               ; disable bang-bang mode for the bed heater and set PWM limit
                                        M140 H0                                        ; map heated bed to heater 0
                                        M143 H0 S110                                   ; set temperature limit for heater 0 to 110C
                                        M308 S1 P"e0temp" Y"thermistor" T100000 B4092  ; configure sensor 1 as thermistor on pin e0temp
                                        M950 H1 C"e0heat" T1                           ; create nozzle heater output on e0heat and map it to sensor 1
                                        M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
                                        M143 H1 S275                                   ; set temperature limit for heater 1 to 275C
                                        
                                        ; Fans
                                        M950 F0 C"fan0" Q500                           ; create fan 0 on pin fan0 and set its frequency
                                        M106 P0 C"Extruder Fan" S1 H1 T160             ; set fan 0 name and value. Thermostatic control is turned on
                                        M950 F1 C"fan1" Q500                           ; create fan 1 on pin fan1 and set its frequency
                                        M106 P1 C"Case Fan" S1 H0 T50                  ; set fan 1 name and value. Thermostatic control is turned on
                                        M950 F2 C"fan2" Q500                           ; create fan 2 on pin fan2 and set its frequency
                                        M106 P2 C"Part Cooling" S1 H-1                 ; set fan 2 name and value. Thermostatic control is turned off
                                        
                                        ; Tools
                                        M563 P0 S"Extruder" D0 H1 F0                   ; define tool 0
                                        G10 P0 X0 Y0 Z0                                ; set tool 0 axis offsets
                                        G10 P0 R0 S0                                   ; set initial tool 0 active and standby temperatures to 0C
                                        
                                        ; Custom settings are not defined
                                        
                                        ; bed.g
                                        ; called to perform automatic bed compensation via G32
                                        ;
                                        ; generated by RepRapFirmware Configuration Tool v3.3.13 on Sat Sep 24 2022 04:07:34 GMT-0400 (Eastern Daylight Time)
                                        M561 ; clear any bed transform
                                        G29  ; probe the bed and enable compensation
                                        
                                        G28 ; home
                                        G30 P0 X20 Y100 Z-99999 ; probe near a leadscrew, half way along Y axis
                                        G30 P1 X180 Y100 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
                                        
                                        ; homeall.g
                                        ; called to home all axes
                                        ;
                                        ; generated by RepRapFirmware Configuration Tool v3.3.13 on Sat Sep 24 2022 04:07:34 GMT-0400 (Eastern Daylight Time)
                                        G91                     ; relative positioning
                                        G1 H2 Z5 F6000          ; lift Z relative to current position
                                        G1 H1 X-175 Y-185 F3000 ; move quickly to X and Y axis endstops and stop there (first pass)
                                        G1 H2 X5 Y5 F6000       ; go back a few mm
                                        G1 H1 X-175 Y-185 F240  ; move slowly to X and Y axis endstops once more (second pass)
                                        G1 H1 Z153 F240         ; move Z up stopping at the endstop
                                        G90                     ; absolute positioning
                                        G92 Z148                ; set Z position to axis maximum (you may want to adjust this)
                                        
                                        ; Uncomment the following lines to lift Z after probing
                                        ;G91                    ; relative positioning
                                        ;G1 Z5 F100             ; lift Z relative to current position
                                        ;G90                    ; absolute positioning
                                        
                                        ; homez.g
                                        ; called to home the Z axis
                                        ;
                                        ; generated by RepRapFirmware Configuration Tool v3.3.13 on Sat Sep 24 2022 04:07:34 GMT-0400 (Eastern Daylight Time)
                                        G91              ; relative positioning
                                        G1 H2 Z5 F6000   ; lift Z relative to current position
                                        G1 H1 Z153 F3000 ; move Z up until the endstop is triggered
                                        G92 Z148         ; set Z position to axis maximum (you may want to adjust this)
                                        
                                        ; Uncomment the following lines to lift Z after probing
                                        ;G91             ; relative positioning
                                        ;G1 Z5 F100      ; lift Z relative to current position
                                        ;G90             ; absolute positioning
                                        
                                        Phaedruxundefined deckingmanundefined 2 Replies Last reply Reply Quote 0
                                        • Phaedruxundefined
                                          Phaedrux Moderator @slabstations
                                          last edited by

                                          ; bed.g
                                          ; called to perform automatic bed compensation via G32
                                          ;
                                          ; generated by RepRapFirmware Configuration Tool v3.3.13 on Sat Sep 24 2022 04:07:34 GMT-0400 (Eastern Daylight Time)
                                          M561 ; clear any bed transform
                                          G29  ; probe the bed and enable compensation
                                          

                                          You'll want to remove the G29 from bed.g. At least move it to the end of the file after the leveling if you want it to create a mesh at the same time. Otherwise handle the mesh creation separately.

                                              
                                          jay_s_ukjay_s_uk 4 Oct 2022, 03:57
                                          @slabstations what voltage are you running at?
                                          
                                          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
                                          
                                             0  
                                          slabstationsslabstations 4 Oct 2022, 04:07
                                          @jay_s_uk 24v. It even says it on the dashboard, that was one of the first things I checked.
                                          
                                             0  
                                          jay_s_ukjay_s_uk 4 Oct 2022, 04:10
                                          @slabstations how fast are you trying to move the motors?
                                          
                                          max speed you can really run them at before generating too much EMF is 28mm/s (F1680)
                                          6eed7354-d5dd-460e-97e3-f1ea977b870b-image.png
                                          
                                          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
                                          
                                             0  
                                          slabstationsslabstations 4 Oct 2022, 04:47
                                          @jay_s_uk Honestly I am not sure, whatever the default is when you control it through the web interface. I started with the creality ender 3 base config in the configurator. I have gotten an ender 3 pro up and running, so I just copied the config and change printer size to fit the lulzbot. Only thing I did different was add a bl touch to the lulzbot, which seems to be working properly, have only gotten as far as retracting and dropping it.
                                          
                                             0  
                                          NorderNorder 4 Oct 2022, 04:48
                                          According to the previous information... Motor model / Za + Zb / voltages and speeds from the config.g) this result should be more accurate.
                                          I didn't know the values for "Phase resistance" and "Phase inductance" and I didn't change the displayed value either.
                                          
                                          Unbenannt.JPG
                                          
                                          @slabstations :
                                          I asked you earlier whether you have two end stops and possibly want to use E1 and Za for the two Z motors !? 🙂
                                          
                                          Google Translate
                                          -- Original Text --
                                          
                                          Nach den bisherigen Infos... Motoren Modell / Za + Zb / Spannungen und Geschwindigkeiten aus der config.g) sollte dieses Ergebnis zutreffender sein.
                                          Werte für "Phase resistance" und "Phase inductance" wusste ich nicht und habe den angezeigten Wert auch nicht geändert.
                                          
                                          @slabstations :
                                          Ich hatte Dich vorhin gefragt ob Du zwei Endstops hast und eventuell E1 und Za für die beiden Z-Motoren nutzen willst !? 🙂
                                          
                                          DDA5X... 0.9° Stepper... Linearrails... Duet 2 Wifi... PT100 Board... Duet IR-Probe... Dyze Pro Kit up to 500°C.. etc
                                          Thingiverse
                                          
                                             0  
                                          slabstationsslabstations 4 Oct 2022, 04:49
                                          @jay_s_uk I would like the dual z bed leveling. Do you think I should try setting that up and hope this problem goes away, or do you think it could be something I have setup wrong?
                                          
                                             0  
                                          slabstationsslabstations 4 Oct 2022, 04:52
                                          @norder I only have one endstop switch mounted on highend of the left z axis. And setting up two z motors sounds good, I like the bed leveling feature!
                                          
                                             0  
                                          jay_s_ukjay_s_uk 4 Oct 2022, 04:52
                                          @slabstations it definitely won't hurt as it makes sure everything is level. it may or may not help your issue though.
                                          I would bump your current for Z up to 1200, separate them out as you say (don't forget the jumpers). and map E1 to Z using M584 e.g. M584 Z2:4
                                          Then repost your config, homez and homeall
                                          
                                          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
                                          
                                             0  
                                          slabstationsslabstations 7 Oct 2022, 09:12
                                          @jay_s_uk I followed the instructions from this https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors Hopefully everything is good, I don't want to test it until its been looked over just in case! I really appreciate your time and help!
                                          homeall.g config.g bed.g homez.g
                                          
                                             0  
                                          slabstationsslabstations  7 Oct 2022, 09:15
                                          @jay_s_uk
                                          
                                          config.g: ; Configuration file for Duet WiFi (firmware version 3)
                                          ; executed by the firmware on start-up
                                          ;
                                          ; generated by RepRapFirmware Configuration Tool v3.3.13 on Sat Sep 24 2022 04:07:34 GMT-0400 (Eastern Daylight Time)
                                          
                                          ; General preferences
                                          ;M575 P1 S1 B57600                              ; enable support for PanelDue
                                          G90                                            ; send absolute coordinates...
                                          M83                                            ; ...but relative extruder moves
                                          M550 P"LulzBot Mini"                           ; set printer name
                                          ;M918 P1 E4 F2000000                            ; configure direct-connect display
                                          
                                          ; Network
                                          M551 P"1084"                                   ; set password
                                          M552 S1                                        ; enable network
                                          M586 P0 S1                                     ; enable HTTP
                                          M586 P1 S0                                     ; disable FTP
                                          M586 P2 S0                                     ; disable Telnet
                                          
                                          ; Drives
                                          M569 P0 S1                                     ; physical drive 0 goes forwards
                                          M569 P1 S0                                     ; physical drive 1 goes backwards
                                          M569 P2 S1                                     ; physical drive 2 goes forwards
                                          M569 P3 S0                                     ; physical drive 3 goes backwards
                                          M584 X0 Y1 Z2:4 E3                             ; set drive mapping
                                          M671 x20:200 y0:0 s0.5                         ; leadscrews at left (connected to Z) and right (connected to E1) of X axis
                                          M208 X05:205 Y0:200                            ; X carriage moves from -5 to 205, Y bed goes from 0 to 200
                                          M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
                                          M92 X101.26 Y100.00 Z1600 E436.54              ; set steps per mm
                                          M566 X1200.00 Y1200.00 Z24.00 E300.00          ; set maximum instantaneous speed changes (mm/min)
                                          M203 X9000.00 Y9000.00 Z1200.00 E6000.00       ; set maximum speeds (mm/min)
                                          M201 X500.00 Y500.00 Z100.00 E5000.00          ; set accelerations (mm/s^2)
                                          M906 X800 Y800 Z1200 E1000 I50                  ; set motor currents (mA) and motor idle factor in per cent
                                          M84 S30                                        ; Set idle timeout
                                          
                                          ; Axis Limits
                                          M208 X0 Y0 Z0 S1                               ; set axis minima
                                          M208 X170 Y180 Z148 S0                         ; set axis maxima
                                          
                                          ; Endstops
                                          M574 X1 S1 P"xstop"                            ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
                                          M574 Y1 S1 P"ystop"                            ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
                                          M574 Z2 S1 P"zstop"                            ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin zstop
                                          
                                          ; Z-Probe
                                          M950 S0 C"exp.heater3"                         ; create servo pin 0 for BLTouch
                                          M558 P9 C"^zprobe.in" H5 F120 T6000            ; set Z probe type to bltouch and the dive height + speeds
                                          G31 P500 X0 Y0 Z2.5                            ; set Z probe trigger value, offset and trigger height
                                          M557 X15:170 Y15:180 S20                       ; define mesh grid
                                          
                                          ; Heaters
                                          M308 S0 P"bedtemp" Y"thermistor" T100000 B4092 ; configure sensor 0 as thermistor on pin bedtemp
                                          M950 H0 C"bedheat" T0                          ; create bed heater output on bedheat and map it to sensor 0
                                          M307 H0 B0 S1.00                               ; disable bang-bang mode for the bed heater and set PWM limit
                                          M140 H0                                        ; map heated bed to heater 0
                                          M143 H0 S110                                   ; set temperature limit for heater 0 to 110C
                                          M308 S1 P"e0temp" Y"thermistor" T100000 B4092  ; configure sensor 1 as thermistor on pin e0temp
                                          M950 H1 C"e0heat" T1                           ; create nozzle heater output on e0heat and map it to sensor 1
                                          M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
                                          M143 H1 S275                                   ; set temperature limit for heater 1 to 275C
                                          
                                          ; Fans
                                          M950 F0 C"fan0" Q500                           ; create fan 0 on pin fan0 and set its frequency
                                          M106 P0 C"Extruder Fan" S1 H1 T160             ; set fan 0 name and value. Thermostatic control is turned on
                                          M950 F1 C"fan1" Q500                           ; create fan 1 on pin fan1 and set its frequency
                                          M106 P1 C"Case Fan" S1 H0 T50                  ; set fan 1 name and value. Thermostatic control is turned on
                                          M950 F2 C"fan2" Q500                           ; create fan 2 on pin fan2 and set its frequency
                                          M106 P2 C"Part Cooling" S1 H-1                 ; set fan 2 name and value. Thermostatic control is turned off
                                          
                                          ; Tools
                                          M563 P0 S"Extruder" D0 H1 F0                   ; define tool 0
                                          G10 P0 X0 Y0 Z0                                ; set tool 0 axis offsets
                                          G10 P0 R0 S0                                   ; set initial tool 0 active and standby temperatures to 0C
                                          
                                          ; Custom settings are not defined
                                          ; bed.g
                                          ; called to perform automatic bed compensation via G32
                                          ;
                                          ; generated by RepRapFirmware Configuration Tool v3.3.13 on Sat Sep 24 2022 04:07:34 GMT-0400 (Eastern Daylight Time)
                                          M561 ; clear any bed transform
                                          G29  ; probe the bed and enable compensation
                                           
                                          G28 ; home
                                          G30 P0 X20 Y100 Z-99999 ; probe near a leadscrew, half way along Y axis
                                          G30 P1 X180 Y100 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
                                          ; homeall.g
                                          ; called to home all axes
                                          ;
                                          ; generated by RepRapFirmware Configuration Tool v3.3.13 on Sat Sep 24 2022 04:07:34 GMT-0400 (Eastern Daylight Time)
                                          ...
                                          G1 H1 Z153 F240         ; move Z up stopping at the endstop
                                          G90                     ; absolute positioning
                                          G92 Z148                ; set Z position to axis maximum (you may want to adjust this)
                                          

                                          At the end of homeall and homez you are using an endstop to home the Z axis. You'll want to use the probe instead. To do this, remove those 3 lines and replace them with something like

                                          G90
                                          G1 X150 Y150 F6000 ; move to bed center
                                          G30 ; probe the Z axis
                                          

                                          You can also add those lines to the end of bed.g so that any change in Z position from the tilt correction is captured.

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          1 Reply Last reply Reply Quote 0
                                          • deckingmanundefined
                                            deckingman @slabstations
                                            last edited by

                                            @slabstations This is not relevant to your problem, but you have two sets of axis limit commands (M208) - one under your "drives" section, the other in "axis limits". The latter will override the former so you might want to remove the former and/or make sure that the latter matches the machine (the two set of values are different and only one can be true).

                                            Ian
                                            https://somei3deas.wordpress.com/
                                            https://www.youtube.com/@deckingman

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