Macros - Longus/FluidNC GitHub Wiki

Macros

Macros can be used to execute some commands with the click of a button. These commands can be most gcode and FluidNC commands including running a file from the SD card. If you have more than one command, separate them with an ampersand "&".

Examples

  • G90&G53G0Z-1&G0X0Y0 This moves the Z to machine space -1 (usually near the top) and then move to work space X0 Y0

n0: & n1: These are legacy features from Grbl. These run when the firmware enters idle for the first time.

macro0 through macro3 This is the text of the macro that will run when the associated control switch is activated. These switches must not be in the active state at startup. You need to deactivate the switch before you clear the alarm.

macros:
  n0:
  n1:
  macro0: G90&G53G0Z-1&G0X0Y0
  macro1: $SD/Run=drill.nc
  macro2:
  macro3: