Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to call variable_user_park_move_macro on restore position #623

Merged
merged 4 commits into from
Feb 10, 2025

Conversation

vajonam
Copy link
Contributor

@vajonam vajonam commented Feb 6, 2025

add ability to call variable_user_park_move_macro on restore position.

when restoring the from parked postion the same macro is called but passed a RESTORE=1 parameter, along with co-ordinates to restore to YOUR_MOVE_MACRO RESTORE=1 X=<x_coord> Y=<y_coord> F=<speed>

example of macro

[gcode_macro _MMU_USER_PARK]
description: always move to X74 first to clear brush then move in the Y direction, followed by the X direction
gcode:
  {% if params.RESTORE == 1 %}
    G1 X74 F{params.F}
    G1 Y{params.Y} F{params.F}
    G1 X{params.X} F{params.F}
  {% else %}
    G1 X74 F{params.F}
    G1 Y{params.Y} F{params.F}
    G1 X{params.X} F{params.F}
  {% endif %}

@moggieuk moggieuk merged commit 8390151 into moggieuk:main Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants