Convenient way to switch probing bed mesh before print on and off

Hi, for small prints I don't need to probe the entire bed before starting the print. So I was looking for a way to get a switch on the dashboard to turn this on and off without editing printer.cfg each time but I did not find anything about this. Just like I can turn the filament sensor on and off. Is this possible?
6 Replies
Helge Keck
Helge Keck2y ago
Turn on SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=calibrate_bed_mesh VALUE=True Turn off SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=calibrate_bed_mesh VALUE=False . you can execute these commands in the mainsail console you can also create a macro button for it if you want
beejayf
beejayf2y ago
That is exactly what I was looking for (if something like [variable_switch calibrate_bed_mesh] options: true, false Is not possible) I tried to put this into a gcode macro - but I appear to have messed up the syntax for this...
Helge Keck
Helge Keck2y ago
[gcode_macro A_NAME] gcode: A_COMMAND
beejayf
beejayf2y ago
Yes - thanks - but that's exactly what I tried: [gcode_macro Bed_Mesh_ON] gcode: SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=calibrate_bed_mesh VALUE=True But the SET_GCODE_VARIABLE line instantly turns red in the editor...
Helge Keck
Helge Keck2y ago
the editor sucks, ignore the colors
beejayf
beejayf2y ago
True... This worked: gcode_macro Bed_Mesh_ON] gcode: SET_GCODE_VARIABLE MACRO="RatOS" VARIABLE="calibrate_bed_mesh" VALUE=True {action_respond_info("Bed Mesh Probing: ON")}
Want results from more Discord servers?
Add your server