1

Topic: Endstop reverse logic

So, i've finally come to the end of a project to upgrade the Rigidbot to the Sainsmart 2-in-1 board, but i'm running into a problem: The endstops are using the wrong logic. Instead of stopping when the endstop makes contact, it stops whenever the endstop isn't making contact, and goes whenever it is making contact. Is there any way to change the logic in the software?

2

Re: Endstop reverse logic

n108bg wrote:

So, i've finally come to the end of a project to upgrade the Rigidbot to the Sainsmart 2-in-1 board, but i'm running into a problem: The endstops are using the wrong logic. Instead of stopping when the endstop makes contact, it stops whenever the endstop isn't making contact, and goes whenever it is making contact. Is there any way to change the logic in the software?

It has to be done in the firmware, there is a function to invert the endstops and that will change the way the logic is seen..

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

3

Re: Endstop reverse logic

Do you know what or where that function is in marlin?

4

Re: Endstop reverse logic

It's in configuration.h in the mechanical settings section.  You'll see endstop logic for each axis either set to true or false, just change the ones that are incorrect.

Printit Industries Model 8.10 fully enclosed CoreXY, Chamber heat
3-SD3's & a Workbench all fully enclosed, RH-Slic3r Win7pro, E3D V6, Volcano & Cyclops Hot End
SSR/500W AC Heated Glass Bed, Linear bearings on SS rods. Direct Drive Y-axis, BulldogXL
Thanks to all for your contributions

5

Re: Endstop reverse logic

Thanks for the help. I used the beta firmware and i guess every single endstop setting was reversed from the previous version.

6

Re: Endstop reverse logic

Shouldn't have changed.  Are your switches NC (normally closed) and open when triggered?  That would be what that version is expecting.

Printit Industries Model 8.10 fully enclosed CoreXY, Chamber heat
3-SD3's & a Workbench all fully enclosed, RH-Slic3r Win7pro, E3D V6, Volcano & Cyclops Hot End
SSR/500W AC Heated Glass Bed, Linear bearings on SS rods. Direct Drive Y-axis, BulldogXL
Thanks to all for your contributions

7

Re: Endstop reverse logic

Its whatever the rigidbot stock endstops are...i am not sure