m671 dual lead screw bed.g



  • i just finish upgrading my cr10mini with a duet wifi
    and ran a g32 it did everything fine intell it got to the end of my bed.g file where i entered in the x y coordinates for example and it ends up hitting X max? if i type it in manual it stops exactly were i want it 🤔 ```
    code_text

    ; called to perform automatic bed compensation via G32
    ;
    ; generated by RepRapFirmware Configuration Tool v2.0.0 on Thu Aug 29 2019 22:47:39 GMT-0700 (Pacific Daylight Time)
    M561 ; clear any bed transform
    G29  ; probe the bed and enable compensation
    G30 P0 X60 Y115 Z-99999 ; left lead screw
    G30 P1 X280 Y115 Z-99999 S2 ; right lead screw


  • here is my config with the m671 at the end, just not sure if im setting the bed.g coordinates wrong . RepRapFirmware for Duet 2 WiFi/Ethernet version 2.03```
    code_text

    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2.0.0 on Thu Aug 29 2019 22:47:39 GMT-0700 (Pacific Daylight Time)
    
    ; General preferences
    G90                                     ; send absolute coordinates...
    M83                                     ; ...but relative extruder moves
    M550 P"CR10MINI"                        ; set printer name
    
    ; Network
    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 forwards
    M569 P2 S1                              ; physical drive 2 goes forwards
    M569 P3 S1                              ; physical drive 3 goes forwards
    M569 P4 S0                              ; dual z drive
    M584 X0 Y1 Z2:4 E3                        ; set drive mapping 
    M350 X16 Y16 Z16 E16 U16 I1                 ; configure microstepping with interpolation
    M92 X80.00 Y80.00 Z1600.00 E402.00 U1600.00      ; set steps per mm
    M566 X900.00 Y900.00 Z12.00 E120.00 U12.00     ; set maximum instantaneous speed changes (mm/min)
    M203 X6000.00 Y6000.00 Z180.00 E1200.00 U180.00 ; set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z20.00 E250.00 U20.00     ; set accelerations (mm/s^2)
    M906 X800 Y800 Z800 E800 U800 I30            ; 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 X300 Y230 Z285 S0                  ; set axis maxima
    
    ; Endstops
    M574 X1 Y1 S1                           ; set active high endstops
    
    ; Z-Probe
    M574 Z1 S2                              ; set endstops controlled by probe
    M558 P5 H5 I1 F120 T6000                   ; set Z probe type to switch and the dive height + speeds
    G31 P500 X-45.4 Y-13 Z0.72                 ; set Z probe trigger value, offset and trigger height
    M557 X15:215 Y15:195 S20                ; define mesh grid
    
    ; Heaters
    M305 P0 T100000 B4138 R4700             ; set thermistor + ADC parameters for heater 0
    M143 H0 S120                            ; set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 R4700             ; set thermistor + ADC parameters for heater 1
    M143 H1 S280                            ; set temperature limit for heater 1 to 280C
    
    ; Fans
    M106 P0 S0 I0 F500 H-1                  ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 F500 H1 T45               ; set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    
    ; 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
    
    ; bed leveling lead screw coordinates
    M671 X-30.0:334.0 Y115:115 S0.5         ; lead screw positions
    ; Custom settings are not defined
    
    ; Miscellaneous
    M501                                    ; load saved parameters from non-volatile memory

  • administrators

    1. You are asking it to probe at X=280 in the second G30 command, however the probe is offset form the nozzle by -45mm in the X direction. So that requires putting the nozzle at X325, which I presume is outside the limit of your machine. So reduce that G30 X coordinate.

    2. You should run the G30 leadscrew levelling commands before mesh probing the bed. Otherwise, the mesh will take account of any tilt that the G30 commands remove. So move the G29 command to the end.

    I didn't spot anything wrong with your config.g file.



  • @dc42 ok I will make it smaller I wasn’t sure if was asking for the nozzle position at 280 , so when in g30’s commands the offset of the probe is now let’s say zero


Log in to reply