Dear forum members!
I am trying to get auto bed leveling for my modified K8200 3D-Printer. (Marlin 1.1.0-RC7)
I have an mechanical z-endstop at the z-min port of my RUMBA controller board and an additional z-probe (capacitive proximity sensor) at the z-max port.
So i went through the configuration.h file and tried to set up all settings correctly.
While compiling i am getting the error-message '#error "A probe needs a pin! Use Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN or Z_MIN_PROBE_PIN."' (SanityCheck.h)
But the probe pin is defined in my "pins_RUMBA.h" file as following:
I tried to simply uncomment this message, but the the error '#error "Z_MIN_PROBE_ENDSTOP requires a Z_MIN_PROBE_PIN in your board's pins_XXXX.h file."' occurs. (SanityCheck.h)
On commenting this out the error ''DEPLOY_PROBE' was not declared in this scope' occurs. (Marlin_main.cpp) on line
Why are there always errors concerning my z-min-probe pin?
Did i do something wrong?
Is there a bug concerning auto bed leveling on using a additional z-probe?
How can i make my source-code working?
My settings in the "configuration.h" file:
Thank you for your answeres in advance,
Florian
I am trying to get auto bed leveling for my modified K8200 3D-Printer. (Marlin 1.1.0-RC7)
I have an mechanical z-endstop at the z-min port of my RUMBA controller board and an additional z-probe (capacitive proximity sensor) at the z-max port.
So i went through the configuration.h file and tried to set up all settings correctly.
While compiling i am getting the error-message '#error "A probe needs a pin! Use Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN or Z_MIN_PROBE_PIN."' (SanityCheck.h)
But the probe pin is defined in my "pins_RUMBA.h" file as following:
#define Z_MIN_PROBE_PIN 32
I tried to simply uncomment this message, but the the error '#error "Z_MIN_PROBE_ENDSTOP requires a Z_MIN_PROBE_PIN in your board's pins_XXXX.h file."' occurs. (SanityCheck.h)
On commenting this out the error ''DEPLOY_PROBE' was not declared in this scope' occurs. (Marlin_main.cpp) on line
if (DEPLOY_PROBE()) return;
Why are there always errors concerning my z-min-probe pin?
Did i do something wrong?
Is there a bug concerning auto bed leveling on using a additional z-probe?
How can i make my source-code working?
My settings in the "configuration.h" file:
... //=========================================================================== //============================= Z Probe Options ============================= //=========================================================================== // // Probe Type // Probes are sensors/switches that are activated / deactivated before/after use. // // Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc. // You must activate one of these to use AUTO_BED_LEVELING_FEATURE below. // // Use M851 to set the Z probe vertical offset from the nozzle. Store with M500. // // A Fix-Mounted Probe either doesn't deploy or needs manual deployment. // For example an inductive probe, or a setup that uses the nozzle to probe. // An inductive probe must be deactivated to go below // its trigger-point if hardware endstops are active. #define FIX_MOUNTED_PROBE // The BLTouch probe emulates a servo probe. //#define BLTOUCH // Z Servo Probe, such as an endstop switch on a rotating arm. //#define Z_ENDSTOP_SERVO_NR 0 //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles // Enable if you have a Z probe mounted on a sled like those designed by Charles Bell. //#define Z_PROBE_SLED //#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like. // Z Probe to nozzle (X,Y) offset, relative to (0, 0). // X and Y offsets must be integers. // // In the following example the X and Y offsets are both positive: // #define X_PROBE_OFFSET_FROM_EXTRUDER 10 // #define Y_PROBE_OFFSET_FROM_EXTRUDER 10 // // +-- BACK ---+ // | | // L | (+) P | R <-- probe (20,20) // E | | I // F | (-) N (+) | G <-- nozzle (10,10) // T | | H // | (-) | T // | | // O-- FRONT --+ // (0,0) #define X_PROBE_OFFSET_FROM_EXTRUDER 52 // X offset: -left +right [of the nozzle] #define Y_PROBE_OFFSET_FROM_EXTRUDER -25 // Y offset: -front +behind [of the nozzle] #define Z_PROBE_OFFSET_FROM_EXTRUDER 0 // Z offset: -below +above [of the nozzle] // X and Y axis travel speed (mm/min) between probes #define XY_PROBE_SPEED 4800 // Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z // Speed for the "accurate" probe of each point #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2) // Use double touch for probing //#define PROBE_DOUBLE_TOUCH // // Allen Key Probe is defined in the Delta example configurations. // // Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine. // With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing. // // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! *** // // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING. // Example: To park the head outside the bed area when homing with G28. // // To use a separate Z probe, your board must define a Z_MIN_PROBE_PIN. // // For a servo-based Z probe, you must set up servo support below, including // NUM_SERVOS, Z_ENDSTOP_SERVO_NR and Z_SERVO_ANGLES. // // - RAMPS 1.3/1.4 boards may be able to use the 5V, GND, and Aux4->D32 pin. // - Use 5V for powered (usu. inductive) sensors. // - Otherwise connect: // - normally-closed switches to GND and D32. // - normally-open switches to 5V and D32. // // Normally-closed switches are advised and are the default. // // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.) // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the // default pin for all RAMPS-based boards. Some other boards map differently. // To set or change the pin for your board, edit the appropriate pins_XXXXX.h file. // // WARNING: // Setting the wrong pin may have unexpected and potentially disastrous consequences. // Use with caution and do your homework. // #define Z_MIN_PROBE_ENDSTOP #define Z_MIN_PROBE_PLUG // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE. // The Z_MIN_PIN will then be used for both Z-homing and probing. //#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN // To use a probe you must enable one of the two options above! // This option disables the use of the Z_MIN_PROBE_PIN // To enable the Z probe pin but disable its use, uncomment the line below. This only affects a // Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above. // If you're using the Z MIN endstop connector for your Z probe, this has no effect. #define DISABLE_Z_MIN_PROBE_ENDSTOP // Enable Z Probe Repeatability test to see how accurate your probe is #define Z_MIN_PROBE_REPEATABILITY_TEST // // Probe Raise options provide clearance for the probe to deploy, stow, and travel. // #define Z_PROBE_DEPLOY_HEIGHT 15 // Raise to make room for the probe to deploy / stow #define Z_PROBE_TRAVEL_HEIGHT 5 // Raise between probing points. // // For M851 give a range for adjusting the Z probe offset // #define Z_PROBE_OFFSET_RANGE_MIN -20 #define Z_PROBE_OFFSET_RANGE_MAX 20 ...and
... //=========================================================================== //============================ Bed Auto Leveling ============================ //=========================================================================== // @section bedlevel #define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line) // Enable this feature to get detailed logging of G28, G29, M48, etc. // Logging is off by default. Enable this logging feature with 'M111 S32'. // NOTE: Requires a huge amount of PROGMEM. //#define DEBUG_LEVELING_FEATURE #if ENABLED(AUTO_BED_LEVELING_FEATURE) // There are 2 different ways to specify probing locations: // // - "grid" mode // Probe several points in a rectangular grid. // You specify the rectangle and the density of sample points. // This mode is preferred because there are more measurements. // // - "3-point" mode // Probe 3 arbitrary points on the bed (that aren't collinear) // You specify the XY coordinates of all 3 points. // Enable this to sample the bed in a grid (least squares solution). // Note: this feature generates 10KB extra code size. #define AUTO_BED_LEVELING_GRID #if ENABLED(AUTO_BED_LEVELING_GRID) #define LEFT_PROBE_BED_POSITION 55 #define RIGHT_PROBE_BED_POSITION 200 #define FRONT_PROBE_BED_POSITION 0 #define BACK_PROBE_BED_POSITION 160 #define MIN_PROBE_EDGE 10 // The Z probe minimum square sides can be no smaller than this. // Set the number of grid points per dimension. // You probably don't need more than 3 (squared=9). #define AUTO_BED_LEVELING_GRID_POINTS 2 #else // !AUTO_BED_LEVELING_GRID // Arbitrary points to probe. // A simple cross-product is used to estimate the plane of the bed. #define ABL_PROBE_PT_1_X 15 #define ABL_PROBE_PT_1_Y 180 #define ABL_PROBE_PT_2_X 15 #define ABL_PROBE_PT_2_Y 20 #define ABL_PROBE_PT_3_X 170 #define ABL_PROBE_PT_3_Y 20 #endif // !AUTO_BED_LEVELING_GRID //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine. // Useful to retract a deployable Z probe. // If you've enabled AUTO_BED_LEVELING_FEATURE and are using the Z Probe for Z Homing, // it is highly recommended you also enable Z_SAFE_HOMING below! #endif // AUTO_BED_LEVELING_FEATURE ...
Thank you for your answeres in advance,
Florian