Duet 3d wifi homing problems



  • First of all i have NC switches for the x axis and y axis and an induction probe for the z axis which is connected to the E0 stp pin threw a schottky diode. All of the switches are recognised by the board but when i am about to home all of the axis while the leds of x and y axis goes off and the E0 axis goes on the steppers doesn't stop. Any suggestions will be kindly accepted.
    Also i have mapped z axis to y axis and y axis to z axis.

    Config file:
    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves
    M555 P1 ; Set firmware compatibility to look like RepRapFirmare

    ; Network
    M550 PMy printer ; Set machine name
    M552 S1 ; Enable network
    ;*** Access point is configured manually via M587
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S0 ; Drive 0 goes backwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes backwards
    M584 X0 Y2 Z1 E3 ; Apply custom drive mapping
    M350 X256 Y256 Z256 E16 I0 ; Configure microstepping without interpolation
    M92 X1089 Y1089 Z15432 E100 ; Set steps per mm
    M566 X900 Y900 Z12 E600 ; Set maximum instantaneous speed changes (mm/min)
    M203 X8400 Y8400 Z8400 E3000 ; Set maximum speeds (mm/min)
    M201 X500 Y500 Z250 E250 ; Set accelerations (mm/s^2)
    M906 X1000 Y1600 Z2000 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 X290 Y270 Z180 S0 ; Set axis maxima

    ; Endstops
    M574 E0 S0 ; Set active low endstops
    M574 X1 Y1 S1 ; Set active high endstops

    ; Z-Probe
    M558 P4 X0 Y0 Z1 H5 F120 T6000 I1 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
    G31 P600 X0 Y0 Z2 ; Set Z probe trigger value, offset and trigger height
    M557 X15:275 Y15:255 S20 ; Define mesh grid

    ; Heaters
    M305 P0 T100000 B3970 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B3970 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; Set temperature limit for heater 1 to 280C
    M307 H0 A162.2 C1576.9 D21.4
    M307 H1 A498.8 C146.2 D17.1

    ; Fans
    M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 F500 H0 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P2 S1 I0 F500 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ; Tools
    M563 P0 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

    ; Custom settings are not configured


  • administrators

    Please post your homing files too.



  • Here are and the homing files for this setup.

    Homing file for z axis:

    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu May 03 2018 12:42:37 GMT+0300 (EEST)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 Z-185 F1800 ; move Z down until the switch triggers
    G92 Z0 ; set Z position to trigger height

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

    Homing file for y axis:

    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu May 03 2018 12:42:37 GMT+0300 (EEST)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 Y-275 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y5 F6000 ; go back a few mm
    G1 S1 Y-275 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 Z-5 F6000 S2 ; lower Z again
    G90 ; absolute positioning

    Homing file for x axis:

    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu May 03 2018 12:42:37 GMT+0300 (EEST)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 X-295 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F6000 ; go back a few mm
    G1 S1 X-295 F360 ; move slowly to X axis endstop once more (second pass)
    G1 Z-5 F6000 S2 ; lower Z again
    G90 ; absolute positioning

    Homing file for all:

    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu May 03 2018 12:42:37 GMT+0300 (EEST)
    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 X-295 Y-275 F1800 ; 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-295 Y-275 F360 ; move slowly to X and Y axis endstops once more (second pass)
    G1 S1 Z-185 F1800 S1 ; move Z down stopping at the endstop
    G90 ; absolute positioning
    G92 Z0 ; set new Z position
    ;G1 Z5 F100 S2 ; uncomment this line to lift the nozzle after homing


  • administrators

    In the following sentence:

    but when i am about to home all of the axis while the leds of x and y axis goes off and the E0 axis goes on the steppers doesn't stop

    when you say "when I am about to home", do you mean you have not actually tried to home the printer? The homing switches are only used during homing moves.



  • I have tried multiple times to home all of the axis both individually and simultaneously but despite the fact that all of them move in the right direction when they hit the end stop switches (or come close to the induction sensor for the z axis and the led on the board goes off for the x and y axis and on for z the motors doesn't stop which forces me to execute the emergency stop function.


  • administrators



  • I have tested and calibrated the x and y end stop switches and despite the fact that they work as decribed in the link when i excecute the homing function despite the fact that the switches are touched and there is a change in the board leds the stepper motors doesn’t stop so i can’t calibrate the induction sensor i have for the z axis


  • administrators

    @argiros-apostolos, is it just Z homing that doesn't work? Or are X and Y homing failing too?



  • All of the x y and z axis fail to home


  • administrators

    I suggest you start by trying individual homing moves. For example, if you send G91 followed by G1 S1 X-250 F600 then the head should move towards the X axis minimum at 10mm/sec, stopping when you trigger the endstop switch.



  • I have tried that and again it doesn't stop when the switch is triggered.



  • Also i have updated my duet wifi firmaware to version 1.21 and now when i just try to move an axis this message appears:
    This appears for the x axis:
    M120
    G91
    G1 X10 F6000
    M121
    Error: G0/G1: insufficient axes homed
    Error: Pop(): stack underflow!


  • administrators

    To allow axis movement before homing, put M564 H0 in config.g.



  • I have changed some of my connections and now i can successfully home my x and y axis but not the z axis (again i have the problem of the motor not stopping despite the fact that the led on the induction sensor is light up) (and the induction probe for the z axis is connected to the E0 stp pin threw a schottky diode).


  • administrators



  • Thank you very much now all axis home perfect.


 

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