Manual home z for different tools



  • Hey there,

    got the duet installed on a cr10-s4.

    I've modified it with inter-changeable tools with different heights.

    Was wondering how to manually home Z ?

    cheers,

    CJ



  • Set the probe type to M558 P0 to use manual Z probing. It will pop up a dialogue to jog the tool to Z0 whenever a G30 or G29 probe call is made.



  • @phaedrux said in Manual home z for different tools:

    M558

    After I set the Z with the dialog box (G30) - if I hit "home all" the Z looses its settings.

    Any way to avoid that?

    I want the XY to home and the Z to maintain its 'manually-set' home z..

    Should I avoid the home all and just do a macro for that?



  • I don't understand what you mean by loses its settings?



  • Can you post you homeall.g file?



  • OH OK ,

    Didn't realize I should change the home files....
    works like a charm now.

    thanks!



  • so something weird...

    I ran a file and it seems that the Z is off... I thought maybe there's a z offset which is causing it but the offset is set to 0.

    it looks like when file runs the tool is about 15mm too high.

    I checked the slicer and there's offsets or scripts (as far as i noticed) that could cause it.

    I manually homed the z and ran the file.

    isn't that suppose to do the trick? should I add an offset tool of the z to compensate for something that I'm missing here?

    any thoughts?



  • Can you please post your config file and homing files? It's hard to know what's actually happening without seeing them.



  • ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Thu May 02 2019 17:36:54 GMT+0300 (Israel Daylight Time)

    ; General preferences
    G21 ; Work in millimetres
    G90 ; Send absolute coordinates
    M83 ; ...but relative extruder moves
    M555 P2 ; Set firmware compatibility to look like Marlin
    M568 ; tool mix ratios on

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X400 Y400 Z400 S0 ; Set axis maxima

    ; Network
    M550 P ; Set machine name
    M552 S1 ; Enable network
    M587 S ; Configure access point. You can delete this line once connected
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S0 ; Drive X goes backwards
    M569 P1 S0 ; Drive Y goes backwards
    M569 P2 S1 ; Drive Z1 goes forwards
    M569 P3 S0 ; Drive E0 goes backwards
    M569 P4 S1 ; Drive Z2 (E0) forwards
    M569 P5 S0 ; Drive E2 forwards
    M584 X0 Y1 Z2:4 E3:5 P4 ; Use E1 for Z axis

    M350 X32 Y32 Z16:16 E16:16 I1 ; Configure microstepping with interpolation
    M92 X157.63 Y158.96 Z400:400 E100:200 ; Set steps per mm
    M566 X1200 Y1200 Z24:24 E300 ; Set maximum instantaneous speed changes (mm/min)
    M203 X30000 Y30000 Z600:600 E15000:5000 ; Set maximum speeds (mm/min)
    M201 X500 Y500 Z100:100 E5000 ; Set accelerations (mm/s^2)
    M906 X800 Y800 Z800:800 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 X400 Y400 Z400 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 S1 ; Set active high endstops

    ; Z-Probe
    M558 P0 H5 F120 T6000 ; Disable Z probe but set dive height, probe speed and travel speed
    ; M557 X15:0 Y15:195 S20 ; Define mesh grid

    ; Heaters
    M307 H0 B0 S1.00 ; Disable bang-bang mode for the bed heater and set PWM limit
    M307 H1 B0 S1.00 ; Disable bang-bang mode for the Hotend heater and set PWM limit
    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M307 H0 A107.3 C652.0 D0.6 S1.00 ; Bed PID
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M307 H1 A301.1 C107.3 D6.6 S1.00 ; Hotend PID
    M143 H1 S280 ; Set temperature limit for heater 1 to 280C

    ; Fans
    M106 P0 S0 I0 F500 H T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
    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:1 S"PROTEIN MIX" ; Define tool 0 (I removed H1 which is the heater)
    M567 P0 E7:1 ; MIXING RATIO
    G10 P0 X0 Y-35 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

    ; Automatic power saving
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    ; Custom settings are not configured


    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Thu May 02 2019 17:36:54 GMT+0300 (Israel Daylight Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 X-405 Y-405 F2500 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X5 Y5 F6000 ; go back a few mm
    G1 S1 X-405 Y-405 F360 ; move slowly to X and Y axis endstops once more (second pass)
    ; G1 S1 Z-405 F2500 ; move Z down stopping at the endstop
    G90 ; absolute positioning
    G92 Z0 ; set Z to axis minimum (you may want to adjust this)

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


    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Thu May 02 2019 17:36:54 GMT+0300 (Israel Daylight Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 X-405 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F6000 ; go back a few mm
    G1 S1 X-405 F360 ; move slowly to X axis endstop once more (second pass)
    G1 Z-5 F6000 S2 ; lower Z again
    G90 ; absolute positioning


    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Thu May 02 2019 17:36:54 GMT+0300 (Israel Daylight Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 Y-405 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y5 F6000 ; go back a few mm
    G1 S1 Y-405 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 Z-5 F6000 S2 ; lower Z again
    G90 ; absolute positioning


    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Thu May 02 2019 17:36:54 GMT+0300 (Israel Daylight Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    ; G1 S1 Z-405 F1800 ; move Z down until the endstop is triggered
    G30 ; HOME Z MANUAL
    G92 Z5 ; set Z position to axis minimum (you may want to adjust this)

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



  • @cj-bravo said in Manual home z for different tools:

    ; G1 S1 Z-405 F2500 ; move Z down stopping at the endstop
    G90 ; absolute positioning
    G92 Z0 ; set Z to axis minimum (you may want to adjust this)

    In homeall.g you are missing a G30 command to do a probe and then you are using G92 to force Z0, so no z homing is actually being done. Remove the G92 Z0 and add a G30.

    @cj-bravo said in Manual home z for different tools:

    ; G1 S1 Z-405 F1800 ; move Z down until the endstop is triggered
    G30 ; HOME Z MANUAL
    G92 Z5 ; set Z position to axis minimum (you may want to adjust this)

    In homez.g you have the G30 which is good, but then you reset your height to Z=5 it with G92 Z5. Remove the G92 Z5.



  • so I should both in homeall and homez the G30 and G92 Z0 commands?



  • Homeall should be

    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Thu May 02 2019 17:36:54 GMT+0300 (Israel Daylight Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 X-405 Y-405 F2500 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X5 Y5 F6000 ; go back a few mm
    G1 S1 X-405 Y-405 F360 ; move slowly to X and Y axis endstops once more (second pass)
    G90 ; absolute positioning
    G1 X200 Y200 F6000 ; move to center of the bed
    G30 ; probe z height
    

    HomeZ should be

    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Thu May 02 2019 17:36:54 GMT+0300 (Israel Daylight Time)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G90 ; absolute positioning
    G1 X200 Y200 F6000 ; move to center of the bed
    G30	; HOME Z MANUAL
    


  • @phaedrux said in Manual home z for different tools:

    G90 ; absolute positioning

    ok cool.

    so I should have the G90 after xy homing and then the G30. what happened to the G92 ?



  • G90 sets it to absolute position mode so we can position X and Y so that the nozzle is the center of the bed. I use G1 X200 Y200, but you'll have to modify that to make it your actual bed center.

    Then G30 will probe the bed, which in your case is manually, so it should pop up a dialogue to jog the nozzle to the bed surface. When you press ok on that dialogue, it will set Z0 position for you.

    You don't need G92 to force set the Z height, because G30 is doing that for you.



  • aha, yeah that makes sense.

    regarding the babyz step :

    I'm using a ceramic extruder with a wide nozzle and high layer height - that's why higher babysteps - probably i'll change it to 0.25mm.

    thanks !


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.