MKFirmware / MarlinKimbra

📟 MK 3D Printer Firmware for Arduino
52 stars 39 forks source link

Endstop is always trigged #188

Open set4up opened 6 years ago

set4up commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Thank. I'll try

set4up commented 6 years ago

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

MagoKimbra commented 6 years ago

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

set4up commented 6 years ago

I do not know how to do it

set4up commented 6 years ago

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 *


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

MagoKimbra commented 6 years ago

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 commented 6 years ago

Thank. I'll try in the evening

set4up commented 6 years ago

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 commented 6 years ago

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