Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 12090

Can G-code scripts be run automatically on inserting an SD card when using Marlin Firmware?

$
0
0
A colleague posted this question on Stack Exchange 3D Printing (of which I am one of the moderators), and I wondered if there was a solution, or software hack, for this?

Quote

When running Marlin Firmware, is it possible to run G-code scripts/series of commands automatically when you insert the SD card?

I'm running Marlin on a 3D printer board using an ATmega 2560 based board with a reprap discount LCD controller with an SD card slot. I would like to do this without the need to add another computer/board, so native from the board running the Marlin Firmware.

Note that I am not asking about the startup codes upon power on, with the SD already inserted, but rather printing is triggered, on a printer already turned on, just by inserting the SD card. The files that can be run upon start up were mentioned in this answer to a different question:

Quote

With Marlin 1.1.0, you can automatically run a G-Code file when powering on the printer with a SD card already present.

Add a file named auto0.g at the root of your card, containing the following G-Code:

G28 ;Auto-homing
G29 ;Bed leveling


Normally the bed leveling map should be reused for all subsequent prints, until the printer is turned off.

It is possible to provide up to 10 files, from auto0.g to auto9.g.

Just to re-iterate, the answer above is for power on of the printer. However, I am looking for a solution for a printer already switched on and it is the insertion of the SD card which triggers the printing.

Thanks in advance

Viewing all articles
Browse latest Browse all 12090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>