Welcome to mirror list, hosted at ThFree Co, Russian Federation.

M810-M819.md « _gcode - github.com/MarlinFirmware/MarlinDocumentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6454039670e9fa8d56007f754db69a34d51d5ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
tag: m0810
title: G-code macros
brief: Set/execute one of ten G-code macros
author: Speaka

codes: [ M810, M811, M812, M813, M814, M815, M816, M817, M818, M819 ]

requires: GCODE_MACROS

notes:
  - Requires `GCODE_MACROS`.

parameters:
  -
    tag: string
    optional: true
    description: Set Macro to the given commands, separated by the pipe character.

example:
  -
    pre: Define Macro 5 to do some moves and make a beep
    code:
      - M815 G0 X0 Y0|G0 Z10|M300 S440 P50
  -
    pre: Run Macro 5
    code:
      - 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 ('`|`').