Run macro from macro?

Basic Information:

Printer Model: Ratrig Vcore 3.1
MCU / Printerboard: Octopus Pror
Not necessaty

Describe your issue:


First of all, greetings and maybe in some countries it will be soon, but congratulate you on the new year in advance…

Can you run another macro in a Klipper macro?
If yes, how would it be done?

The answer is clear… Why do you want to do that? Simply copy the second macro, into the first…

I would be interested in doing it this way, for ease of editing, since this “secondary” macro would contain a position that would change over time, and for simplicity, convenience, mine, I would only have to modify the coordinates in the secondary macro…

Yes you can.

Here an example from my printer.cfg

[output_pin LIGHT_pin]
pin: PE3
pwm: False
value: 0

[gcode_macro M355]
  {% set S = params.S|default(1)|int %}

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.