Rewired board, now endstops are reversed



  • I had to unplug and rewire my Duet 2 wifi last night. Now the X axis tries to "home" to the right side of the machine (opposite the endstop) , the Z axis homes down, but the BLTouch doesn't deploy (it does the clicky thing on startup). It appears that the Y homes correctly. I labeled everything, and there is really only one way for the cables to connect to the board. It is possible that I have the mains leads switched...could that be a thing?

    Thanks for any advice!

    Pat



  • Reversed mains could not do that. Reversed motor connectors would do that, but as you say they shouldn't be easy or even possibly to plug in reverse.

    Could you have swapped X and Y? Not if Y is okay. Hmm.



  • Just a quick update. Again, the Y homes correctly. Now the X axis stops about in the middle when homing. Each time I do a home, the print head ends up a few mm further to the right. The BL still doesn't deploy after its startup routine.



  • check your x endstop with m119 and maybe share your config.g and homeall.g files.



  • Results of M119: Endstops - X: at min stop, Y: at min stop, Z: not stopped, Zprobe: not stopped

    This is where my X axis is actually stopping
    alt text

    Here is my config G . homeall.G to follow

    ; 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 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 S1 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes backwards
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80 Y80 Z400 E95 ; Set steps per mm
    M566 X600 Y600 Z24 E300 ; Set maximum instantaneous speed changes (mm/min) was 1200 you changed it to 600
    M203 X30000 Y30000 Z300 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 E500 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S300 ; Set idle timeout

    ; Axis Limits
    M208 X-5 Y-15 Z0 S1 ; Set axis minima M208 X-5.5 Y-10 Z0 S1
    M208 X258.5 Y246 Z260 S0 ; Set axis maxima

    ; 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-45 Y-18 Z2.69 ; Set Z probe trigger value, offset and trigger height
    M557 X5:205 Y5:205 S65 ; Define mesh grid M557 X20:215 Y20:215 S65

    ; 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 S280 ; Set temperature limit for heater 1 to 280C

    ; Fans
    M106 P0 S0 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 S0 I0 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

    ; homeall.g
    ; called to home all axes
    ;
    ; generated by RepRapFirmware Configuration Tool on Sat Sep 29 2018 12:21:44 GMT-0700 (Pacific Daylight Time)
    G91 ; relative positioning
    G1 Z2.5 F6000 S2 ; lift Z relative to current position
    M98 Pdeployprobe.g ; deploy mechanical Z probe
    G1 S1 X-269 Y-261 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-269 Y-261 F360 ; move slowly to X and Y axis endstops once more (second pass)
    G90 ; absolute positioning
    G1 X51 Y20 F6000 ; go to first bed probe point and home Z
    G30 ; home Z by probing the bed

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

    M98 Pretractprobe.g ; retract mechanical Z probe



  • maybe i should have been clearer, test the endstop twice - with the axis (or something else) triggering the endstop, and once without.

    reason I ask is when you say it moves a few mm each time I'm thinking your homeall.g file is skipping straight past the G1 S1 moves for X.



  • @bearer

    m119 brings back the same result for both scenarios.



  • That tells you the switch isn't working, it needs to change state. Double check the wiring, maybe try swapping X and Y switches and repeat the test to see if the problem follows the switch or the endstop input?



  • Well, before I swapped the switches, i just clicked the X switch a bunch of times and that must have knocked something loose and now everything is working. I AM though ordering a couple of replacement switches.

    Thanks very much for your help,

    Pat


 

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