Page 5 of 5

Re: Z home with autolevel

Posted: Sat Jul 23, 2016 6:50 pm
by qdshombre
no one? no technician available? Tuesday, it's been a month that I'm out ??? !!!

Re: Z home with autolevel

Posted: Mon Jul 25, 2016 10:48 pm
by qdshombre
maybe stop Z min and using Z max? how to change? thank you

Re: Z home with autolevel

Posted: Tue Jul 26, 2016 6:00 pm
by William
qdshombre wrote:maybe stop Z min and using Z max? how to change? thank you
Hi,
Sorry for the late reply.
1.Open you firmware file,and find "pins.h",then open the file with your WordPad on your PC:
QQ截图20160726175312.jpg
QQ截图20160726175312.jpg (77.11 KiB) Viewed 7941 times
QQ截图20160726175609.jpg
QQ截图20160726175609.jpg (96.77 KiB) Viewed 7941 times
2.Then modify the codes of red area like the following shows:
#ifdef Z_STOP_PIN
#if Z_HOME_DIR < 0
#define Z_MIN_PIN Z_STOP_PIN
#define Z_MAX_PIN -1
#else
#define Z_MIN_PIN -1
#define Z_MAX_PIN Z_STOP_PIN
#endif
#endif

#ifdef DISABLE_MAX_ENDSTOPS
#undef X_MAX_PIN
#undef Y_MAX_PIN
#undef Z_MAX_PIN
#define X_MAX_PIN -1
#define Y_MAX_PIN -1
#define Z_MAX_PIN -1
#endif

#ifdef DISABLE_MIN_ENDSTOPS
#undef X_MIN_PIN
#undef Y_MIN_PIN
#undef Z_MIN_PIN
#define X_MIN_PIN -1
#define Y_MIN_PIN -1
#define Z_MIN_PIN -1
#endif

to this:
#ifdef Z_STOP_PIN
#if Z_HOME_DIR < 0
#defineZ_MIN_PIN -1
#define Z_MAX_PIN Z_STOP_PIN
#else
#define Z_MIN_PIN Z_STOP_PIN
#define Z_MAX_PIN -1
#endif
#endif
#ifdef DISABLE_MAX_ENDSTOPS
#undef X_MAX_PIN
#undef Y_MAX_PIN
#undef Z_MAX_PIN -1
#define X_MAX_PIN -1
#define Y_MAX_PIN -1
#define Z_MAX_PIN
#endif

#ifdef DISABLE_MIN_ENDSTOPS
#undef X_MIN_PIN
#undef Y_MIN_PIN
#undef Z_MIN_PIN
#define X_MIN_PIN -1
#define Y_MIN_PIN -1
#define Z_MIN_PIN
#endif

You can have a try.
Good Luck

Re: Z home with autolevel

Posted: Tue Jul 26, 2016 6:08 pm
by qdshombre
thanks, I'll try. my sensor is NPN NO, it's okay?

Re: Z home with autolevel

Posted: Wed Jul 27, 2016 5:11 pm
by Toy
qdshombre wrote:thanks, I'll try. my sensor is NPN NO, it's okay?
It's okay since it's a NO sensor.

Re: Z home with autolevel

Posted: Thu Jul 28, 2016 6:04 pm
by qdshombre
NPN PNP (Copier).jpg
NPN PNP (Copier).jpg (15.03 KiB) Viewed 8296 times
Toy wrote:Il est correct car il est un capteur de NO.
ok, but mine is NPN but it is connected as a PNP on the attached model. Not a problem?