updated the firmware to 2.05->3.1.1,z-probe setting



  • The board and firmware are as follows.
    RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later
    I updated the firmware to 2.05->3.1.1. Please let me know if the drive settings are correct.
    Our previous usage is usually used with zstop, and z-probe (self-made piezo) is used only when measuring hightmap. It is switched by commenting out config.g.
    In the previous usage, z-probe could be used to find the origin of the z-axis when measuring hightmap, but in 3.1.1 this time, it seems that the origin is found at z-stop. How can I find the origin with z-probe?
    The motor connection of the z axis is connected to left-motor=Drive2, right-motor=Drive4, and only one z-stop is connected to the left-motor side. (In the future, we plan to install a z-stop on the right-motor side as well.)

    RRF 2.05 SET
    ;----------------------------------------------------------------------------------------------------------------
    ; Drives
    M569 P0 S0 ; X Drive 0 goes forwards
    M569 P1 S0 ; Y Drive 1 goes forwards
    M569 P2 S1 ; Z-LEFT Drive 2 goes back
    M569 P3 10 ; E0 Drive 3 goes back
    M569 P4 S1 ; Z-RIGHT Drive 4 goes back
    ;----------------------------------------------------------------------------------------------------------------
    M92 X80 Y80 Z399 U400 E400 ; Set steps per mm;2020/03/31,Z400->Z399
    M350 X16 Y16 Z16 U16 E16 I1 ; Configure microstepping with interpolation
    M566 X600 Y600 Z50 U50 E300 ; Set Maximum instantaneous speed change (mm/min) = Jerk speed
    M203 X10000 Y10000 Z300 U300 E1500 ; Set maximum speeds (mm/min)
    M201 X3000 Y3000 Z100 U100 E10000 ; Set accelerations (mm/s^2)
    M906 X800 Y800 Z800 U800 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout
    ;----------------------------------------------------------------------------------------------------------------
    ; Motor remapping for dual Z
    M584 X0 Y1 Z2:4 U4 E3 P3 ; Driver 0 For X, 1 for Y, Z=2:4 U=4, Extruder 3
    ;----------------------------------------------------------------------------------------------------------------
    ;Set axis max travel
    M208 X0 Y0 Z0 U0 S1 ; Set axis minima
    M208 X210 Y210 Z240 U240 S0 ; Set axis maxima
    ;----------------------------------------------------------------------------------------------------------------
    ; Endstops(Photo senser)
    M574 X1 Y1 Z1 S1 ; Set active High endstops;
    M557 X0:210 Y0:210 S50 ; Define mesh grid
    ;----------------------------------------------------------------------------------------------------------------
    ; Endstops(Piezo Probe)
    ;M574 X1 Y1 S1 ; Set active High endstops
    ;M574 Z1 U4 S2 ; Set active High Z_Probe
    ;M558 P8 I1 R0.4 H5 F300 T6000 ; Set Z probe(N0/NC) type to switch and the dive height + speeds
    ;G31 P1000 X0 Y0 Z0 ; Set Z probe trigger value, offset
    ;M557 X0:210 Y0:210 S50 ; Define mesh grid
    ;----------------------------------------------------------------------------------------------------------------

    RRF 3.1.1 SET
    ;----------------------------------------------------------------------------------------------------------------
    ; Drives
    M569 P0 S0 ; X physical drive 0 goes forwards
    M569 P1 S0 ; Y physical drive 1 goes forwards
    M569 P2 S1 ; Z-LEFT physical drive 2 goes backwards
    M569 P3 S1 ; E0 physical drive 3 goes backwards
    M569 P4 S1 ; Z-RIGHT physical drive 2 goes backwards
    ;----------------------------------------------------------------------------------------------------------------
    M584 X0 Y1 Z2:4 E3 ; set drive mapping
    M350 X16 Y16 Z16:16 E16 I1 ; I1:configure microstepping with interpolation
    M92 X80.00 Y80.00 Z399.00 E400.00 U399.00 ; set steps per mm
    M566 X600.00 Y600.00 Z50.00 E300.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X6000.00 Y6000.00 Z300.00 E1500.00 ; set maximum speeds (mm/min)
    M201 X3000.00 Y3000.00 Z100.00 E250.00 ; set accelerations (mm/s^2)
    M906 X800 Y800 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 X210 Y210 Z240 S0 ; set axis maxima
    ;----------------------------------------------------------------------------------------------------------------
    ; Endstops(Photo Senser)
    M574 X1 S1 P"xstop" ; configure active-high endstop for high end on X via pin xstop
    M574 Y1 S1 P"ystop" ; configure active-high endstop for high end on Y via pin ystop
    M574 Z1 S1 P"zstop" ; configure active-high endstop for high end on Z via pin zstop
    M574 U1 S1 P"zstop" ; configure active-high endstop for high end on Z via pin zstop
    ;----------------------------------------------------------------------------------------------------------------
    ; Endstops(Piezo Probe)
    ;M574 X1 S1 P"xstop" ; configure active-high endstop for high end on X via pin xstop
    ;M574 Y1 S1 P"ystop" ; configure active-high endstop for high end on Y via pin ystop
    ;M574 Z1 S1 P"zstop" ; configure active-high endstop for high end on Y via pin ystop
    ;M558 P8 C"!zprobe.in" I1 R0.4 H5 F300 T6000 ; Set Z probe(N0/NC) type to switch and the dive height + speeds
    ;G31 P1000 X0 Y0 Z0 ; Set Z probe trigger value, offset
    ;M557 X0:210 Y0:210 S100 ; Define mesh grid
    ;----------------------------------------------------------------------------------------------------------------


  • Moderator

    You can use a single G30 at the center of the bed before running G29 to do the heightmap. That will set the Z0 point with the probe and eliminate any offset. You should also be using G30 to re-establish Z0 before loading a saved heightmap. Same goes for before starting the print. Just to be clear, that G30 would usually be done in your homeall instead of a G1 H1 homing move for Z.

    In RRF3 you don't need a separated Z/U axis at all if you still want to use multiple endstops for homing. It just works now. All you have to do is define both endstop pins in the M574 for that axis.

    However, it's probably better to do leveling using the probe.

    https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors



  • Thank you for your reply.
    solved.


Log in to reply