#Octoprint to Mainsail - Error actions - Probe samples exceed samples_tolerance

4 messages · Page 1 of 1 (latest)

fathom canyon
#

I am trying out Mainsail unwilling due to compatibility issues around happy hare. Regardless, when I have Probe samples exceed samples_tolerance failures in mainsail the toolhead just stops, and since i am running voron tap, thats a problem. with Octoprint when it saw a cancel / abort action, it would trigger a gcode to run, which i had coded to lift the toolhead and move to my safe zone. I do not see this functionality in mainsail so am looking at klipper macros / coding to do this.

Oddly enough I do have cancel_print defined from happy hare, but its not triggering these actions.

is this a "sucks to be you" issue when using mainsail, or am i missing something?

rename_existing: BASE_CANCEL_PRINT
description: Cancel print
gcode:
    {% set vars = printer['gcode_macro _MMU_CLIENT_VARS'] %}
    {% set reset_ttg_on_cancel = vars.reset_ttg_on_cancel|default('true')|lower == 'true' %}
    {% set unload_tool_on_cancel = vars.unload_tool_on_cancel|default('false')|lower == 'true' %}

    MMU_LOG MSG="Print cancelled!"
    {% if not printer.mmu.enabled %}
        _MMU_PARK OPERATION="cancel"
    {% else %}
        {% if unload_tool_on_cancel %}
            MMU_LOG MSG="Ejecting filament on print cancel"
            MMU_UNLOAD RESTORE=0
        {% endif %}
        {% if reset_ttg_on_cancel %}
            MMU_TTG_MAP RESET=1 QUIET=1
        {% endif %}
    {% endif %}
    _MMU_CLEAR_POSITION
    TURN_OFF_HEATERS
    M107 ; Fan off
    SET_PAUSE_NEXT_LAYER ENABLE=0
    SET_PAUSE_AT_LAYER ENABLE=0 LAYER=0
    {vars.user_cancel_extension|default("")}
    BASE_CANCEL_PRINT
ashen mica
#

You have a macro called "cancel_print". Cool. Do you have anything configured to run that macro?

#

(Typically it would be run from the virtual_sdcard on_error_gcode)

fathom canyon
#

Thanks, looked like i commented that out and had forgotten about it

path: ~/printer_data/gcodes
#on_error_gcode: CANCEL_PRINT```