Make Z_PROBE a Z_MIN_PROBE (PR#65)
Currently we use the probe exclusively as a device to find the build platform(bed). For the currently supported setups this means, we use it as a additional min-endstop. A triggered when not deployed probe disturbs the homing process for max-endstops. Rename ENDSTOPPULLUP_ZPROBE to ENDSTOPPULLUP_ZMIN_PROBE Rename Z_PROBE_ENDSTOP_INVERTING to Z_MIN_PROBE_ENDSTOP_INVERTING Rename Z_PROBE_ENDSTOP to Z_MIN_PROBE_ENDSTOP Rename DISABLE_Z_PROBE_ENDSTOP to DISABLE_Z_MIN_PROBE_ENDSTOP Rename Z_PROBE_REPEATABILITY_TEST to Z_MIN_PROBE_REPEATABILITY_TEST Rename Z_PROBE_ENDSTOP to Z_MIN_PROBE_ENDSTOP Adjust comments accordingly Remove Z_MAX check for the probe in update_endstops(). Using an delta related idea of @clefranc from #61, extended to the general change for all setups. Tested with Prusa i3, max-z-endstop and permanently triggered z-probe. Worked for @clefranc's delta.
This commit is contained in:
		
				
					committed by
					
						 Richard Wackerbarth
						Richard Wackerbarth
					
				
			
			
				
	
			
			
			
						parent
						
							8d23c4230e
						
					
				
				
					commit
					e2d69f66b2
				
			| @@ -319,15 +319,15 @@ const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o | ||||
| const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. | ||||
| const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. | ||||
| const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. | ||||
| const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop. | ||||
| const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop. | ||||
| #define DISABLE_MAX_ENDSTOPS | ||||
| //#define DISABLE_MIN_ENDSTOPS | ||||
|  | ||||
| // If you want to enable the Z Probe pin, but disable its use, uncomment the line below. | ||||
| // This only affects a Z Probe Endstop if you have separate Z min endstop as well and have | ||||
| // activated Z_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z Probe, | ||||
| // activated Z_MIN_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z Probe, | ||||
| // this has no effect. | ||||
| //#define DISABLE_Z_PROBE_ENDSTOP | ||||
| //#define DISABLE_Z_MIN_PROBE_ENDSTOP | ||||
|  | ||||
| // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 | ||||
| // :{0:'Low',1:'High'} | ||||
| @@ -425,7 +425,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic | ||||
| // @section bedlevel | ||||
|  | ||||
| //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line) | ||||
| //#define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled. | ||||
| //#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled. | ||||
|  | ||||
| #if ENABLED(ENABLE_AUTO_BED_LEVELING) | ||||
|  | ||||
| @@ -509,18 +509,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic | ||||
|   #endif | ||||
|  | ||||
|   // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop. | ||||
|   // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below. | ||||
|   // If you would like to use both a Z PROBE and a Z MIN endstop together , uncomment #define Z_MIN_PROBE_ENDSTOP and read the instructions below. | ||||
|   // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28. | ||||
|   // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print. | ||||
|   // To use a separate Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board. | ||||
|   // To use a separate Z PROBE endstop, you must have a Z_MIN_PROBE_PIN defined in the pins.h file for your control board. | ||||
|   // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, Z_ENDSTOP_SERVO_NR and SERVO_ENDSTOP_ANGLES in the R/C Servo below. | ||||
|   // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32 | ||||
|   // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed. | ||||
|   // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works. | ||||
|   // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_MIN_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works. | ||||
|   // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file. | ||||
|   // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework. | ||||
|  | ||||
|   //#define Z_PROBE_ENDSTOP | ||||
|   //#define Z_MIN_PROBE_ENDSTOP | ||||
|  | ||||
| #endif // ENABLE_AUTO_BED_LEVELING | ||||
|  | ||||
|   | ||||
| @@ -303,7 +303,7 @@ const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o | ||||
| const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. | ||||
| const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. | ||||
| const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. | ||||
| const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop. | ||||
| const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop. | ||||
| #define DISABLE_MAX_ENDSTOPS | ||||
| //#define DISABLE_MIN_ENDSTOPS | ||||
|  | ||||
| @@ -382,7 +382,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic | ||||
| //=========================================================================== | ||||
|  | ||||
| //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line) | ||||
| //#define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled. | ||||
| //#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled. | ||||
|  | ||||
| #if ENABLED(ENABLE_AUTO_BED_LEVELING) | ||||
|  | ||||
| @@ -470,18 +470,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic | ||||
|   #endif | ||||
|  | ||||
|   // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop. | ||||
|   // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below. | ||||
|   // If you would like to use both a Z PROBE and a Z MIN endstop together , uncomment #define Z_MIN_PROBE_ENDSTOP and read the instructions below. | ||||
|   // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28. | ||||
|   // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print. | ||||
|   // To use a separate Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board. | ||||
|   // To use a separate Z PROBE endstop, you must have a Z_MIN_PROBE_PIN defined in the pins.h file for your control board. | ||||
|   // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, Z_ENDSTOP_SERVO_NR and SERVO_ENDSTOP_ANGLES in the R/C Servo below. | ||||
|   // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32 | ||||
|   // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed. | ||||
|   // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works. | ||||
|   // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_MIN_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works. | ||||
|   // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file. | ||||
|   // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework. | ||||
|  | ||||
|   //#define Z_PROBE_ENDSTOP | ||||
|   //#define Z_MIN_PROBE_ENDSTOP | ||||
|  | ||||
| #endif // ENABLE_AUTO_BED_LEVELING | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user