Welcome! Log In Create A New Profile

Advanced

End stop trigger questions

Posted by av8r1 
End stop trigger questions
August 12, 2016 12:30AM
So I'm preparing for an auto bed leveling sensor to replace my Z axis end stop. Right now, with no modifications, I'm using the M119 command to see which end stops are triggered. When none are touched, they all read OPEN. With the Y and Z axes, when the switches are depressed, both minimum and maximum end stop values read TRIGGERED. The printer seems to behave correctly, so it hasn't been a problem this whole time. The X axis doesn't do this. The X axis is a maximum stop, the others are minimums. Is this because not all the end stop ports are populated?
Re: End stop trigger questions
August 15, 2016 01:36PM
Yes, you have 2 states to think of
The physical hardware, the endstops are Normally Closed. When pressed they Open
The firmware side, the endstops report Open. When pressed they are Triggered

With that state, if you don't have an endstop plugged in, it should report Triggered
They're this way because if a wire breaks or something else happens, then the thing won't try to tear itself apart when homed.

Typically you'd disable the ones you aren't going to use by commenting out the corresponding lines in your Configuration.h

//#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#define USE_XMAX_PLUG
//#define USE_YMAX_PLUG
//#define USE_ZMAX_PLUG

These should be like this:
#define X_HOME_DIR 1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1

Your X endstop should be on the right side, Y enstop at the back, and Z at the bottom

These should all be false, unless you're using Normally Open switches

#define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.

Edited 1 time(s). Last edit at 08/15/2016 01:38PM by FA-MAS.
Sorry, only registered users may post in this forum.

Click here to login