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

    Mesh levelling on 3.1.1

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    37
    1.4k
    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.
    • laelundefined
      lael
      last edited by

      I'm trying to get mesh bed levelling on 3.1.1, but it seems like there is almost an accumulated Z error occurring. Once I go through the steps to reprobe the bed and establish the map again it seems to clear and work almost perfectly.

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

        more information.

        whats your sequence to activate mesh leveling?

        1 Reply Last reply Reply Quote 0
        • laelundefined
          lael
          last edited by

          I used the wiki guide to set it up. https://duet3d.dozuki.com/Wiki/Using_mesh_bed_compensation

          And ran G32 to get the bed screws as close to perfect as possible before that

          At the start of the print I use start.g to call a G28, then move to bed center, run G30 to set datum point then print.

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

            Post the results of M122 and M98 P"config.g"
            Post your config.g and homing files, and bed.g
            Post your start.g and your slicer start gcode.
            Also 3.2 is out now. Might want to update.

            https://github.com/Duet3D/RepRapFirmware/releases/download/3.2/Duet2and3Firmware-3.2.zip

            Upload the zip file as is to the system tab in DWC.

            Z-Bot CoreXY Build | Thingiverse Profile

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

              @lael said in Mesh levelling on 3.1.1:

              At the start of the print I use start.g to call a G28, then move to bed center, run G30 to set datum point then print

              you need to run G29 after the G28. your G28 should contain a G30

              laelundefined 1 Reply Last reply Reply Quote 0
              • laelundefined
                lael @Phaedrux
                last edited by

                @Phaedrux thanks, I'll post everything Monday when I get back to the printer.

                Yeah, 3.2 was still in early beta when i started on the printer. Do you know if older paneldues are still supported?

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

                  @lael said in Mesh levelling on 3.1.1:

                  Do you know if older paneldues are still supported?

                  running firmware 1.24? yes

                  1 Reply Last reply Reply Quote 0
                  • laelundefined
                    lael @Veti
                    last edited by lael

                    @Veti Do you mean the G30 needs the g28 performed prior?

                    G29 is only performed intermittently to establish the bed map, not every time we print. The full procedure for the mesh levelling was followed.

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

                      @lael

                      post your homeall

                      1 Reply Last reply Reply Quote 0
                      • laelundefined
                        lael
                        last edited by

                        ; homeall.g
                        ; called to home all axes
                        ;
                        ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 20 2020 12:22:07 GMT+1100 (Australian Eastern Daylight Time)
                        G91 ; relative positioning
                        G1 H2 Z5 F6000 ; lift Z relative to current position
                        G1 H1 X-265 Y-265 F1800 ; 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-265 Y-265 F360 ; move slowly to X and Y axis endstops once more (second pass)
                        G1 H1 Z-265 F360 ; move Z down stopping at the endstop
                        G1 H2 Z5 F6000 ; go back a few mm
                        G1 H1 Z-265 F180 ; move Z down stopping at the endstop

                        G90 ; absolute positioning
                        G92 Z0 ; set Z position to axis minimum (you may want to adjust this)

                        1 Reply Last reply Reply Quote 0
                        • laelundefined
                          lael
                          last edited by

                          M122
                          === Diagnostics ===
                          RepRapFirmware for Duet 2 WiFi/Ethernet version 3.2 running on Duet WiFi 1.02 or later
                          Board ID: 08DJM-9178L-L2MSD-6J1F8-3S46P-TSFUP
                          Used output buffers: 3 of 24 (14 max)
                          === RTOS ===
                          Static ram: 23460
                          Dynamic ram: 73588 of which 60 recycled
                          Never used RAM 14972, free system stack 189 words
                          Tasks: NETWORK(blocked,160) HEAT(blocked,295) MAIN(running,452) IDLE(ready,19)
                          Owned mutexes: WiFi(NETWORK)
                          === Platform ===
                          Last reset 00:01:52 ago, cause: software
                          Last software reset details not available
                          Error status: 0x00
                          Aux0 errors 0,0,0
                          MCU temperature: min 29.8, current 30.3, max 30.7
                          Supply voltage: min 24.0, current 24.1, max 24.2, under voltage events: 0, over voltage events: 0, power good: yes
                          Driver 0: position 0, standstill, SG min/max not available
                          Driver 1: position 0, standstill, SG min/max not available
                          Driver 2: position 0, standstill, SG min/max not available
                          Driver 3: position 0, standstill, SG min/max not available
                          Driver 4: position 0, standstill, SG min/max not available
                          Driver 5: position 0
                          Driver 6: position 0
                          Driver 7: position 0
                          Driver 8: position 0
                          Driver 9: position 0
                          Driver 10: position 0
                          Driver 11: position 0
                          Date/time: 2021-01-18 10:56:12
                          Cache data hit count 141319080
                          Slowest loop: 5.41ms; fastest: 0.23ms
                          I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
                          === Storage ===
                          Free file entries: 10
                          SD card 0 detected, interface speed: 20.0MBytes/sec
                          SD card longest read time 3.8ms, write time 0.0ms, max retries 0
                          === Move ===
                          DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
                          === MainDDARing ===
                          Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                          === AuxDDARing ===
                          Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
                          === Heat ===
                          Bed heaters = 0 -1 -1 -1, chamberHeaters = 2 -1 -1 -1
                          === GCodes ===
                          Segments left: 0
                          Movement lock held by null
                          HTTP is idle in state(s) 0
                          Telnet is idle in state(s) 0
                          File is idle in state(s) 0
                          USB is idle in state(s) 0
                          Aux is idle in state(s) 0
                          Trigger is idle in state(s) 0
                          Queue is idle in state(s) 0
                          LCD is idle in state(s) 0
                          Daemon is idle in state(s) 0
                          Autopause is idle in state(s) 0
                          Code queue is empty.
                          === Network ===
                          Slowest loop: 16.24ms; fastest: 0.00ms
                          Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
                          HTTP sessions: 1 of 8

                          • WiFi -
                            Network state is active
                            WiFi module is connected to access point
                            Failed messages: pending 0, notready 0, noresp 0
                            WiFi firmware version 1.25
                            WiFi MAC address redacted
                            WiFi Vcc 3.48, reset reason Turned on by main processor
                            WiFi flash size 4194304, free heap 23360
                            WiFi IP address 192.168.1.57
                            WiFi signal strength -47dBm, mode 802.11n, reconnections 0, sleep mode modem
                            Clock register 00002002
                            Socket states: 0 0 0 0 0 0 0 0
                            === Filament sensors ===
                            Extruder 0 sensor: no data received
                          1 Reply Last reply Reply Quote 0
                          • fcwiltundefined
                            fcwilt
                            last edited by

                            @lael said in Mesh levelling on 3.1.1:

                            G1 H1 Z-265 F180 ; move Z down stopping at the endstop
                            
                            G90 ; absolute positioning
                            G92 Z0 ; set Z position to axis minimum (you may want to adjust this)
                            
                            

                            What is the actual Z position after triggering the endstop?

                            For the G92 Z0 to be valid the actual Z position must also be zero.

                            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

                            laelundefined 1 Reply Last reply Reply Quote 1
                            • laelundefined
                              lael
                              last edited by

                              M98 P"config.g"
                              HTTP is enabled on port 80
                              FTP is disabled
                              TELNET is disabled
                              Z probe 0: current reading 0, threshold 500, trigger height 0.700, offsets X0.0 Y0.0
                              Error: bad model parameters
                              Error: bad model parameters

                              1 Reply Last reply Reply Quote 0
                              • laelundefined
                                lael
                                last edited by

                                @Phaedrux said in Mesh levelling on 3.1.1:

                                Post the results of M122 and M98 P"config.g"
                                Post your config.g and homing files, and bed.g
                                Post your start.g and your slicer start gcode.

                                config.g
                                ; Configuration file for Duet WiFi (firmware version 3)
                                ; executed by the firmware on start-up
                                ;
                                ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 20 2020 12:22:07 GMT+1100 (Australian Eastern Daylight Time)

                                ; General preferences
                                G90 ; send absolute coordinates...
                                M83 ; ...but relative extruder moves
                                M550 P"Funmat HT #2" ; set printer name

                                ; Network
                                M551 P"redacted" ; set password
                                M552 S1 ; enable network
                                M586 P0 S1 ; enable HTTP
                                M586 P1 S0 ; disable FTP
                                M586 P2 S0 ; disable Telnet

                                ; Drives
                                M569 P0 S0 ; X physical drive 0 goes backwards
                                M569 P1 S1 ; Y physical drive 1 goes forwards
                                M569 P2 S0 ; Z physical drive 2 goes backwards
                                M569 P3 S0 ; E physical drive 3 goes forwards
                                M584 X0 Y1 Z2 E3 ; set drive mapping
                                M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
                                M92 X80.00 Y80.00 Z800.00 E410.00 ; set steps per mm

                                M566 X300.00 Y300.00 Z180.00 E1200 ; set maximum instantaneous speed changes (mm/min)

                                M203 X9000.00 Y9000.00 Z1800.00 E10000 ;changed to allow faster z for piezo trigger (1200 works)

                                ;M201 X3000.00 Y3000.00 Z15.00 E500.00 ;recommended settings and PA currently tuned PA on this value
                                M201 X1000.00 Y1000.00 Z30.00 E700.00 ; set max accelerations (mm/s^2) ;upped z to 25 for z probe

                                M204 P800.00 T1500.00 ;set default acceleration P=x,y,z T=extruder
                                M906 X1150 Y1150 Z1300 E700 I45 ; 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 X255 Y250 Z260 S0 ; set axis maxima

                                ; Endstops
                                M574 X1 S1 P"!xstop" ; configure active-low endstop for Min X axis via pin !xstop //omron limit switch
                                M574 Y1 S1 P"!ystop" ; configure active-low endstop for Min Y axis via pin !ystop //omron limit switch
                                M574 Z1 S1 P"zstop" ; configure active-low endstop for min Z axis via pin zstop inverting the signal. //biqu optical sensor

                                ;Z Emergency-Stop
                                M950 J1 C"!e1stop" ; configure active-low input (endstop) via pin e1stop //omron limit switch on z just prior to min limit ball screw crash.
                                M581 P1 T0 C0 S1 ;T0 = emergency stop on trigger; C0 or C1 = when it may trigger: C0 is anytime; C1 is only during a print, S1 or S0 = sets it as raising edge (S1) or falling edge (S0)

                                ; Z-Probe
                                M558 C"!^zprobe.in" P8 F7000 T7000 H10 I1 R0.3 A5 S0.005 ; Z probe type to PIEZO (P8 = unfiltered, F = feed mm/min dive speed 116mm/sec,
                                ; T-travel between spots mm/min H=dive height mm, I1 - invert reading, R0.5 - pause 0.5sec
                                ; before each probe, A3 - probe 3 times, S0.01 - tolerance between probes required) and the

                                G31 -0.777 ; set the z height at which the probe will recognise it's z

                                ;M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed (old before piezo)
                                ;M557 X20:240 Y20:240 S44 ; define mesh grid - max bed size
                                M557 X30:230 Y20:230 S40 ; define mesh grid - reduced bed size to avoid cooling duct on back bed holders

                                ; Heaters
                                M308 S0 P"bedtemp" Y"thermistor" T122000 B4050 ; 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 A=143 C=1300 D=20 B0 ; enable pid mode for the bed heater
                                M140 H0 ; map heated bed to heater 0
                                M143 H0 S160 ; set temperature limit for heater 0 to 160C

                                M308 S1 P"spi.cs1" Y"rtd-max31865" ; configure sensor 1 as thermocouple via CS pin spi.cs1
                                M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
                                M307 H1 A=450 C=160 D=5.3 V=24 B0 ; disable bang-bang mode for heater and set PWM limit

                                M308 S2 P"e1temp" Y"thermistor" T100000 B3950 ; configure sensor 2 as thermistor on pin e1temp
                                M950 H2 C"e1heat" T2 ; create chamber heater output on e1heat and map it to sensor 2
                                M307 H2 A145 C1600 D4.5 V24 B0 S1 ; enable bang-bang mode for the chamber heater and set PWM limit
                                M141 H2 ; map chamber to heater 2

                                ; Fans
                                M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency to 500Hz (default for 2 wire)
                                M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
                                M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
                                M106 P1 S1.0 H1:2 T45 ; set fan 1 value to full speed. Thermostatic control is turned on for heater 1 & 2

                                ; Tools
                                M563 P0 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

                                ; Screw positions
                                M671 X28:228:129 Y188:188:16 P0.5

                                ; Miscellaneous
                                M302 S180 R180 ; min extruder temp and retraction
                                M575 P1 S1 B57600 ; enable support for PanelDue
                                M911 S21 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss

                                ;BigTreeTech Filament Runout Sensor
                                ;see: https://forum.duet3d.com/topic/17107/how-to-setup-the-bigtreetech-smart-filament-sensor/48

                                M591 D0 P7 C"^e0stop" L7 R75:200 E22 S1 ;

                                1 Reply Last reply Reply Quote 0
                                • laelundefined
                                  lael @fcwilt
                                  last edited by

                                  @fcwilt 0.00 is what shows up in web control

                                  fcwiltundefined 1 Reply Last reply Reply Quote 0
                                  • laelundefined
                                    lael
                                    last edited by

                                    ; homex.g
                                    ; called to home the X axis
                                    ;
                                    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 20 2020 12:22:07 GMT+1100 (Australian Eastern Daylight Time)
                                    G91 ; relative positioning
                                    G1 H2 Z5 F6000 ; lift Z relative to current position
                                    G1 H1 X-265 F1800 ; move quickly to X axis endstop and stop there (first pass)
                                    G1 H2 X5 F6000 ; go back a few mm
                                    G1 H1 X-265 F360 ; move slowly to X axis endstop once more (second pass)
                                    G1 H2 Z-5 F6000 ; lower Z again
                                    G90 ; absolute positioning

                                    1 Reply Last reply Reply Quote 0
                                    • laelundefined
                                      lael
                                      last edited by

                                      ; homey.g
                                      ; called to home the Y axis
                                      ;
                                      ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 20 2020 12:22:07 GMT+1100 (Australian Eastern Daylight Time)
                                      G91 ; relative positioning
                                      G1 H2 Z5 F6000 ; lift Z relative to current position
                                      G1 H1 Y-265 F1800 ; move quickly to Y axis endstop and stop there (first pass)
                                      G1 H2 Y5 F6000 ; go back a few mm
                                      G1 H1 Y-265 F360 ; move slowly to Y axis endstop once more (second pass)
                                      G1 H2 Z-5 F6000 ; lower Z again
                                      G90 ; absolute positioning

                                      1 Reply Last reply Reply Quote 0
                                      • fcwiltundefined
                                        fcwilt
                                        last edited by fcwilt

                                        @lael said in Mesh levelling on 3.1.1:

                                        G31 -0.777 ; set the z height at which the probe will recognise it's z

                                        That line is incorrect.

                                        You should have at least the P X Y and Z parameters but you have none and a value all on it's own.

                                        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

                                        1 Reply Last reply Reply Quote 0
                                        • fcwiltundefined
                                          fcwilt @lael
                                          last edited by

                                          @lael said in Mesh levelling on 3.1.1:

                                          @fcwilt 0.00 is what shows up in web control

                                          If you comment out the G92 Z0 in homeall.g what value is displayed?

                                          Thanks.

                                          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

                                          laelundefined 1 Reply Last reply Reply Quote 0
                                          • laelundefined
                                            lael
                                            last edited by

                                            ; homez.g
                                            ; called to home the Z axis
                                            ;
                                            ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 20 2020 12:22:07 GMT+1100 (Australian Eastern Daylight Time)
                                            G91 ; relative positioning
                                            G1 H2 Z5 F600 ; increase (drop) Z relative to current position by 5mm @300mm/min (5mm/sec)
                                            G1 H1 Z-265 F600 ; decrease Z until the endstop is triggered @10mm / sec
                                            G92 Z0 ; set Z position to axis minimum (you may want to adjust this)
                                            G1 H2 Z5 F300 ; lift Z relative to current position - Z=5 @6000mm/min (100mm/sec)
                                            G1 H1 Z-10 F180 ; move Z down until the endstop is triggered @3mm/sec

                                            ; Uncomment the following lines to lift Z after probing
                                            ;G91 ; relative positioning
                                            ;G1 Z5 F100 ; lift Z relative to current position
                                            ;G90 ; absolute positioning

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