Skip to content

Custom start/end gcode per-material? #27

Description

@qwertymodo

Is there any way that this plugin could inject start/end gcode blocks that can be customized per material? My primary use case for this is that the bed mesh for a lot of cheap beds will change significantly as you heat up the bed, so it would be really convenient to be able to store multiple meshes (a function that Marlin does support) corresponding to different bed temperatures, and then restore the mesh corresponding to the correct bed temperature using G29 L. As it is, there's no real way to easily switch the mesh index when you change materials (i.e. change bed temperature), so the only real solution is to just use a single stored mesh, and re-generate the whole thing any time you change bed temperature.

Example bed mesh renders of the exact same bed, the only difference is the bed temperature.

25C:
Octopi_2023-03-28_17-00-17_25C

65C:
Octopi_2023-03-28_17-06-21_65C

85C:
Octopi_2023-03-28_17-22-50_85C

115C:
Octopi_2023-03-28_17-39-11_115C

Also, ideally, it would be nice to be able to specify whether the injected blocks occur before or after the start/end block defined for the machine, because in some cases it might be useful to have it occur before, and in other cases it might be better to have it occur after.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions