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

    help leveling bed

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    221
    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.
    • Poloundefined
      Polo
      last edited by

      Hi

      I'm been struggle trying leveling my bed and can't get a good first layer. I have a v-core 500 and I'm using duet3 mini +5 . I run my thru bed leveling (g32) and seems like is not adjusting correctly. I don't know if a have a bad configuration. Here is mu config. my bed.g and homeall.g I hope you guys can help me because I don t know what else to do. this is not getting fun anymore.

      code_text
      **Bed.G**
      
      ```; this script compensates for what the Z offset is
      ; so if G31 P500 X-30 Y-15 Z1.7 then first probe will be at
      ; X30 Y20 (when G30 P0 X0 Y5)
      
      M561 ; clear any bed transform
      
      G30 P0 X25.40 Y25.40 F1000 Z-99999 ; probe near a leadscrew
      G30 P1 X250 Y25.40 F1000 Z-99999 ; probe near a leadscrew
      G30 P2 X440.00 Y25.40 Z-99999 ; probe near a leadscrew
      
      G30 P3 X440.00 Y101.60 Z-99999 ; probe near a leadscrew
      G30 P4 X250.00 Y101.60 Z-99999 ; probe near a leadscrew
      G30 P5 X25.40 Y101.60 Z-99999  ; probe near a leadscrew
      
      G30 P6 X25.40 Y220 Z-99999 ; probe near a leadscrew
      G30 P7 X250 Y220 Z-99999 ; probe near a leadscrew
      G30 P8 X440.00 Y220 Z-99999 ; probe near a leadscrew
      
      G30 P9 X440.00 Y354.00 Z-99999 ; probe near a leadscrew
      G30 P10 X250.00 Y354.00 Z-99999 ; probe near a leadscrew
      G30 P11 X25.40 Y354.00  Z-99999  ; probe near a leadscrew
      
      G30 P12 X25.40 Y480 Z-99999 ; probe near a leadscrew
      G30 P13 X250 Y480 Z-99999 ; probe near a leadscrew
      G30 P14 X440.00 Y480 Z-99999 S3 ; probe near a leadscrew
      
      
      
      **Config.g**
      
      ; General preferences
      G90                                     ; send absolute coordinates...
      M83                                     ; ...but relative extruder moves
      M550 P"V-Core3"                         ; set printer name
      M669 K1                                 ; CoreXY
      G21                                     ; Set Units to Millimeters
      
      ; Network
      M552 S1                                 ; enable network
      M586 P0 S1                              ; enable HTTP
      M586 P1 S0                              ; disable FTP
      M586 P2 S0                              ; disable Telnet
      
      ; Drives
      M569 P0.0 S0                            ; physical drive 0.0 goes forwards
      M569 P0.1 S0                            ; physical drive 0.1 goes forwards
      M569 P0.2 S0                            ; physical drive 0.2 goes forwards
      M569 P0.3 S1                            ; physical drive 0.3 goes forwards
      M569 P0.4 S1                            ; physical drive 0.4 goes forwards
      M569 P0.5 S0                            ; physical drive 0.5 goes forwards
      M584 X0.4 Y0.3 Z0.0:0.1:0.2 E0.5        ; set drive mapping
      M350 X16 Y16 Z16 E16 I1                 ; configure microstepping with interpolation
      M92 X80.00 Y80.00 Z800.00 E100.0        ; set steps per mm
      M906 X1600 Y1600 Z1600 I30              ; set motor currents (mA) and motor idle factor in per cent -- safe for Duet 3 mini 5+
      M84 S30                                 ; Set idle timeout
      
      M566 X1000.00 Y1000.00 Z60.00 E3000.00 P1          ; set maximum instantaneous speed changes (mm/min)
      M203 X18000.00 Y18000.00 Z1000.00 E7200     ; set maximum speeds (mm/min)
      M201 X3000.00 Y3000.00 Z100.00 E10000        ; set accelerations (mm/s^2)
      
      ; Axis Limits
      M208 X0 Y0 Z0 S1                               ; set axis minima
      M208 X510 Y500 Z500 S0                         ; set axis maxima
       
      ; Endstops
      M574 X1 S1 P"io0.in"                           ; configure active high endstops
      M574 Y2 S1 P"io1.in"                           ; configure active high endstops
      M564 H0
      
      M671 X-4.5:250:504.5 Y-4.52:505:-4.52 S5       ; define positions of Z leadscrews or bed levelling screws
      M557 X40:280 Y40:280 P5                        ; define 5x5 mesh grid
      
      ; Heaters
      M308 S0 P"temp0" Y"thermistor" T100000 B3950 A"Bed"    ; configure sensor 0 as thermistor on pin temp0
      M950 H0 C"out0" T0 Q11                                 ; create bed heater output on out5 and map it to sensor 0, lower switching frequency to 11Hz
      M307 H1 R2.186 K0.17:0.11 D5.67 S1.00 V24.0            ; set the process parameters for heater 1
      M307 H1                                                ; report model parameters for heater 1, and whether the model is being used
      
      M140 H0                                                ; map heated bed to heater 0
      M143 H0 S110                                           ; set temperature limit for heater 0 to 110C
      
      ;; Run Bed PID Tune!! Below is an example for a 300x300 bed
      ;; M307 H0 A303.1 C356.7 D1.4 S1.00 V24.0 B0
      
      ; Fans
      M950 F0 C"out4" Q500                   ; create fan 0 on pin out4 and set its frequency
      M106 P0 C"Layer Fan" S0 H-1            ; set fan 0 name and value. Thermostatic control is turned off
      M950 F1 C"out3" Q500                   ; create fan 1 on pin out3 and set its frequency
      M106 P1 C"Hotend Fan" S1 H-1 T45       ; set fan 1 name and value. Thermostatic control turned on for Hotend
      
      ; 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
      
      M950 H1 C"out1" T1         ; create nozzle heater output on out2 and map it to sensor 1
      M307 H1 B0 S1.00           ; disable bang-bang mode for heater and set PWM limit
      M143 H1 S250               ; set the maximum temperature in C for heater
      
      ; EVA 2 / BMG / E3D V6
      
      M92 E1000.00      ; set extruder steps per mm, 0.9 angle/step (LDO Pancake)
      M906 E800         ; set extruder motor current (mA) and idle factor in per cent
      
      M308 S1 P"temp1" Y"thermistor" T100000 B4725 C7.060000e-8 A"Hotend"  
      ;; Run Heater PID Tune!! 
      ;; M307 H1 A751.5 C196.6 D4.7 S1.00 V23.9 B0
      
      ; Z-Probe
      ;; Inductive Probe
      ; M558 P5 C"!io3.in" H5 F400 T5000       ; set Z probe type to unmodulated and the dive height + speeds
      ; G31 P500 X-30 Y-15 Z0.20               ; set Z probe trigger value, offset and trigger height, more Z means closer to the bed
      ;; BLTouch
       M950 S0 C"io2.out"                     ; Create a servo pin on io7
       M558 P9 C"io2.in" H5 F240 T10800 A5    ; set Z probe type to unmodulated and the dive height + speeds
       G31 P25 X-28.00 Y-13.00 Z1.66          ; set Z probe trigger value, offset and trigger height, more Z means closer to the bed
      
      ; Select default tool
      ; T0
      
      ; Pressure Advance
      ; M572 D0 S0.02
      
      
      
      **Homeall.g**
      
      M201 X500.00 Y500.00    ; Reduce acceleration for homing moves
      
      ; BLTouch
      ;M280 P0 S160           ; Precautionary alarm release
      ;M280 P0 S90            ; Ensure the pin is raised
      
      G91                     ; Relative positioning
      G1 H2 Z5 F6000          ; Lift Z relative to current position
      G1 H1 X-625 Y605 F4600  ; Move quickly to X and Y axis endstops and stop there (first pass)
      
      
      
      G1 X3 Y-3 F600          ; Go back a few mm
      
      G1 H1 X-625 Y605 F1360   ; Move slowly to X and Y axis endstops once more (second pass)
      G1 H1 X-625 F1360        ; Move slowly to X and Y axis endstops once more (second pass)
      G1 H1 Y605 F1360         ; Move slowly to X and Y axis endstops once more (second pass)
      
      M201 X3000 Y3000        ; Return to full acceleration
      
      G90                     ; Absolute positioning
      G1 X250 Y250 F10000     ; Go to the center of the bed (300x300)
      ;G1 X200 Y200 F10000    ; Go to the center of the bed (400x400)
      ;G1 X250 Y250 F10000    ; Go to the center of the bed (500x500)
      G30                     ; Home Z by probing the bed
      
      G91                     ; Relative positioning
      G1 Z5 F100              ; Lift Z relative to current position
      G90                     ; Absolute positioning
      
      
      
      
      *here is my result from my heigh map* 
      
      Number of points: 25
      Probe area: 575.8 cm²
      Maximum deviations: -0.316 / -0.049 mm
      Mean error: -0.169 mm
      RMS error: 0.076 mm
      
      I tried to upload a picture, but couldn't find the way to do it. Any help much be appreciated !!!
      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @Polo
        last edited by deckingman

        @Polo I keep banging on about this but nobody takes much notice. Three point levelling will get the plane of the bed level with a plane described by the lower lead screw attachment points. But the XY gantries that the print head runs on, is on a different plane - one that is described by the upper frame members. So your bed might be level, but not tram. That is to say it's level but with respect to the lead screw attachment points but the plane of XY gantry could be different.

        The best way to resolve this is to adjust the frame. When I get to a computer, I'll post a link to a video I recently made which describes this in more detail and shows how I got my new printer bed level with the XY gantries within 0.03mm at every point on the 400mm X 400mm surface and which took me about 2 hours to do.

        Another approach is to use mesh bed compensation to correct the build and assembly errors.

        EDIT. Here is a link to the appropriate part of the video that I mentioned. https://www.youtube.com/watch?v=XLLdK7Bu464&t=252s

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

        Poloundefined 1 Reply Last reply Reply Quote 1
        • Poloundefined
          Polo @deckingman
          last edited by

          @deckingman

          Thanks much for the replay I will watch the video. One more question, Is the m420 gcode working only with Marlin ??

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

            @Polo said in help leveling bed:

            @deckingman

            ............... One more question, Is the m420 gcode working only with Marlin ??

            Assuming you mean setting RGB colours, then according to this - https://docs.duet3d.com/en/User_manual/Reference/Gcodes_not_implemented
            M420 isn't currently implemented but is planned to be.

            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