flexi-bot/docs/marlin/_gcode/M810-M819.md
2023-09-05 20:38:49 +02:00

798 B

tag title brief author codes requires notes parameters example
m0810 G-code macros Set/execute one of ten G-code macros Speaka
M810
M811
M812
M813
M814
M815
M816
M817
M818
M819
GCODE_MACROS
Requires `GCODE_MACROS`.
tag optional description
string true Set Macro to the given commands, separated by the pipe character.
pre code
Define Macro 5 to do some moves and make a beep
M815 G0 X0 Y0|G0 Z10|M300 S440 P50
pre code
Run Macro 5
M815

Use the M810-M819 commands to set and execute 10 distinct G-code "macros." Put anything after the command to define its macro. To run the macro just send M810-M819 by itself. Multiple commands in one macro are separated by the pipe character ('|').