Homing problems



  • Hi all
    Is there someone that can help me

    I have some problems to get the endstop to work on the stepper motor
    This is my Hardware
    Controller – DuetWifi
    Stepper motor - Nema 17 42HS6315A4 1.5A 75Ncm
    Endstop - Optical Endstop

    The problem is that the stepper motor don’t stop then endstop is activated, I have tried both ways and all motors
    Under “Machine Propeties” Driver configuration I can see that the Endstop hit registered when hitting are OK
    Here is my code
    Best regards
    Bo

    "Config.g"

    ; Configuration file for Duet WiFi (firmware version 1.17)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Wed Oct 04 2017 09:46:19 GMT+0200 (Rom, sommertid)

    ; General preferences
    M111 S0 ; Debugging off
    G21 ; Work in millimetres
    G90 ; Send absolute coordinates…
    M83 ; ...but relative extruder moves
    M555 P2 ; Set firmware compatibility to look like Marlin
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X300 Y300 Z300 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y2 Z1 S1 ; Define active high microswitches
    M558 P0 X0 Y0 Z0 H2 F120 T6000 ; Set Z probe type to switch, the axes for which it is used and the probe + travel speeds
    G31 P600 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
    M557 X15:285 Y15:285 S20 ; Define mesh grid

    ; 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
    M350 X32 Y32 Z32 E16 I1 ; Configure microstepping with interpolation
    M92 X160 Y160 Z169.138 E420 ; Set steps per mm
    M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000 Y6000 Z180 E1200 ; Set maximum speeds (mm/min)
    M201 X500 Y20 Z250 E250 ; 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

    ; Heaters
    M143 S260 ; Set maximum heater temperature to 260C
    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1

    ; 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

    ; Network
    M550 PBoson3DPrinter ; Set machine name
    M552 S1 ; Enable network
    M587 SXXXXXX P"xxxxxxxxxxx" ; 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

    ; 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 H-1 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P2 S1 I0 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off

    ; Custom settings are not configured

    "Homex.g"
    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Wed Oct 04 2017 09:46:19 GMT+0200 (Rom, sommertid)

    ; Lift Z relative to current position
    G91
    G1 Z2 F6000
    G90

    ; Move quickly to X axis endstop and stop there (first pass)
    G1 X-305 F1800 S1

    ; Go back a few mm
    G91
    G1 X5 F6000
    G90

    ; Move slowly to X axis endstop once more (second pass)
    G1 X-305 F360 S1

    ; Lower Z again
    G91
    G1 Z-2 F6000
    G90


  • administrators

    I don't see anything wrong with your config.g or homex.g file. Can you confirm the following:

    • Your X endstop switch is at the X=0 end of the X axis
    • If you power up the printer but don't command any movements yet, you can move the carriage towards the endstop switch slowly by hand, to a point at which the Machine Properties page shows that the X endstop is triggered
    • When you press the Home X button, the carriage moves towards the X endstop switch
    • But it doesn't stop when it reaches the X endstop switch


  • Hi DC42

    Thanks for your help
    I follow your directions and now it is working 

    Another little problem
    I need to set the corner of the bead so it is 0,0
    I can get it to work on X but not on Y
    The distance is
    X=40 mm
    Y=57 mm
    The corner is at the top left corner
    Down below is the code

    Best Regards
    Bo

    config.g
    ; Configuration file for Duet WiFi (firmware version 1.17)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Wed Oct 04 2017 09:46:19 GMT+0200 (Rom, sommertid)

    ; General preferences
    M111 S0 ; Debugging off
    G21 ; Work in millimetres
    G90 ; Send absolute coordinates…
    M83 ; ...but relative extruder moves
    M555 P2 ; Set firmware compatibility to look like Marlin
    M208 X-40 Y57 Z0 S1 ; Set axis minima
    M208 X300 Y300 Z300 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y2 Z1 S1 ; Define active high microswitches
    M558 P0 X0 Y0 Z0 H2 F120 T6000 ; Set Z probe type to switch, the axes for which it is used and the probe + travel speeds
    G31 P600 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
    M557 X15:285 Y15:285 S20 ; Define mesh grid

    ; Drives
    M569 P0 S0 ; Drive 0 goes backwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S0 ; Drive 2 goes backwards
    M569 P3 S0 ; Drive 3 goes backwords
    M350 X32 Y32 Z32 E32 I1 ; Configure microstepping with interpolation
    M92 X160 Y160 Z6400 E169.85138 ; Set steps per mm
    M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
    M203 X5000 Y5000 Z180 E800 ; Set maximum speeds (mm/min)
    M201 X1000 Y1000 Z20 E1000 ; Set accelerations (mm/s^2)
    M906 X1500 Y1500 Z1500 E1500 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Heaters
    M143 S260 ; Set maximum heater temperature to 260C
    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1

    ; 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

    ; Network
    M550 PBoson3DPrinter ; Set machine name
    M552 S1 ; Enable network
    M587 SBoson P"redsea01" ; 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

    ; 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
    M106 P2 S0 I0 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off

    ; Custom settings are not configured



  • Hi DC42

    Learn something new
    The bed can only move 205 mm in Y direction after homing, but all the way when it is not
    The bed is 300x300 mm plus distance from homing to bed

    Best Regards
    Bo


 

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