Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Adaptive Bed Mesh #4

Open
garethky opened this issue Nov 24, 2023 · 2 comments
Open

Support Adaptive Bed Mesh #4

garethky opened this issue Nov 24, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed testers wanted Needs to be tested by someone in the community

Comments

@garethky
Copy link
Owner

garethky commented Nov 24, 2023

Adaptive bed mesh is a feature that allows the printer to only mesh the print area. If the user doesn't follow the directions and place the test object into the middle of the bed, the bed mesh area and the print area wont align.

in Prusa firmwares M555 is the command that does this:

; set print area
M555 X14.6 Y38 W150.8 H104

Which comes from this template:

; set print area
M555 X{first_layer_print_min[0]} Y{first_layer_print_min[1]} W{(first_layer_print_max[0]) - (first_layer_print_min[0])} H{(first_layer_print_max[1]) - (first_layer_print_min[1])}

This might be fixable via edits to the M555 line in the case of Prusa firmwares.

In the klipper community this is also a common add-on to a printers config. There are custom macros and plugins that do this. The coordinates usually gets communicated to the printer via the START_PRINT macro as arguments.

This is harder to fix.

  • The plugin uses exclude objects. The only way to detect this is to look for EXCLUDE_OBJECT in the output GCode and then include this in the output.
  • Non-Plugin versions use parameters passed to the PRINT_START, this requires re-processing the start GCode.
@garethky garethky added the bug Something isn't working label Nov 24, 2023
@garethky garethky self-assigned this Nov 24, 2023
@garethky garethky added the enhancement New feature or request label Nov 24, 2023
garethky added a commit that referenced this issue Nov 25, 2023
* re-evaluation of the start_gcode to solve for injecting the filament temperature and print area. #1, #4
* addition of object commands for klipper used by adaptive bed mesh. #4
* Support for altering M555 in Prusa gcode #4

Also changed when the start and end gcode get built so exceptions will trigger the error box in the UI.
@garethky
Copy link
Owner Author

This should work on Prusa and Klipper machines now.

@garethky
Copy link
Owner Author

The exclude object functionality needs testing, I don't have this set up on my klipper machine right now.

@garethky garethky added help wanted Extra attention is needed testers wanted Needs to be tested by someone in the community and removed bug Something isn't working labels Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed testers wanted Needs to be tested by someone in the community
Projects
None yet
Development

No branches or pull requests

1 participant