MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.26k stars 19.23k forks source link

Cura Gcode for Auto level plunger #12546

Closed fiegener closed 5 years ago

fiegener commented 5 years ago

I have a machine that has an auto level plunger that is raised and lowered by the Z platform. After a print the machine will return to this location and lower the plunger for a bed reading on the next print. At the next print it will go out and take a measurement and then return to raise the plunger in storage position. In Cura how do I tell this I have G28 (home) and g29 (level) but I need to add the raise before printing after G29. My auto level sequence in Config H is below Thanks.

Configuration.h ```cpp #define AUTO_BED_LEVELING_BILINEAR /** * Enable detailed logging of G28, G29, M48, etc. * Turn on with the command 'M111 S32'. * NOTE: Requires a lot of PROGMEM! */ //#define DEBUG_LEVELING_FEATURE #if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR) // Set the number of grid points per dimension. #define ABL_GRID_POINTS_X 3 //3 #define ABL_GRID_POINTS_Y ABL_GRID_POINTS_X // Set the boundaries for probing (where the probe can reach). #define LEFT_PROBE_BED_POSITION 20 #define RIGHT_PROBE_BED_POSITION 190 #define FRONT_PROBE_BED_POSITION 20 #define BACK_PROBE_BED_POSITION 200 // The Z probe minimum outer margin (to validate G29 parameters). #define MIN_PROBE_EDGE 10 //10 // Probe along the Y axis, advancing X after each column //#define PROBE_Y_FIRST #if ENABLED(AUTO_BED_LEVELING_BILINEAR) // Gradually reduce leveling correction until a set height is reached, // at which point movement will be level to the machine's XY plane. // The height can be set with M420 Z #define ENABLE_LEVELING_FADE_HEIGHT // // Experimental Subdivision of the grid by Catmull-Rom method. // Synthesizes intermediate points to produce a more detailed mesh. // #define ABL_BILINEAR_SUBDIVISION #if ENABLED(ABL_BILINEAR_SUBDIVISION) // Number of subdivisions between probe points #define BILINEAR_SUBDIVISIONS 3 #endif #endif #elif ENABLED(AUTO_BED_LEVELING_3POINT) // 3 arbitrary points to probe. // A simple cross-product is used to estimate the plane of the bed. #define ABL_PROBE_PT_1_X 29 //-77 #define ABL_PROBE_PT_1_Y 215 #define ABL_PROBE_PT_2_X 210 #define ABL_PROBE_PT_2_Y 4 //-104 #define ABL_PROBE_PT_3_X 208 #define ABL_PROBE_PT_3_Y 215 #endif /** * Commands to execute at the end of G29 probing. * Useful to retract or move the Z probe out of the way. */ //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // @section homing // The center of the bed is at (X=0, Y=0) //#define BED_CENTER_AT_0_0 // Manually set the home position. Leave these undefined for automatic settings. // For DELTA this is the top-center of the Cartesian print volume. //#define MANUAL_X_HOME_POS 0 //#define MANUAL_Y_HOME_POS 0 //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area. // // With this feature enabled: // // - Allow Z homing only after X and Y homing AND stepper drivers still enabled. // - If stepper drivers time out, it will need X and Y homing again before Z homing. // - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28). // - Prevent Z homing when the Z probe is outside bed area. //#define Z_SAFE_HOMING #if ENABLED(Z_SAFE_HOMING) #define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) // X point for Z homing when homing all axis (G28). #define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2) // Y point for Z homing when homing all axis (G28). #endif // Homing speeds (mm/m) #define HOMING_FEEDRATE_XY (50*60) #define HOMING_FEEDRATE_Z (15*60) //10*60 ```
fiegener commented 5 years ago

Also anyone with some solid Marlin and Cura experience looking for some side cash to support a project, please let me know.

AnHardt commented 5 years ago

Looks as if

/**
 * Commands to execute at the end of G29 probing.
 * Useful to retract or move the Z probe out of the way.
 */
//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"

could be what you are looking for.

fiegener commented 5 years ago

Thanks AnHardt. I'll take a look at that. I am not a programmer so this is a bit foreign for me. On the Cura Start G code would it look something like this.

G28: Home all
G29: Auto level
G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10
M109 S{print_temperature}    ;set nozzle temperature, and wait for it heat up
G1 X125 Z10 F2400
G92 E0
G1 X125 Z0.5 F400
G1 X100 Z0.5 E20 F360
G92 E0.0
AnHardt commented 5 years ago

Nonsens. Leave the Cura sequence as it is, but fill the needed moves to stow your probe in the Z_PROBE_END_SCRIPT and uncomment it.

fiegener commented 5 years ago

Sorry, I don’t follow. Can you show me what that would look like?

AnHardt commented 5 years ago

Try to stow your printers probe with manual moves. Write down the sequence into the script.

boelle commented 5 years ago

@fiegener

This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

After seeking help from the community, if the consensus points to to a bug in Marlin, then you should post a bug report. Before posting a bug report please test with bugfix-2.0.x to check if problem is gone

boelle commented 5 years ago

@thinkyhead think we can close this one

fiegener commented 5 years ago

Sure.

Thanks.

John

John Fiegener tool., Inc. 4 Beringer Way Marblehead, MA 01945 781.631.7500 x118 617.413.0474 m john@toolinc.com www.toolinc.com

On Mar 13, 2019, at 3:07 PM, Bo Herrmannsen notifications@github.com wrote:

@thinkyhead https://github.com/thinkyhead think we can close this one

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/12546#issuecomment-472563536, or mute the thread https://github.com/notifications/unsubscribe-auth/AdHg8tOnxYnd6k2GMGN9yjGVbhs4yW0lks5vWUxvgaJpZM4Y2dkh.

boelle commented 5 years ago

@fiegener or you can click the close button below

fiegener commented 5 years ago

Sorry new to this. Clicking now.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.