Speaka

M810-M819 - G-code macros

Set/execute one of ten G-code macros GCODE_MACROS

Description

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 (‘|’).

Usage

M810 [string]
M811 [string]
M812 [string]
M813 [string]
M814 [string]
M815 [string]
M816 [string]
M817 [string]
M818 [string]
M819 [string]

Parameters

[string]

Set Macro to the given commands, separated by the pipe character.

Examples

Define Macro 5 to do some moves and make a beep

M815 G0 X0 Y0|G0 Z10|M300 S440 P50

Run Macro 5

M815