Home Z not working like home X and Y



  • I just generated a new config for my new Duet 2 Wifi. Home X and Y both set the the current position to the maximum, as they should, but Z doesn't. Z ends up setting it to 0. This doesn't make any sense to me. The scripts are identical in terms of logic.

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Fri Feb 08 2019 11:05:47 GMT-0800 (Pacific Standard Time)
    
    M667 S1; CoreXY mode
    
    ; General preferences
    G90                                                  ; Send absolute coordinates...
    M83                                                  ; ...but relative extruder moves
    
    ; Network
    M550 P"NOTPromega"                                   ; Set machine name
    M552 P"lilpaw" S1                                              ; Enable network
    M586 P0 S1                                           ; Enable HTTP
    M586 P1 S1                                           ; Enable FTP
    M586 P2 S1                                           ; Enable Telnet
    
    ; Drives
    M569 P0 S0                                           ; Drive 0 goes backwards
    M569 P1 S0                                           ; Drive 1 goes backwards
    M569 P2 S0                                           ; Drive 2 goes backwards
    M569 P3 S1                                           ; Drive 3 goes forwards
    M569 P4 S1                                           ; Drive 4 goes forwards
    M350 X32 Y32 Z32 E256:256 I0                         ; Configure microstepping without interpolation
    M92 X156.54 Y156.54 Z396.77 E185.69:185.69           ; Set steps per mm
    M566 X750.00 Y750.00 Z1500.00 E5000.00:5000.00       ; Set maximum instantaneous speed changes (mm/min)
    M203 X36000.00 Y36000.00 Z1500.00 E36000.00:36000.00 ; Set maximum speeds (mm/min)
    M201 X5000.00 Y5000.00 Z20.00 E9000.00:9000.00       ; Set accelerations (mm/s^2)
    M906 X1400.00 Y1400.00 Z900.00 E1600.00:1600.00 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 X288 Y360 Z300 S0                               ; Set axis maxima
    
    
    ; Endstops
    M574 Z2 S1 ; Set z end-stops types (S1 is active high, applied to Z) optical
    M574 X2 S1; Set z end-stops types (S1 is active high, applied to X) optical
    M574 Y2 S0 ; Set xy end-stops types (S0 is active low, applied to Y) mechanical
    
    ; Z-Probe
    M558 P5 H5 F43.199999999999996 T6000                 ; Set Z probe type to switch and the dive height + speeds
    G31 P2 X19 Y-19.9 Z299.18                            ; Set Z probe trigger value, offset and trigger height
    M556 S50 X0 Y0 Z0                                    ; Set orthogonal axis compensation parameters
    M557 X10:288 Y10:360 S20                             ; Define mesh grid
    
    ; Heaters
    M307 H0 B0 S1.00                                     ; Disable bang-bang mode for the bed heater and set PWM limit
    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 B4388 C7.060000e-8 R4700             ; Set thermistor + ADC parameters for heater 1
    M143 H1 S500                                         ; Set temperature limit for heater 1 to 500C
    M305 P2 T100000 B4388 C7.060000e-8 R4700             ; Set thermistor + ADC parameters for heater 2
    M143 H2 S500                                         ; Set temperature limit for heater 2 to 500C
    
    ; Fans
    M106 P0 S0 I0 F500 H-1                               ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S0 I0 F500 H-1                               ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
    
    ; Tools
    M563 P0 S"Left" D0 H1                                ; 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
    M563 P1 S"Right" D1 H2                               ; Define tool 1
    G10 P1 X34 Y0 Z0                                     ; Set tool 1 axis offsets
    G10 P1 R0 S0                                         ; Set initial tool 1 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
    
    ; Miscellaneous
    M501                                                 ; Load saved parameters from non-volatile memory
    
    
    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Fri Feb 08 2019 11:10:07 GMT-0800 (Pacific Standard Time)
    G91              ; relative positioning
    G1 Z5 F6000 S2   ; lift Z relative to current position
    G1 S1 X293 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X-5 F6000     ; go back a few mm
    G1 S1 X293 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 Fri Feb 08 2019 11:05:47 GMT-0800 (Pacific Standard Time)
    G91              ; relative positioning
    G1 Z5 F6000 S2   ; lift Z relative to current position
    G1 S1 Y365 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y-5 F6000     ; go back a few mm
    G1 S1 Y365 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 Fri Feb 08 2019 11:05:47 GMT-0800 (Pacific Standard Time)
    G91              ; relative positioning
    G1 Z-5 F6000 S2   ; lift Z relative to current position
    G1 S1 Z305 F1800 ; move Z up (physically down) until the endstop is triggered
    G92 Z0           ; 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
    
    ; Re-enable mesh leveling
    ;G29 S1
    
    

  • administrators

    Your homez.g file has a G92 Z0 command in it. That's what sets Z to 0.



  • @dc42 Oh, geez. I must have just kept glossing over it


 

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