Endstops triggered without anything connected
-
Hi all, I'm having a problem with my duet wifi (FW 2.05.1), from the web interface I can see endstops are all in triggered status even if no one is physically connected.
I have one optical endstop 3pin and a mechanical one 3pin, if I try to connect them the red on the duet wifi is always on and it switch off only if I physically trigger the endstop.I tried to swap from S0 to S1 (I also tried to use only 2 pins removing the middle one) but nothing changes, if I remove all connections endstop leds on the duet are finally not on anymore, but from the web interface are still shown as triggered
-
I'd just like to add that I built a coreXY printer and I'm trying to give her life
-
Hi,
Did you try changing the S parameter value from 0 to 1 or from 1 to 0 depending on what you are currently using?
Frederick
-
@Eman74 Please post your config.g. If you can post a picture of the endstops, particularly how they are wired to the endstop and the Duet, that would help.
Ian
-
Hi all, I think I found the solution looking into an unrelated post for X an Y issues (wiring follows duet recommendations with all 3 pins connected):
this was my not working config:
; Endstops
M574 X1 S1 ; Set active high endstops
M574 Y2 S1 ; Set active low endstops, Y endstop is high(max).this is how I suppose I fixed my issue:
; Endstops
M574 X1 S1 P"!xstop" ; Set active high endstops
M574 Y2 S1 P"!xstop" ; Set active low endstops, Y endstop is high(max).When I check from the web interface I can finally see the endstops not triggered and when I manually trigger them their status change correctly from the web interface.
Now the only thing I'm not sure if it's normal is that the endstop red led is switched on when led are not triggered and of when I trigger them manually, is that normal for cartesian config?
I have another duet with cartesian config and it does exactly the opposite (leds are normally switched off and they lights up only e=when the endstop is triggered), do you guys know if for cartesian configs is an expected behaviour? -
You posted that you were running firmware 2.05.1.
The syntax you changed to is for firmware 3.x.
So what firmware are you running?
Frederick
-
@fcwilt said in Endstops triggered without anything connected:
running firmware 2.05.1
I am running running firmware 2.05.1 I have no clue why this is working this way I also managed to home X and Y axis, and I can grant you I double checked I'm on 2.05.1:
Board: Duet WiFi 1.02 or later + DueX5
Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 2.05.1 (2020-02-09b1)
Duet WiFi Server Version: 1.23 -
From THIS page:
Each input has a pullup resistor and red LED between the STP pin and +3.3V.
The LED will be illuminated when an endstop switch or other device connected to the input holds the voltage close to 0V (ground).
Whether the LED is illuminated when the endstop switch is triggered or not triggered depends on whether your endstop switch produces and active-high or active-low output:
An endstop switch with an active-high output holds the input pin at about 0V when the switch is not triggered, and about +3.3V when it is triggered. A typical example is a normally-closed microswitch. The LED on the Duet will be illuminated when the switch is connected but not triggered.
An endstop switch with an active-low output holds the input pin at about 3.3V when the switch is not triggered, and about 0V when it is triggered. One example is a normally-open microswitch (which is not recommended, because a normally-closed switch is safer). Another example is a Hall sensor with an open-drain output that is connected directly to the Duet endstop input. The LED on the Duet will be illuminated when the switch is connected and triggered.
-
@alankilian said in Endstops triggered without anything connected:
From THIS page:
Each input has a pullup resistor and red LED between the STP pin and +3.3V.
The LED will be illuminated when an endstop switch or other device connected to the input holds the voltage close to 0V (ground).
Whether the LED is illuminated when the endstop switch is triggered or not triggered depends on whether your endstop switch produces and active-high or active-low output:
An endstop switch with an active-high output holds the input pin at about 0V when the switch is not triggered, and about +3.3V when it is triggered. A typical example is a normally-closed microswitch. The LED on the Duet will be illuminated when the switch is connected but not triggered.
An endstop switch with an active-low output holds the input pin at about 3.3V when the switch is not triggered, and about 0V when it is triggered. One example is a normally-open microswitch (which is not recommended, because a normally-closed switch is safer). Another example is a Hall sensor with an open-drain output that is connected directly to the Duet endstop input. The LED on the Duet will be illuminated when the switch is connected and triggered.
Thank you very much, this resolve my doubts, still not sure why I'm able to use new gcodes on 2.05.1 but may be this option was available before the jump too, I may have simply found an EasterEgg of high value for my config (I'll probably upgrade to latest version later on, I just went for the version I was already familiar with....)
Now it's time to look into triple-z homing with BLTouch... wish me luck!
-
@Eman74 said in Endstops triggered without anything connected:
I cannot understand how v3 syntax can work on v2 firmware.
If you haven't already done so please execute M98 P"config.g" from the DWC console and let us know if there are any warnings or error messages displayed.
Thanks.
Frederick
-
@fcwilt said in Endstops triggered without anything connected:
I cannot understand how v3 syntax can work on v2 firmware.
Well the first half of the M574 command is the same, so it's just ignoring the second half with the pin name.
M574 X1 S1
is the same in RRF2 or RRF3. The only difference for RRF3 is that it adds the pin nameP"!xstop"
https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M574_Set_endstop_configuration
-
@Phaedrux said in Endstops triggered without anything connected:
@fcwilt said in Endstops triggered without anything connected:
I cannot understand how v3 syntax can work on v2 firmware.
Well the first half of the M574 command is the same, so it's just ignoring the second half with the pin name.
M574 X1 S1
is the same in RRF2 or RRF3. The only difference for RRF3 is that it adds the pin nameP"!xstop"
https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M574_Set_endstop_configuration
Thanks.
I wrongly assumed that the firmware validated the entire line of code (stopping at comments) to insure that all was correct.
That still doesn't explain why his change worked - his posts suggests he left the "v2" part unchanged.
Frederick
-
I'm guessing some combination of wiring and command syntax.
-
@fcwilt said in Endstops triggered without anything connected:
M98 P"config.g"
M98 P"config.g"
HTTP is enabled on port 80
FTP is disabled
TELNET is disabledthis is what I get, anyway I'll soon update to RRF3, my understanding is it's way more powerful and has more development potential
-
@Eman74 said in Endstops triggered without anything connected:
M98 P"config.g"
HTTP is enabled on port 80
FTP is disabled
TELNET is disabledWell there are no warnings or errors so that is good.
'll soon update to RRF3, my understanding is it's way more powerful and has more development potential
Wise choice. For a little bit of effort you will have a much better system.
Frederick
-
@Eman74 said in Endstops triggered without anything connected:
I'll soon update to RRF3
If you still have access to DWC. Upload these 3 zip files, one at a time in the system tab. Don't extract them. Reboot after each. Use M115 to verify the firmware has been applied.
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.2/Duet2and3Firmware-3.2.2.zip
That will get your firmware and DWC up to date.You can see the change logs here:
https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.xFor your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
https://configtool.reprapfirmware.org/StartBackup your existing config files in the sys folder in case you want to switch back to RRF3. IT’s easy to switch back and forth, just upload the zip file for the version you want and then upload your config files.
These documents will come in handy during the conversion.
https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview
https://duet3d.dozuki.com/Wiki/Gcode