Turge08 / print_area_bed_mesh

Create bed mesh for print area only
209 stars 40 forks source link

Print Area Bed Mesh

Description

Credit

Complete credit goes to ChipCE (https://gist.github.com/ChipCE/95fdbd3c2f3a064397f9610f915f7d02) for the idea and sample code. I completely rewrote the macro to be more dynamic and for some added features.

Features:

Disclaimer

This is currently in development. While it works on my 2 printers, it's impossible to account for everyone's various config. When first implementing this, be prepared to click the "Emergency Stop" button if it tries to probe off the bed.

Change Log

Setup

1. Download and install the macro

SSH into the Pi and run the following commands:

cd ~
git clone https://github.com/Turge08/print_area_bed_mesh.git
~/print_area_bed_mesh/install.sh

2. Include macro in your printer.cfg

Through Fluidd/Mainsail, edit printer.cfg file and add the following line at the top of your printer.cfg:

[include print_area_bed_mesh.cfg]

3. Update Moonraker for easy updating

From Fluidd/Mainsail, edit moonraker.conf (in the same folder as your printer.cfg file) and add:

[update_manager print_area_bed_mesh]
type: git_repo
path: ~/print_area_bed_mesh
origin: https://github.com/Turge08/print_area_bed_mesh.git
is_system_service: False

NOTE: You must perform step #1 at least once or Moonraker will generate an error.

4. Option 1 - Modify "start_print" macro in your printer.cfg

Examples:

*(Cura slicer plugin) To make the macro to work in Cura slicer, you need to install the post process plugin by frankbags - In cura menu Help -> Show configuration folder. - Copy the python script from the above link in to scripts folder. - Restart Cura - In cura menu Extensions -> Post processing and select Mesh Print Size

5. Option 2 - Modify your printer's start g-code in your slicer:

Examples: