Welcome! Log In Create A New Profile

Advanced

Marlin 2.0 firmware, Z_MIN & Sensor triggered

Posted by TRAD 
Marlin 2.0 firmware, Z_MIN & Sensor triggered
November 14, 2022 05:01AM
Hello all,

I have changed the board of my printer (broken the usb connector and after sold it the motherboard start to don't moove correctly x axes and I change it) CRX from 2.1 version to 2.2. The only different is the TCM for silent mode (I have activated #define CREALITY_SILENT_BOARD on firmware to support it). Since before have an external LCD and an old sensor for bed leveling(2019) like EZABL (not original)

I have update the bios but:

After update it, the axis of printer work but if I connect the 2 cable in 1 way I have: triggered (when there is nothing under it) and open if I have the contact. In the other way of cable connection I have always open (with or without something under the sensor). The connection to the board was fike before with the Z Limit switch port.

I have try to modify in all the possible way
Z_MIN_ENDSTOP_INVERTING false // to true (there are 2 lines in this firmware )

and also
#define Z_MIN_PROBE_ENDSTOP_INVERTING false // to true

But nothing change after test it.


Now I'm sure that the problem is the new firmware(with this new board) because the same identically problem there is also with the mechanical microswith of the print that I use before the sensor (I try it to see if circuit of sensor is broken). I try also with the old firmware of 2.1 motherboard and the problem is exactly the same: or always open or working reverse.


Please help me are 2 days that I read this firmware and have only had a big headache.
Thank you

PS: image of the connection to the board (it's standard)
[ibb.co]
Attachments:
open | download - Marlin.rar (59.3 KB)
Re: Marlin 2.0 firmware, Z_MIN & Sensor triggered
November 14, 2022 05:20PM
I have news!

For fate I send to the printer a wrong try.

If I send the firmware with

//#define CUSTOM_PROBE or //#define CRX_OEM

the Z_MIN_ENDSTOP_INVERTING true modify apply and the sensor work correctly!

The problem is only that I can't go on Home Z becouse the commad do the home Z in the position where is it


If I enable #define CUSTOM_PROBE or #define CRX_OEM the problem with the sensor came back!
Re: Marlin 2.0 firmware, Z_MIN & Sensor triggered
November 14, 2022 06:29PM
SOLVED

here the solution

This firmware [support.th3dstudio.com] have a bug

If you have a sensor normally opened you had not to modify the file configuration.h but the file configuration_backhand.h changing

#else // EZABL uses true
#undef Z_MIN_PROBE_ENDSTOP_INVERTING
#define Z_MIN_PROBE_ENDSTOP_INVERTING false //modified true a false
#if DISABLED(CHIRON)
#undef Z_MIN_ENDSTOP_INVERTING
#define Z_MIN_ENDSTOP_INVERTING false //modificato true a false
#endif



becouse all you modified in configuration.h for Z axis in:

#define X_MIN_ENDSTOP_INVERTING false
#define Y_MIN_ENDSTOP_INVERTING false
#define Z_MIN_ENDSTOP_INVERTING false //modificati da false
#define X_MAX_ENDSTOP_INVERTING false //modificati da false
#define Y_MAX_ENDSTOP_INVERTING false //modificati da false
#define Z_MAX_ENDSTOP_INVERTING false //modificati da false
#define Z_MIN_PROBE_ENDSTOP_INVERTING true //modificato da false
#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN

IS OVERWRITTEN IN configuration_backhand.h
Sorry, only registered users may post in this forum.

Click here to login