Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endstop is always trigged #188

Open
set4up opened this issue Oct 25, 2018 · 10 comments
Open

Endstop is always trigged #188

set4up opened this issue Oct 25, 2018 · 10 comments

Comments

@set4up
Copy link

set4up commented Oct 25, 2018

Hey. I tried to configure the limit switches, but they are always read by the command M119 TRIGGED. I changed the settings in different ways to find when they earn correctly. Inversion does not help. By pressing the hand on the switch reads OPENED. In the firmware marlin and repeater everything works. Please help.

@MagoKimbra
Copy link
Member

This parameters is saved in eeprom in MK4duo you must change with command gcode and saved in eeprom or reset eeprom if you change configuration...

@set4up
Copy link
Author

set4up commented Oct 25, 2018

Thank. I'll try

@set4up
Copy link
Author

set4up commented Oct 25, 2018

Unfortunately it did not help. I reset eeprom with the command m502

@MagoKimbra
Copy link
Member

Ok.. change the pullup valor or logic with gcode and try...

@set4up
Copy link
Author

set4up commented Oct 25, 2018

I do not know how to do it

@set4up
Copy link
Author

set4up commented Oct 25, 2018

#define ENDSTOPPULLUPS

#if DISABLED(ENDSTOPPULLUPS)
// fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
//#define ENDSTOPPULLUP_XMIN
//#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
//#define ENDSTOPPULLUP_Z2MIN
//#define ENDSTOPPULLUP_Z3MIN
//#define ENDSTOPPULLUP_Z4MIN
//#define ENDSTOPPULLUP_XMAX
//#define ENDSTOPPULLUP_YMAX
//#define ENDSTOPPULLUP_ZMAX
//#define ENDSTOPPULLUP_Z2MAX
//#define ENDSTOPPULLUP_Z3MAX
//#define ENDSTOPPULLUP_Z4MAX
//#define ENDSTOPPULLUP_ZPROBE
//#define ENDSTOPPULLUP_EMIN
#endif
/*****************************************************************************************/

/*****************************************************************************************
************************************ Endstops logic *************************************


  •                                                                                   *
    
  • Mechanical endstop with COM to ground and NC to Signal *
  • uses "false" here (most common setup). *
  •                                                                                   *
    

*****************************************************************************************/
#define X_MIN_ENDSTOP_LOGIC false // set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_LOGIC false // set to true to invert the logic of the endstop.
#define Z2_MIN_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Z3_MIN_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Z4_MIN_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Z2_MAX_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Z3_MAX_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Z4_MAX_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.
#define Z_PROBE_ENDSTOP_LOGIC true // set to true to invert the logic of the probe.
#define E_MIN_ENDSTOP_LOGIC true // set to true to invert the logic of the endstop.

I specifically set up different endstop in different ways to see which setting helped

@MagoKimbra
Copy link
Member

Yes ok but this does not help me, I do not know what endstop you have and how they are connected. Try using the gcode commands you do it in real time without having to redo each time ... The list of gcode commands can be found here on github or inside the .ino file.
Anyway, they are M123 and M124

@set4up
Copy link
Author

set4up commented Oct 26, 2018

Thank. I'll try in the evening

@set4up
Copy link
Author

set4up commented Oct 26, 2018

I found a solution:
The Endstop settings in Configuration_Cartesian.x are not affected. It needs to be configured in Configuration_O. After that it worked.
Conducted an experiment:

  1. Commenting out the Endstop settings in Configuration_Overall.x. The compiler gave an error, so this setting is taken into account.
  2. Commented out the Endstop settings in Configuration_Cartesian.x and everything compiled and works.
    Conclusion: the Endstop settings (at least) are not taken into account when compiling the sketch.

@set4up
Copy link
Author

set4up commented Oct 26, 2018

Everything worked out. You just need to comment out everything in the Configuration_Overall file and then the rest of the files will work ..
I'm going to try to print

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants