End Stop not responding with FW2.03 and Duex board



  • Hello

    With the new firmware 2.03 I have troubles to bring the end stops to work when I have attached the duex expansion board.
    The end stops for X and Y are defined as follows:
    M574 X1 S1 C5
    M574 X1 S1 C6

    When I check the them in the web interface in the machine properties then they change the E1 and E2 signal and vis a versa.
    Wiring haven't been changed only the firmware change from beta to 2.03 stable.

    C5 and C6 are correct according to the wiring diagram. And don't like to change my wirings.
    Is this possibly a adressing error in the firmware?

    Therefore I reach out to you to getting information to get help.

    Thanks in advance



  • Seeing both M574 lines saying X1 instead of one with X1 and one with Y1 it might be a good idea to post the whole config as-is to help spot any other potential issues?


  • administrators

    @miracuruzrh said in End Stop not responding with FW2.03 and Duex board:

    M574 X1 S1 C5
    M574 X1 S1 C6

    Firmware 2.03 does not support the C parameter. An early 2.03beta release did, and RRF3 does but in a different form.



  • @dc42 said in End Stop not responding with FW2.03 and Duex board:

    Firmware 2.03 does not support the C parameter.

    Wiki needs updating then; last example shows C parameter.
    https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configuration


  • administrators

    Thanks, I've corrected the wiki.



  • Hello dc42
    how must this be now? can the laser also be on the duex5?

    and how should they be defined without the c-parameter?

    I thank you for the R-parameter in the PT100 this is great.

    and then the config

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Thu Mar 07 2019 12:10:12 GMT+0100 (Mitteleuropäische Normalzeit)

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

    ; 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
    M569 P4 S1 ; Drive 4 goes forwards
    M569 P5 S1 ; Drive 5 goes forwards
    M569 P6 S1 ; Drive 6 goes forwards
    M569 P7 S0 ; Drive 7 goes forwards
    M569 P8 S0 ; Drive 8 goes forwards
    M569 P9 S0 ; Drive 9 goes forwards

    M584 X4 Y3:0 Z2:1 E5:6:7:8:9 ; Apply custom drive mapping
    M350 X16 Y16 Z16 E32:32:32:32:32 I0 ; Configure microstepping without interpolation
    M92 X266.665 Y266.665 Z1600 E830.00:830.00:830.00:830.00:830.00 ; Set steps per mm
    M566 X400.00 Y400.00 Z12.00 E900.00:900.00:900.00:900.00:900.00 ; Set maximum instantaneous speed changes (mm/min)
    M203 X9000.00 Y9000.00 Z800.00 E6000.00:6000.00:6000.00:6000.00:6000.00 ; Set maximum speeds (mm/min)
    M201 X320.00 Y320.00 Z10.00 E2500.00:2500.00:2500.00:2500.00:2500.00 ; Set accelerations (mm/s^2)
    M906 X1800.00 Y1800.00 Z1800.00 E800.00:800.00:800.00:800.00:800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30
    ; Set idle timeout
    ; Endstops
    M574 C5 X1 S1 ; Set X-Axis min. endstop
    M574 C6 Y1 S1 ; Set Y-Axis left min. endstop
    ;M574 Z1 S2 ; Set Z-Axis probe endstop
    ;M574 C8 Z2 S1

    ; Axis Limits
    M208 X-250 Y-250 Z0 S1 ; Set axis minima
    M208 X250 Y250 Z480 S0 ; Set axis maxima

    ; Z-Probe
    M307 H7 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
    M558 P9 F250 H5 R0.3 T3000 A5 B1 ; Set Z probe type to bltouch and the dive height + speeds
    G31 P25 X-24 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
    M557 X-225:225 Y-225:225 S150 ; Define mesh grid

    ; Heaters
    M141 H6 P0
    M307 H6 B1 S1 C3000 D300 ; Enable bang-bang mode for the bed heater and set PWM limit
    M570 H6 T30
    M301 H6 P-1 ; Assign chamber heater to heater 0
    M305 P0 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 X200 ; Configure thermocouple for heater 1
    M143 H1 S550 ; Set temperature limit for heater 1 to 550C
    M305 P2 X201 ; Configure thermocouple for heater 2
    M143 H2 S550 ; Set temperature limit for heater 2 to 550C
    M305 P3 X204 ; Configure thermocouple for heater 3
    M143 H3 S550 ; Set temperature limit for heater 3 to 550C
    M305 P4 X205 ; Configure thermocouple for heater 4
    M143 H4 S550 ; Set temperature limit for heater 4 to 550C
    M305 P5 X206 ; Configure thermocouple for heater 5
    M143 H5 S550 ; Set temperature limit for heater 5 to 550C
    M305 P6 T100000 B4725 C7.060000e-8 R4700 X1 ; Set thermistor + ADC parameters for heater 6 and remap it to channel 1
    M143 H6 S65 ; Set temperature limit for heater 6 to 65C

    ; Fans
    M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off



  • ; Tools
    M563 P1 S"1xHotend" D0 H1 ; Define tool 1
    G10 P1 X0 Y0 Z0 ; Set tool 1 axis offsets
    G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C
    M563 P2 S"2xHotend" D1:0 H2:1 ; Define tool 2
    G10 P2 X0 Y0 Z0 ; Set tool 2 axis offsets
    G10 P2 R0 S0 ; Set initial tool 2 active and standby temperatures to 0C
    M568 P2 S1 ; Enable mixing for tool 2
    M567 P2 E1:1 ; Set mixing ratios for tool 2
    M563 P3 S"3xHotend" D2:0:1 H3:1:2 ; Define tool 3
    G10 P3 X0 Y0 Z0 ; Set tool 3 axis offsets
    G10 P3 R0 S0 ; Set initial tool 3 active and standby temperatures to 0C
    M568 P3 S1 ; Enable mixing for tool 3
    M567 P3 E1:1:1 ; Set mixing ratios for tool 3
    M563 P4 S"4xHotend" D3:0:1:2 H4:1:2:3 ; Define tool 4
    G10 P4 X0 Y0 Z0 ; Set tool 4 axis offsets
    G10 P4 R0 S0 ; Set initial tool 4 active and standby temperatures to 0C
    M568 P4 S1 ; Enable mixing for tool 4
    M567 P4 E1:1:1:1 ; Set mixing ratios for tool 4
    ;M563 P5 S"5xHotend" D4:0:1:2:3 H5:1:2:3:4 ; Define tool 5
    ;G10 P5 X0 Y0 Z0 ; Set tool 5 axis offsets
    ;G10 P5 R0 S0 ; Set initial tool 5 active and standby temperatures to 0C
    ;M568 P5 S1 ; Enable mixing for tool 5
    ;M567 P5 E1:1:1:1:1 ; Set mixing ratios for tool 5
    M563 P11 S"1xHotend300" D0 H1 ; Define tool 11
    G10 P11 X0 Y0 Z0 ; Set tool 11 axis offsets
    G10 P11 R0 S0 ; Set initial tool 11 active and standby temperatures to 0C
    M563 P12 S"2xHotend300" D0:1 H1:2 ; Define tool 12
    G10 P12 X0 Y0 Z0 ; Set tool 12 axis offsets
    G10 P12 R0 S0 ; Set initial tool 12 active and standby temperatures to 0C
    M568 P12 S1 ; Enable mixing for tool 12
    M567 P12 E1:1 ; Set mixing ratios for tool 12
    ;M563 P13 S"3xHotend300" D1:0:2 H1:2:3 ; Define tool 13
    ;G10 P13 X0 Y0 Z0 ; Set tool 13 axis offsets
    ;G10 P13 R0 S0 ; Set initial tool 13 active and standby temperatures to 0C
    ;M568 P13 S1 ; Enable mixing for tool 13
    ;M567 P13 E1:1:1 ; Set mixing ratios for tool 13
    ;M563 P14 S"4xHotend300" D0:1:2:3 H1:2:3:4 ; Define tool 14
    ;G10 P14 X0 Y0 Z0 ; Set tool 14 axis offsets
    ;G10 P14 R0 S0 ; Set initial tool 14 active and standby temperatures to 0C
    ;M568 P14 S1 ; Enable mixing for tool 14
    ;M567 P14 E1:1:1:1 ; Set mixing ratios for tool 14

    M563 P91 S"1xHotend" D0 H1 ; Define tool 1
    G10 P91 X0 Y0 Z0 ; Set tool 1 axis offsets
    G10 P91 R0 S0
    M563 P92 S"1xHotend" D1 H2 ; Define tool 1
    G10 P92 X0 Y0 Z0 ; Set tool 1 axis offsets
    G10 P92 R0 S0
    M563 P93 S"1xHotend" D2 H3 ; Define tool 1
    G10 P93 X0 Y0 Z0 ; Set tool 1 axis offsets
    G10 P93 R0 S0
    M563 P94 S"1xHotend" D3 H4 ; Define tool 1
    G10 P94 X0 Y0 Z0 ; Set tool 1 axis offsets
    G10 P94 R0 S0
    ;M563 P95 S"1xHotend" D4 H5 ; Define tool 1
    ;G10 P95 X0 Y0 Z0 ; Set tool 1 axis offsets
    ;G10 P95 R0 S0

    ; Lasersensor
    M591 D1 P5 C4 R40: 120 E3.0 S1 ; Der Duet3D-Lasersensor für den Extruderantrieb 0 ist an den Stopp-Eingang 3 (E0) angeschlossen, Toleranz 40 bis 120%, 3 mm Vergleichslänge
    M591 D2 P5 C3 R40: 120 E3.0 S1 ; Der Duet3D-Lasersensor für den Extruderantrieb 0 ist an den Stopp-Eingang 3 (E0) angeschlossen, Toleranz 40 bis 120%, 3 mm Vergleichslänge
    M591 D3 P5 C0 R40: 120 E3.0 S1 ; Der Duet3D-Lasersensor für den Extruderantrieb 0 ist an den Stopp-Eingang 3 (E0) angeschlossen, Toleranz 40 bis 120%, 3 mm Vergleichslänge
    M591 D4 P5 C1 R40: 120 E3.0 S1 ; Der Duet3D-Lasersensor für den Extruderantrieb 0 ist an den Stopp-Eingang 3 (E0) angeschlossen, Toleranz 40 bis 120%, 3 mm Vergleichslänge
    ;M591 D9 P5 C2 R40: 120 E3.0 S1 ; Der Duet3D-Lasersensor für den Extruderantrieb 0 ist an den Stopp-Eingang 3 (E0) angeschlossen, Toleranz 40 bis 120%, 3 mm Vergleichslänge

    ; Automatic power saving
    M911 S22 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    M501 ; Load config override



  • @bearer

    Hi

    Thank you pointing to this. It was a typo when I wrote the two lines. Sure the second line should be Y instead of X.
    M574 X1 S1 C5
    M574 Y1 S1 C6



  • Waht can i do?
    Please help me.



  • @3dware Unless you upgrade to RRF 3 which currently still is in early beta only changing the order the endstops are plugged into the board is a possible solution. You need to populate the endstop connectors in the order of XYZUVWABC (of course only for those you actually have) and only then connect laser filament sensors. But I think the issue you were asking about earlier is that AFAIR the LFS does not work on DueX. That would only leave you with two of them.

    That unfortunately does not leave you with a lot of options here. A while back I built a custom firmware version for @deckingman based on the latest firmware release with M574 Cnnn parameter restored but since he does not need that anymore I think I have deleted it. I can check tomorrow.



  • @wilriker said in End Stop not responding with FW2.03 and Duex board:

    A while back I built a custom firmware version for @deckingman based on the latest firmware release with M574 Cnnn parameter restored but since he does not need that anymore I think I have deleted it. I can check tomorrow.

    For info, I'm still using that firmware and I have a copy of it on my PC.



  • Fortunately I was so foreseeing that I kept the modified sources. I made a new build based on the (to be released) 2.04RC2 version including M574 Cnnn parameter.

    Note that I consider this an intermediate solution until you are able to upgrade to RRF 3.

    I uploaded the firmware binary to my Dropbox.


Log in to reply