#Linking mainsail toolhead buttons

4 messages · Page 1 of 1 (latest)

split relic
#

Is there any way to link "home all" and home XY" buttons within Mainsail to direct to G28.1 and CG28 commands? After setting up sensorless_homing commands, I am noticing that they are not being used when I press the buttons within the "Toolhead" section of Mainsail.

neat tulipBOT
#

Ahoi @split relic!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

split relic
#
gcode =
    # {% if printer.toolhead.homed_axes == "xyz" %}
    {% if 'x' in printer.toolhead.homed_axes and 'y' in printer.toolhead.homed_axes %}
        M118 Printer is already homed
    {% else %}
        STATUS_HOMING
        M118 Printer needs homed...
        _SENSORLESS_HOME_X
        _SENSORLESS_HOME_Y
        STATUS_READY
        
    {% endif %}```
#
rename_existing: G28.1
gcode:
  SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=True # Uncomment this if using a KNOMI and then remove the G28 macro from the KNOMI.cfg
 G28.1 {rawparams}
 {% if not rawparams or (rawparams and 'Z' in rawparams) %}
   PROBE
   SET_Z_FROM_PROBE
 {% endif %}
  SET_GCODE_VARIABLE MACRO=_KNOMI_STATUS VARIABLE=homing VALUE=False # Uncomment this if using a KNOMI and then remove the G28 macro from the KNOMI.cfg```