Duet2 wifi endstops not recognized on boot



  • The amber lights are working and turn off when the switch is closed. I have tried both active high and active low. The Endstops state is not showing in the webcontrol. Using Reprap 3.2 and the latest version of webcontrol. Also Bed temp not showing up and thermistors registering wrong values (shows 2000 degrees on hotend).

    here is my config.g section

    ; Endstops
    M574 X1 S0 P"!xstop" ; configure active-high endstop for low end on X via pin !xstop
    M574 Y1 S0 P"!ystop" ; configure active-high endstop for low end on Y via pin !ystop
    M574 Z1 S0 P"!zstop" ; configure active-high endstop for low end on Z via pin !zstop


  • Moderator

    M574 S0 is not correct. Should be S1.

    https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_RepRapFirmware_Num_3

    Please share your entire config.g as well as the results of sending M122 and M98 P"config.g"



  • m122
    === Diagnostics ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 2.0(RTOS) running on Duet WiFi 1.02 or later
    Board ID: 08DJM-9178L-L2MSD-6J1F4-3SD6N-9TDYN
    Used output buffers: 1 of 20 (7 max)
    === RTOS ===
    Static ram: 28380
    Dynamic ram: 95672 of which 0 recycled
    Exception stack ram used: 276
    Never used ram: 6744
    Task NETWORK ready, free stack 532
    Task HEAT blocked, free stack 1256
    Task MAIN running, free stack 3568
    === Platform ===
    Last reset 00:00:36 ago, cause: power up
    Last software reset at 2021-01-12 17:19, reason: User, spinning module GCodes, available RAM 6664 bytes (slot 3)
    Software reset code 0x0003 HFSR 0x00000000, CFSR 0x00000000, ICSR 0x0041f000, BFAR 0xe000ed38, SP 0xffffffff
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms
    MCU temperature: min 21.8, current 25.3, max 25.5
    Supply voltage: min 14.7, current 14.8, max 14.9, under voltage events: 0, over voltage events: 0
    Driver 0: standstill, SG min/max not available
    Driver 1: standstill, SG min/max not available
    Driver 2: standstill, SG min/max not available
    Driver 3: standstill, SG min/max not available
    Driver 4: standstill, SG min/max not available
    Date/time: 2021-01-13 15:31:21
    Slowest loop: 17.58ms; fastest: 0.07ms
    === Move ===
    Hiccups: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
    Scheduled moves: 0, completed moves: 0
    Bed compensation in use: none
    Bed probe heights: 0.000 0.000 0.000 0.000 0.000
    === Heat ===
    Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
    === GCodes ===
    Segments left: 0
    Stack records: 1 allocated, 0 in use
    Movement lock held by null
    http is ready with "m122" in state(s) 0
    telnet is idle in state(s) 0
    file is idle in state(s) 0
    serial is idle in state(s) 0
    aux is idle in state(s) 0
    daemon is idle in state(s) 0
    queue is idle in state(s) 0
    autopause is idle in state(s) 0
    Code queue is empty.
    === Network ===
    Slowest loop: 17.70ms; fastest: 0.01ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
    HTTP sessions: 1 of 8

    • WiFi -
      Network state is running
      WiFi module is providing access point
      Failed messages: pending 0, notready 0, noresp 0
      WiFi firmware version 1.25
      WiFi MAC address da:bf:c0:fb:5c:45
      WiFi Vcc 3.31, reset reason Turned on by main processor
      WiFi flash size 4194304, free heap 25792
      WiFi IP address 10.10.10.10
      Connected clients 1
      Socket states: 0 0 0 0 0 0 0 0
      === Expansion ===


  • Entire Config G

    ; Configuration file for Duet WiFi (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.2.1 on Tue Jan 12 2021 15:48:42 GMT-0800 (PST)

    ; General preferences
    G90 ; send absolute coordinates...
    M83 ; ...but relative extruder moves
    M550 P"BigPrinter" ; set printer name

    ; Network
    M552 S2 ; enable access point
    M586 P0 S1 ; enable HTTP
    M586 P1 S0 ; disable FTP
    M586 P2 S0 ; disable Telnet

    ; Drives
    M569 P0 S1 ; physical drive 0 goes forwards
    M569 P1 S0 ; physical drive 1 goes forwards
    M569 P2 S0 ; physical drive 2 goes backwards
    M569 P3 S1 ; physical drive 3 goes forwards
    M584 X0 Y1 Z2 E3 ; set drive mapping
    M350 X128 Y128 Z128 E16 I0 ; configure microstepping without interpolation
    M92 X640.00 Y640.00 Z3200.00 E100.00 ; set steps per mm
    M566 X500.00 Y500.00 Z6.00 E60.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X12000.00 Y12000.00 Z1200.00 E3000.00 ; set maximum speeds (mm/min)
    M201 X1000.00 Y1000.00 Z100.00 E5000.00 ; set accelerations (mm/s^2)
    M906 X855 Y855 Z855 E855 I30 ; set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; set axis minima
    M208 X300 Y300 Z400 S0 ; set axis maxima

    ; Endstops
    M574 X1 S1 P"!xstop" ; set X limit switch
    M574 Y1 S1 P"!ystop" ; set Y limit switch
    M574 Z1 S1 P"!zstop" ; set Z limit switch

    ; Z-Probe
    M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed
    M557 X25:250 Y25:250 S20 ; define mesh grid

    ; Heaters
    M308 S0 P"bedheat" Y"thermistor T100000 B3988 ; configure sensor 0 as thermistor on pin bedtemp
    M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
    M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
    M140 H0 ; map heated bed to heater 0
    M143 H0 S120 ; set temperature limit for heater 0 to 120C
    M308 S1 P"ext1" Y"thermistor" T100000 B3988 ; configure sensor 1 as thermistor on pin e0temp
    M950 H1 C"ext1" T1 ; create nozzle heater output on e0heat and map it to sensor 1
    M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
    M143 H1 S280 ; set temperature limit for heater 1 to 280C

    ; Fans
    M950 F0 C"fan0" Q25000 ; create fan 0 on pin fan0 and set its frequency
    M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off

    ; Tools
    M563 P0 D0 H1 F0 ; 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

    ; Custom settings are not defined

    ; Miscellaneous



  • M98 P"config.g"

    HTTP is enabled on port 80
    FTP is disabled
    TELNET is disabled
    Warning: M308 command is not supported
    Warning: M950 command is not supported
    Warning: M308 command is not supported
    Warning: M950 command is not supported
    Warning: M950 command is not supported



  • NEMA 17 steppers
    FLSUN Metal setup used to use an MKS which worked okay
    I can move the motors all fine and they go in the right direction

    I was able to get the thermistors to read the right values with the same setting but now they all say 2000 and the bed isn't showing up. When they worked the hot end worked fine as did the extruder I have provisioned (it has two - Bowden tube into cyclops - plan to set up later and with inductive bed leveling). However, the bed fuse blew as soon as I sent power.

    Now the bed doesn't show up at all - maybe I need to replace the fuse? But I am using a Duet2 on my workbee cnc and it shows all the end stops and doesn't seem to care that there isn't a fuse in the bed.



  • Oh - and thanks so much for any help! You can see I already fixed the S0 to S1.

    Also - the APS is set high to accommodate the larger bed.


  • Moderator

    @kto1243 said in Duet2 wifi endstops not recognized on boot:

    RepRapFirmware for Duet 2 WiFi/Ethernet version 2.0

    So you are only using RRF 2.0, not 3.2 as you thought.

    You must update the firmware first.

    You will need to do 3 updates to get to 3.2

    The updates should be pretty easy to do and will involve uploading 3 zip files. First download these files.

    https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip

    https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip

    https://github.com/Duet3D/RepRapFirmware/releases/download/3.2/Duet2and3Firmware-3.2.zip

    Start by uploading the 2.05.1 file to the system tab in DWC. It should install and reboot. Then upload 3.0 and reboot, and finally 3.2 and reboot.

    Then the syntax of your config.g will be correct.

    Use M115 to verify your firmware versions.



  • Thanks - I actually figured it out by sending you all this stuff! I really appreciate your help.

    Okay - on to next problem. Thermistors. Bed thermistor isn't registering. It is exactly the same as my hot end. Any ideas?

    Last thing - I blew two bed fuses. I have the black wire closest to VIN and red furthest on the Bed. Is it possible that is backwards?

    Thanks again for helping dumb me out! I do public policy for a living - learning electronics is my effort at brain expanding. This one has been a hoot!



  • Oh - one more dumb thing. When I upgraded from 3.0 to 3.2 the endstops disappeared from the webcontrol. They work, but I can't see their state under system/machine specific like I could in 3.0. Did I do something dumb?



  • Here is my current Config.g

    ; Configuration file for Duet WiFi (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.2.1 on Tue Jan 12 2021 15:48:42 GMT-0800 (PST)

    ; General preferences
    G90 ; send absolute coordinates...
    M83 ; ...but relative extruder moves
    M550 P"BigPrinter" ; set printer name

    ; Network
    M552 S2 ; enable access point
    M586 P0 S1 ; enable HTTP
    M586 P1 S0 ; disable FTP
    M586 P2 S0 ; disable Telnet

    ; Drives
    M569 P0 S1 ; physical drive 0 goes forwards
    M569 P1 S0 ; physical drive 1 goes forwards
    M569 P2 S0 ; physical drive 2 goes backwards
    M569 P3 S1 ; physical drive 3 goes forwards
    M584 X0 Y1 Z2 E3 ; set drive mapping
    M350 X128 Y128 Z128 E16 I0 ; configure microstepping without interpolation
    M92 X640.00 Y640.00 Z3200.00 E100.00 ; set steps per mm
    M566 X500.00 Y500.00 Z6.00 E60.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X12000.00 Y12000.00 Z1200.00 E3000.00 ; set maximum speeds (mm/min)
    M201 X1000.00 Y1000.00 Z100.00 E5000.00 ; set accelerations (mm/s^2)
    M906 X855 Y855 Z855 E855 I30 ; set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; set axis minima
    M208 X300 Y300 Z400 S0 ; set axis maxima

    ; Endstops
    M574 X1 S1 P"xstop" ; set X limit switch
    M574 Y1 S1 P"ystop" ; set Y limit switch
    M574 Z1 S1 P"zstop" ; set Z limit switch

    ; Z-Probe
    M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed
    M557 X25:250 Y25:250 S20 ; define mesh grid

    ; Heaters
    M308 S0 P"bedtemp" Y"thermistor T100000 B3888 ; configure sensor 0 as thermistor on pin bedtemp
    M950 H0 C"bedtemp" T0 ; create bed heater output on bedheat and map it to sensor 0
    M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
    M140 H0 ; map heated bed to heater 0
    M143 H0 S120 ; set temperature limit for heater 0 to 120C
    M308 S1 P"e0temp" Y"thermistor" T100000 B3988 ; configure sensor 1 as thermistor on pin e0temp
    M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
    M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
    M143 H1 S280 ; set temperature limit for heater 1 to 280C

    ; Fans
    M950 F0 C"fan0" Q25000 ; create fan 0 on pin fan0 and set its frequency
    M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off

    ; Tools
    M563 P0 D0 H1 F0 ; 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

    ; Custom settings are not defined

    ; Miscellaneous



  • @kto1243 said in Duet2 wifi endstops not recognized on boot:

    Oh - one more dumb thing. When I upgraded from 3.0 to 3.2 the endstops disappeared from the webcontrol. They work, but I can't see their state under system/machine specific like I could in 3.0. Did I do something dumb?

    They were removed from DWC 3.2 - they may be coming back in the future.

    But for now you can see the state in the Object Model display that is in 3.2 under Settings.

    Frederick


  • Moderator

    @kto1243 said in Duet2 wifi endstops not recognized on boot:

    Bed thermistor isn't registering. It is exactly the same as my hot end. Any ideas?
    Last thing - I blew two bed fuses. I have the black wire closest to VIN and red furthest on the Bed. Is it possible that is backwards?

    What does the temp of the bed show in the interface?

    Which fuse exactly did you blow? The one on the duet or do you have an inline or something else?

    Photo of your wiring?

    @kto1243 said in Duet2 wifi endstops not recognized on boot:

    learning electronics is my effort at brain expanding

    Keep it up!



  • @Phaedrux The 15 amp fuse on the Duet between VIN and BED terminals.

    I get an error message that says that the temp sensor is unknown. The thermistor is plugged into the pin right next to the BED terminal.

    I will try to get a picture up tomorrow.

    Thanks again for the help and encouragement!


Log in to reply