Macro function documentation

Is there complete documentation for creating macros? For example, is it possible to start an external program with a macro?

The macros are just GCode sent exactly as entered to the laser. What is it that you are hoping to do?

In a video I saw that you can use the $ parameter to change Lightburn’s settings.
I would like to have the possibility of starting a small conversion program from the macro that I write myself in order to change a gcode file.
The result could look like this, for example.

G21 ; set units to millimeters
G90 ; use absolute coordinates
M82 ; use absolute distances for extrusion
G92 E0
G0 X1.308 Y-16.437
G1 F1200
G1 X1.308 Y-16.437 E0.3387
G1 X1.467 Y-16.255 E0.67468
G1 X1.602 Y-16.054 E1.01076
G1 X1.709 Y-15.837 E1.34685
G1 X1.786 Y-15.608 E1.68291
G1 X1.834 Y-15.371 E2.01890
G1 X1.850 Y-15.128 E2.35637
G1 X1.840 Y-14.932 E2.62907

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