Movement past endstop



  • i cant seem to get the printer to stop at the endstops it just wants to blow past them the led on them lights up but it just wants to crash past them im not using a z probe yet (need to print a mount) but anyway i have the ultimaker type 3 pin switch with the led and here are my config files any help is appreciated
    ; Configuration file for Duet WiFi (firmware version 1.17)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Apr 08 2017 11:48:01 GMT-0500 (Central Daylight Time)

    ; 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 Z390 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 Z2 S0 ; Define active low and unused microswitches
    M558 P0 X0 Y0 Z0 H5 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 S1 ; Drive 0 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S1 ; Drive 3 goes forwards
    M350 X128 I0 ; Configure microstepping without interpolation
    M350 Y128 Z128 E128 I1 ; Configure microstepping with interpolation
    M92 X87.489 Y87.489 Z4000 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 S350 ; Set maximum heater temperature to 350C
    M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
    M305 P0 T100000 B3988 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 PLoKi ; Set machine name
    M552 P0.0.0.0 S1 ; Enable network and acquire dynamic address via DHCP

    ; 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 H1 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

    ; Custom settings are not configured

    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Apr 08 2017 11:48:01 GMT-0500 (Central Daylight Time)

    ; Relative positioning
    G91

    ; Lift Z
    G1 Z5 F6000

    ; Course home X and Y
    G1 X-305 Y-305 F1800 S1

    ; Move away from the endstops
    G1 X5 Y5 F6000

    ; Fine home X and Y
    G1 X-305 Y-305 F360 S1

    ; Move Z up until the switch triggers
    G1 Z395 F1800 S1

    ; Absolute positioning
    G90

    ; Tell the firmware where we are
    G92 Z2.5

    ; Uncomment the following line to lift the nozzle after probing
    ;G1 Z5 F100

    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Apr 08 2017 11:48:01 GMT-0500 (Central Daylight Time)

    ; Lift Z relative to current position
    G91 ; relative mode
    G1 Z4 F200 ; raise head to avoid dragging nozzle over the bed
    G1 X-300 F3000 S1 ; move up to 300mm in the -X direction, stopping if the homing switch is triggered
    G1 X4 F600 ; move slowly 4mm in the +X direction
    G1 X-10 S1 ; move slowly 10mm in the -X direction, stopping at the homing switch
    G1 Z-4 F200 ; lower the head again
    G90 ; back to absolute mode

    ; 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-5 F6000
    G90
    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Apr 08 2017 11:48:01 GMT-0500 (Central Daylight Time)

    ; Lift Z relative to current position
    G91
    G91 ; relative mode
    G1 Z4 F200 ; raise head to avoid dragging nozzle over the bed
    G1 y-300 F3000 S1 ; move up to 300mm in the -y direction, stopping if the homing switch is triggered
    G1 y4 F600 ; move slowly 4mm in the +y direction
    G1 y-10 S1 ; move slowly 10mm in the -y direction, stopping at the homing switch
    G1 Z-4 F200 ; lower the head again
    G90 ; back to absolute mode

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

    ; Go back a few mm
    G91
    G1 Y5 F6000
    G90

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

    ; Lower Z again
    G91
    G1 Z-5 F6000
    G90

    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Apr 08 2017 11:48:01 GMT-0500 (Central Daylight Time)

    ; Lift Z relatively to current position
    G91 ; relative mode
    G1 Z4 F200 ; raise head to avoid dragging nozzle over the bed
    G1 Z240 F3000 S1 ; move up to 390mm in the +Z direction, stopping if the homing switch is triggered
    G1 Z-4 F600 ; move slowly 4mm in the -Z direction
    G1 Z10 S1 ; move slowly 10mm in the +Z direction, stopping at the homing switch
    G1 Z-4 F200 ; lower the head again
    G90 ; back to absolute mode

    ; Move Z up until the switch triggers
    G1 Z395 S1 F1800

    ; Back to absolute positioning
    G90

    ; Tell the firmware where we are
    G92 Z2.5

    ; Uncomment the following lines to lift Z after probing
    ;G91
    ;G1 Z5 F100
    ;G90


  • administrators

    Do you mean that when you try to home the printer, it doesn't stop at the endstop switches? If so:

    • Which axis endstop switches doesn't it stop at?
    • Does it make a difference whether you do a home all, or home the axes individually?
    • What sort of endstop switches are they?


  • well after alot of testing all the switches stop when i home individually ie: home x,home y,home z the z will not stop when i home all it goes past the stop i have to emergency stop after that so not sure if the xy both stop because i have to stop the printer because of the z axis going past the endstop. and the endstops are mechanical switch active low 3pin ultimaker type like the ones on this link http://www.ebay.com/itm/Endstop-Limit-Switch-Ramps-1-4-with-Wire-for-Reprap-3D-Printer-/172132014187?hash=item2813de186b:g:Cy8AAOSwo4pYiXHC and thank you again



  • i got it to home all and stop but now any print i try to do crashes into the print head on the z any ideas on why that is?


  • administrators

    If it's crashing into the bed, then it sounds like your Z homing switch isn't triggering at exactly Z=390mm which is what you have told it in your M208 S0 command.

    Btw you have some lower case 'y' characters in the homey.g file that you posted above. They need to be changed to upper case Y.



  • i changed the M208 S0 to M208 S1 and it still chrashes into the print head but when i home all it stops fine then if i try to move z in any direction it moves up and crashes into the head. so if i home all the select the z axis to move down it move up and if i home all if i move up it moves up which is correct but not sure why its moving up when i tell it too move in the downward direction after it homes it moves correctly in both directions if i dont home the printer any ideas why that is? i also cant get the endstops to stop when i use the individual homing command only on the home all they work as should sorry for the all the trouble this is just driving me crazy and i know its more than likely my fault i just cant figure out where im going wrong here



  • nevermind i mangaged to sort it out just incase newbies like me read this and have the same issue i had the G92 command set wrong for my printer set it correctly and it works as intended thank you very much for all your help and dealing with my troubles


Log in to reply