Bed Levelling using 3 z motors and 1 z probe issues



  • I am trying to level the bed and get the z motors to provide auto levelling adjustment, every time i run the bed levelling command the X and Y motors seem to grind into the endstops and will not stop in the correct position ??

    Using a Maestro and RRF 3.11

    Config.g
    ; Configuration file for Duet Maestro (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 06 2020 02:33:25 GMT+0100 (British Summer Time)

    ; General preferences
    G90 ; send absolute coordinates...
    M83 ; ...but relative extruder moves
    M550 P"Uni3DVerse-Hermera" ; set printer name
    M669 K1 ; select CoreXY mode

    ; Network
    M552 P192.168.0.55 S1 ; enable network and set IP address
    M553 P255.255.255.0 ; set netmask
    M554 P192.168.0.1 ; set gateway
    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 S1 ; physical drive 1 goes forwards
    M569 P2 S0 ; physical drive 2 goes backwards
    M569 P3 S0 ; physical drive 3 goes backwards
    ; M569 P4 S0 ; physical drive 4 goes backwards
    M569 P5 S0 ; physical drive 4 goes backwards
    M569 P6 S0 ; physical drive 4 goes backwards
    M584 X0 Y1 Z2:5:6 E3 ; set drive mapping
    M671 X30:165:290 Y290:-10:290 S0.5 ; leadscrews at rear left, front middle and rear right
    M350 X32 Y32 Z32:32:32 E16:32 I1 ; configure microstepping with interpolation
    M92 X160.00 Y160.00 Z2133.33:Z2133.33:Z2133.33 E420.00 ; set steps per mm
    M566 X900.00 Y900.00 Z12.00:Z12.00:Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X3000.00 Y3000.00 Z180.00:Z180.00:Z180.00 E1200.00 ; set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z20.00:Z20.00:Z20.00 E250.00 ; set accelerations (mm/s^2)
    M906 X800 Y800 Z800:Z800:Z800 E800 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 X330 Y330 Z550 S0 ; set axis maxima

    ; Endstops
    M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop
    M574 Y1 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop
    M574 Z1 S2 ; configure Z-probe endstop for low end on Z

    ; Z-Probe
    M558 P1 C"zprobe.in+zprobe.mod" H5 F120 T6000 ; set Z probe type to unmodulated and the dive height + speeds
    G31 P500 X40 Y40 Z2.5 ; set Z probe trigger value, offset and trigger height
    M557 X15:290 Y15:290 S50 ; define mesh grid

    ; Heaters
    M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; 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 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit
    M140 H0 ; map heated bed to heater 0
    M143 H0 S120 ; set temperature limit for heater 0 to 120C
    M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8 ; 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

    ; Fans
    M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
    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 H1 T45 ; set fan 1 value. Thermostatic control is turned on

    ; Tools
    M563 P0 D0 H1 F0 ; define tool 0
    G10 P0 X40 Y40 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

    ; Miscellaneous
    M575 P1 S1 B57600 ; enable support for PanelDue

    ; bed.g
    ; called to perform automatic bed compensation via G32
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 06 2020 02:33:25 GMT+0100 (British Summer Time)
    M561 ; clear any bed transform
    G28 ; Home
    G30 P0 X20 Y300 Z-99999 ; probe near a leadscrew
    G30 P1 X300 Y300 Z-99999 ; probe near a leadscrew
    G30 P2 X165 Y10 Z-99999 S3; probe near a leadscrew and calibrate 3 motors
    ; G29 ; probe the bed and enable compensation

    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 06 2020 02:33:25 GMT+0100 (British Summer Time)
    G91 ; relative positioning
    G1 H2 Z5 F6000 ; lift Z relative to current position
    G1 H1 X-335 Y-335 F1800 ; move quickly to X or Y endstop and stop there (first pass)
    G1 H1 X-335 ; home X axis
    G1 H1 Y-335 ; home Y axis
    G1 X5 Y5 F6000 ; go back a few mm
    G1 H1 X-335 F360 ; move slowly to X axis endstop once more (second pass)
    G1 H1 Y-335 ; then move slowly to Y axis endstop
    G90 ; absolute positioning
    G1 X-25 Y-25 F6000 ; go to first bed probe point and home Z
    G30 ; home Z by probing the bed

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

    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 06 2020 02:33:25 GMT+0100 (British Summer Time)
    G91 ; relative positioning
    G1 H2 Z5 F6000 ; lift Z relative to current position
    G1 H1 X-335 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F6000 ; go back a few mm
    G1 H1 X-335 F360 ; move slowly to X axis endstop once more (second pass)
    G1 H2 Z-5 F6000 ; lower Z again
    G90 ; absolute positioning

    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 06 2020 02:33:25 GMT+0100 (British Summer Time)
    G91 ; relative positioning
    G1 H2 Z5 F6000 ; lift Z relative to current position
    G1 H1 Y-335 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y5 F6000 ; go back a few mm
    G1 H1 Y-335 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 H2 Z-5 F6000 ; lower Z again
    G90 ; absolute positioning

    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 06 2020 02:33:25 GMT+0100 (British Summer Time)
    G91 ; relative positioning
    G1 H2 Z5 F6000 ; lift Z relative to current position
    G90 ; absolute positioning
    G1 X155 Y5 F6000 ; go to first probe point
    G30 ; home Z by probing the bed

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

    The Z motors do not have separate endstops and rely on the Z Probe to home.
    Any help would be appreciated



  • @shaunppl said in Bed Levelling using 3 z motors and 1 z probe issues:

    RRF 3.01

    please update to 3.1.1



  • Sorry my fault, I did upgrade to 3.11 thought it was still on 3.01



  • @shaunppl said in Bed Levelling using 3 z motors and 1 z probe issues:

    G10 P0 X40 Y40 Z0 ; set tool 0 axis offsets

    Tool 0 should not have an offset.

    revert this to X0 Y0



  • That makes no difference And i have changed it to 0:0, as soon as the P4 starts the process, the motors move the x and y to positions, but on the way the x grinds into the end stop and keeps trying to to move in that direction and not the X30 position, when it goes to the front stepper screw position it then does the same for the Y Endstop until i have to hit the Stop button.



  • @shaunppl said in Bed Levelling using 3 z motors and 1 z probe issues:

    G31 P500 X40 Y40 Z2.5 ; set Z probe trigger value, offset and trigger height
    G30 P0 X20 Y300 Z-99999 ; probe near a leadscrew

    Next issue.
    you say probe at X20
    With an offset of X40 the nozzle would have to go to X-20 to probe there.

    same for Y



  • OK what a twat should have noticed that, thanks, forgot to make notes before update and lost all my config files,

    When it finished the probe (after changing to the correct parameters) it does not adjust the leadscrews to make up the bed being uneven ??, it just displays the warning that there are differences that exceed the limits.





  • Yet again what a savior, I am making notes now as not to get lost, very new to 3.11 so again many thanks for your help.



  • @dc42 this seems link a bug though. G30 should not allow movements outside of the axis limits



  • @Veti said in Bed Levelling using 3 z motors and 1 z probe issues:

    G30 should not allow movements outside of the axis limits

    G32 moves my nozzle outside the axis limits when executing.



  • @dc42 can we get your input here?



  • @Veti said in Bed Levelling using 3 z motors and 1 z probe issues:

    @dc42 this seems link a bug though. G30 should not allow movements outside of the axis limits

    From the documentation:

    Caution: the XY coordinates are permitted to be outside the normal printable bed area! This is intentional, because some printers (e.g. delta printers) benefit from probing areas not used for printing.

    Frederick



  • @fcwilt
    thanks i did not read that.


Log in to reply