What is the RatOS way to set a bed mesh based on the filament used or the temp of the bed?

I regularly switch between PLA and ASA and have different meshes saved done at different bed temps. I know in RatOS I can tell it to make a new mesh or not but what if I just want to switch to a different mesh? What's the standard way? I could do it in the slicer but that seem like it would be outside of the RatOS way.
2 Replies
miklschmidt
miklschmidt14mo ago
The only way to do complex bed mesh handling would be to override

[gcode_macro _START_PRINT_BED_MESH]
gcode:
{% set default_profile = printer["gcode_macro RatOS"].bed_mesh_profile|default('ratos') %}
{% if printer["gcode_macro RatOS"].calibrate_bed_mesh|lower == 'true' %}
BED_MESH_CLEAR
BED_MESH_CALIBRATE PROFILE={default_profile}
BED_MESH_PROFILE LOAD={default_profile}
{% elif printer["gcode_macro RatOS"].bed_mesh_profile is defined %}
BED_MESH_CLEAR
BED_MESH_PROFILE LOAD={printer["gcode_macro RatOS"].bed_mesh_profile}
{% endif %}

[gcode_macro _START_PRINT_BED_MESH]
gcode:
{% set default_profile = printer["gcode_macro RatOS"].bed_mesh_profile|default('ratos') %}
{% if printer["gcode_macro RatOS"].calibrate_bed_mesh|lower == 'true' %}
BED_MESH_CLEAR
BED_MESH_CALIBRATE PROFILE={default_profile}
BED_MESH_PROFILE LOAD={default_profile}
{% elif printer["gcode_macro RatOS"].bed_mesh_profile is defined %}
BED_MESH_CLEAR
BED_MESH_PROFILE LOAD={printer["gcode_macro RatOS"].bed_mesh_profile}
{% endif %}
I just speed up probing and bed meshing myself. Takes 30 seconds to do a bed mesh so no point in skipping and risking problems.
correct-apricot
correct-apricot14mo ago
I installed PAM and it basically made my problem obsolete. I'm probing every time. Takes more than 30 seconds for large prints but the quality is worth the wait. Thanks @miklschmidt