Failed to Enable Endstops
-
Hello,
Today I upgraded the firmware on my Duet 2 Wifi from 2.x to the newest 3.2, I also redid my configuration with the rep rap config tool to be compatible. When I went to home for the first time I received an error saying "failed to enable end stops" I am not sure where I have gone wrong. Any help would be much appreciated.
Here is the updated config file,
-
I am also having an issue with the temp readings on my heaters reading - 273.1 C.
Thanks
-
Hi,
First let me suggest that in the future you use the </> tags to embed code into your post.
For example here is the file you posted using those tags. Notice that it appears in it's own scrollable section.
; Configuration file for Duet WiFi (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.2.2 on Fri Jan 22 2021 11:13:01 GMT-0600 (Central Standard Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Caymas 3D Printer" ; set printer name ; Network M552 S1 ; enable network 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 forwards M569 P3 S0 ; physical drive 3 goes forwards M584 X0 Y1 Z2 E3 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X320.00 Y320.00 Z640.00 E40.00 ; set steps per mm M566 X200.00 Y200.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X3000.00 Y3000.00 Z3400.00 E4000.00 ; set maximum speeds (mm/min) M201 X200.00 Y200.00 Z12.00 E250.00 ; set accelerations (mm/s^2) M906 X2000 Y2000 Z2800 E800 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 X1100 Y1100 Z1100 S0 ; set axis maxima ; Endstops M574 X1 S0 P"xstop" ; configure active-low endstop for low end on X via pin xstop M574 Y1 S0 P"ystop" ; configure active-low endstop for low end on Y via pin ystop M574 Z1 S2 ; configure Z-probe endstop for low end on Z ; Z-Probe M558 P1 C"zprobe.in+zprobe.mod" H5 F240 T3600 ; set Z probe type to unmodulated and the dive height + speeds G31 P500 X570 Y570 Z1.8 ; set Z probe trigger value, offset and trigger height M557 X100:1100 Y100:1100 S100 ; define mesh grid ; Heaters M308 S1 P"bedtemp" Y"thermistor" T100000 B4138 ; 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 S0 P"e0temp" Y"thermistor" T100000 B4138 ; 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 S320 ; set temperature limit for heater 1 to 320C ; Fans M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on ; 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 M575 P1 S1 B57600 ; enable support for PanelDue M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
Here is one of your end stop specifications
M574 X1 S0 P"xstop"
Notice the S parameter value. From the docs:
Snnn 1 = switch-type (eg microswitch) endstop input, 2 = Z probe (when used to home an axis other than Z), 3 = single motor load detection, 4 = multiple motor load detection (see Notes).
Frederick
-
@Tpmoses said in Failed to Enable Endstops:
I am also having an issue with the temp readings on my heaters reading - 273.1 C.
Thanks
M308 S1 P"bedtemp" Y"thermistor" T100000 B4138
M950 H0 C"bedheat" T0M308 S0 P"e0temp" Y"thermistor" T100000 B4138
M950 H1 C"e0heat" T1You have the values of the S parameters swapped - should be S0 in the first, S1 in the second .
But I don't think that should cause the -273.1 - that corresponds to a missing thermistor.
Frederick
-
can you post your old config?
-
Thank you, I will embed like that in the future. That change has worked, however now the x and y axis' do not move when homed, any advice?
-
@Tpmoses said in Failed to Enable Endstops:
Thank you, I will embed like that in the future. That change has worked, however now the x and y axis' do not move when homed, any advice?
So both the error message about the end stops is gone AND the temperature readings are correct?
Frederick
-
@fcwilt I made that change, however the sensors remain the same reading There is a temperature daughterboard that the sensors are run wired through. Forgive me for not mentioning it, I inherited this printer at work from a former employee who built it.
-
This post is deleted! -
@Veti Here is the old config
; Configuration file for Duet WiFi (firmware version 2.03) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Jul 21 2020 13:39:57 GMT-0500 (Central Daylight Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Caymas 3D Printer" ; set printer name ; Network M552 S1 ; enable network M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P8 S1 ; physical drive 6 goes forwards M569 P6 S0 ; physical drive 8 goes forwards M569 P2 S0 ; physical drive 2 goes forwards M569 P5 S0 ; physical drive 5 goes forwards M584 X8 Y6 Z2 E5 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X320.00 Y320.00 Z640.00 E4.00 ; set steps per mm M566 X200.00 Y200.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X3000.00 Y3000.00 Z340.00 E4000.00 ; set maximum speeds (mm/min) M201 X200.00 Y200.00 Z20.00 E250.00 ; set accelerations (mm/s^2) M906 X2000 Y2000 Z2800 E800 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 X1100 Y1100 Z1100 S0 ; set axis maxima ; Endstops M574 X1 Y1 S0 ; set active low and disabled endstops M574 Z1 S2 ; set endstops controlled by probe ; Z-Probe M558 P1 H5 F240 T3600 ; set Z probe type to unmodulated and the dive height + speeds G31 P500 X570 Y570 Z1.18 ; set Z probe trigger value, offset and trigger height M557 X100:1100 Y100:1100 S100 ; define mesh grid ; Heaters M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit M305 P0 X151 ; configure thermocouple for heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M305 P1 X150 ; configure thermocouple for heater 1 M143 H1 S320 ; set temperature limit for heater 1 to 320C ; 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 H1 T45 ; set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on ; 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 M575 P1 S1 B57600 ; enable support for PanelDue M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
-
@Tpmoses said in Failed to Enable Endstops:
M305 P0 X151 ; configure thermocouple for heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M305 P1 X150 ; configure thermocouple for heater 1
M143 H1 S320 ; set temperature limit for heater 1 to 320C
your old config had a thermocouple, your new one has a thermistor configured
-
Well based on the old config you need to use one of the "thermocouple" values in M308 - you currently have "thermistor".
Try one or the other of them and see if they work.
Frederick
-
@fcwilt I tried having the bed as a thermocouple and it went to 2000.0 C, Could it be due to the sensors being wired through the daughter board? maybe I need to call to a different sensor?
-
The page with information on the board had this to say about it.
"If your daughter board has two LEDs labelled FAULT then it uses MAX31856 chips. In this case the terminal blocks labelled 1 and 2 on the lower daughter board will be temperature measurement channels 150 and 151 respectively."
-
@Tpmoses said in Failed to Enable Endstops:
@fcwilt I tried having the bed as a thermocouple and it went to 2000.0 C, Could it be due to the sensors being wired through the daughter board? maybe I need to call to a different sensor?
Did you try both values?
I've never used one of the add-on boards so I'm not sure what parameters you need in M308.
Do you check the M308 docs?
Frederick
-
@Tpmoses said in Failed to Enable Endstops:
The page with information on the board had this to say about it.
"If your daughter board has two LEDs labelled FAULT then it uses MAX31856 chips. In this case the terminal blocks labelled 1 and 2 on the lower daughter board will be temperature measurement channels 150 and 151 respectively."
So do those values 150 and 151 need to be used somewhere in the config.g file?
Frederick
-
I was able to get the bed sensor to read, using this line.
M308 S0 P"spi.cs1" Y"thermocouple-max31856" M950 H0 C"bedheat" T0 M307 H0 B0 S1
-
The Heating Element temp now works too, the Callout is the spi.cs1, the number changes based on the port on the daughter chip.
-
Excellent - glad to hear you got it working.
And I learned something new in the process - thank you.
Anything else not working?
Frederick
-
@fcwilt The x and y drives wont run and I am guessing the extruder will have the same problem as it is on that board, they are on a breakout board not the standard drive ports. The previous config the ports used were 8, 6, and 5 respectively, in the new configuration they were assigned as 0, 1 and 3. Z didn't change, and its the only one that is still working. When I assign them like the previous config nothing happens, so I am guessing when I say there is probably a callout in the drive assignment that I am missing.