Power On Macro September 26, 2021 10:29AM |
Registered: 2 years ago Posts: 3 |
/** * Startup commands * * Execute certain G-code commands immediately after power-on. */ #define STARTUP_COMMANDS "M810" /** * G-code Macros * * Add G-codes M810-M819 to define and run G-code macros. * Macros are not saved to EEPROM. */ #define GCODE_MACROS #if ENABLED(GCODE_MACROS) #define GCODE_MACROS_SLOTS 1 // Up to 10 may be used #define GCODE_MACROS_SLOT_SIZE 50 // Maximum length of a single macro #define M810 M190 S55|G28|G34|G1 Z200 F1200|G28 #endif
Re: Power On Macro September 26, 2021 04:10PM |
Admin Registered: 13 years ago Posts: 7,013 |
Re: Power On Macro September 26, 2021 04:16PM |
Registered: 2 years ago Posts: 3 |
Thank you, I will give that a try.Quote
Dust
Macros are run time only.
You cannot do a "#define M810 M190 S55|G28|G34|G1 Z200 F1200|G28" It has to be sent
or you need to put this in the STARTUP_COMMANDS separating each startup command with a \n
This should work.
#define STARTUP_COMMANDS "M810 M190 S55|G28|G34|G1 Z200 F1200|G28\nM810"
Re: Power On Macro September 26, 2021 04:29PM |
Registered: 2 years ago Posts: 3 |