X Endstop not being recognized



  • Sheesh...fix one problem, another pops up!

    Started up the machine and did a Home X. The carriage move to the x endstop (all the way to the left) ,but keeps going and grinds until I power down. I confirmed the endstop is connected correctly to the board...lights are on when connected and when I manually trigger the endstop.

    Here is my config file:

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Sep 06 2018 21:21:12 GMT-0700 (Pacific Daylight Time)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Network
    M550 Pe3 ; 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 S0 ; Drive 1 goes backwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes backwards
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80.00 Y80.00 Z400 E95 ; Set steps per mm
    M566 X1000 Y1000 Z100 E30000 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000 Y6000 Z500 E1500 ; Set maximum speeds (mm/min)

    M201 X300 Y300 Z100 E5000 ; Set accelerations (mm/s^2) was 500 you changed it to 300 for stall guard
    M906 X500 Y500 Z500 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S300 ; Set idle timeout

    ; Axis Limits
    ;M208 X-5.5 Y-10 Z0 S1 ; Set axis minima
    ;M208 X258.5 Y246 Z260 S0 ; Set axis maxima
    M208 X-106:114 Y-110:118 Z0:180

    ; Endstops
    M574 X1 Y1 S1 ; Set active high endstops

    ; Z-Probe
    M574 Z1 S2 ; Set endstops controlled by probe
    M307 H3 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
    M307 H4 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
    M558 P9 H2.5 F120 T6000 ; Set Z probe type to bltouch and the dive height + speeds
    G31 P25 X-31 Y0 Z3.06 . ; Set Z probe trigger value, offset and trigger height
    M557 X50:185 Y50:185 S65 ; Define mesh grid

    ; Heaters
    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    ;M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S345 ; Set temperature limit for heater 1 to 345C
    M305 P1 R4700 T100000 B4388 ; set E0 thermistor parameters

    ; Fans
    M106 P0 S0 I0 B0.5 F250 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 B0.5 F500 L255 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Minimum Speed is 1/3 aka 87 Thermostatic control is turned on triggered at nozzle temp 45;
    M106 P2 S0 I0 B0.5 F500 H-1 ; 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

    ; 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
    M591 D0 P5 C3 R10:300 E3.0 S1 ; Duet3D laser sensor for extruder drive 0 is connected to endstop input 3 (E0), tolerance 10 to 120%, 3mm comparison length



  • check the resistance of the endstop with a multimeter. triggered and untriggerd.



  • Thanks! How do I go about doing that. I have a multitester!



  • Do I connect the multi to the switch like this?

    (https://www.dropbox.com/s/z9etrgwa4jn8gkp/IMG_3410.jpg?dl=0)



  • Hi,

    Are you sure you as using active high devices?

    Please post you X axis homing file.

    Frederick



  • ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Sep 29 2018 12:21:45 GMT-0700 (Pacific Daylight Time)
    G91 ; relative positioning
    G1 Z2.5 F6000 S2 ; lift Z relative to current position
    G1 S1 X-269 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F6000 ; go back a few mm
    G1 S1 X-269 F360 ; move slowly to X axis endstop once more (second pass)
    G1 Z-2.5 F6000 S2 ; lower Z again
    G90 ; absolute positioning



  • to verify if the firmware registers the endstops use the M119 command with the endstop triggerend and untriggered.



  • @BearcatTD

    Your homing file looks ok but note that later versions of firmware are using H instead of S - check the documentation for the details.

    Are you really using firmware 1.21 as mentioned in the config file?

    And you are using active high end stop devices?

    Thanks.

    Frederick



  • @bearer

    This is what is returned for both triggered and untriggered.

    Endstops - X: not stopped, Y: at min stop, Z: not stopped, Z probe: not stopped



  • @fcwilt

    Firmware: 2.04RC3 (2019-10-08b3)

    How do I tell if I am using active high end stop devices. These are whatever came stock on the Ender.

    Thanks!



  • @BearcatTD so you get the same output when you run M119 while the endstop is triggered and not triggered? I.e. hold the switch while running M119

    if so something is fishy, and your config looks ok.

    active high/low has to do with the wiring and type of switch, normally closed vs normally open. if M119shows the X endstop as at stop if the switch is not triggered you may have to invert it, but for now that doesn't seem to be an issue if the previous post was correct.



  • @BearcatTD

    Verify that your X endstop device is connected to the correct input.

    Perhaps there is a break in one of the wires to the endstop device.

    Also you can swap, as a test, the X and Y endstop connections and see what M119 reports.

    Your endstop devices are likely active high assuming they are just micro switches and are using the suggested normally closed connection.

    Frederick



  • @bearer said in X Endstop not being recognized:

    @BearcatTD so you get the same output when you run M119 while the endstop is triggered and not triggered? I.e. hold the switch while running M119

    Yes indeed!



  • @fcwilt

    I'm headed out to a football game...will take a run at it when I get home later!

    Thanks folks!

    Pat



  • @BearcatTD said in X Endstop not being recognized:

    Yes indeed!

    then check wiring as pr fcwilts suggestion, something fishy with the hardware (wiring, switch and/or board) 👍



  • to check the endstop with a multimeter.

    set it to measure ohm (resistance)

    now the meter should show something that represents infinite. if you make the black and red probe of the multimeter touch it should show something close to 0 or 0.

    now unplug the endstop from the duet. there should be two wires going into the molex connector.
    each wire should have a small exposed metal area on the side of the connector. make the multimeter probes each touch one of those area.
    depending on the switch the multimeter should read:
    NO : infinite
    NC : close to 0
    then you then trigger the switch it should now switch to the other value.

    if it does not toggle, measure directly on the switch itself. there are there wires comming out of the switch. use the 2 side ones.

    if it now toggles, the wires or crimps in the cable are bad. if it does not, then the switch is broken.


  • administrators

    @BearcatTD, is it a microswitch endstop, or some other type?



  • @dc42
    he is setting up his ender 3 with a duet wifi.
    the ender 3 is using micro switches as endstops.


  • administrators

    @BearcatTD, please send M574 without parameters from the console and see what the response is. I want to check that the endstop configuration is as you specified in config.g.

    If the configuration is correct and the hardware is working, it should read "stopped" when the LED is off and "not stopped" when the LED is on.



  • @dc42

    When I send the M574 command with the endstop triggered and untriggered I get the same response, " Endstop configuration: X; low end active high, Y; low end active high; Z; low end z probe.

    When I trigger the endstop the led on the board goes out and comes back on when I release the endstop.

    Thanks!


Log in to reply