Print last file
-
Is there a way to configure a Gcode button to print the last printed file?
I dont found anything to that toppic... -
A button in DWC called "print another" shows up after my current print finishes.
-
yeah, but i want to do that with an external gcode button
-
so that i dont have to go to my PC, all my printers are headless
-
@MauriceM said in Print last file:
so that i dont have to go to my PC, all my printers are headless
if so what would you be using to send the required g code to the printer ?
-
i start a print in the morning normally, when it's done i take it out and press a button on the printer so it prints the same gcode right back,
-
@MauriceM said in Print last file:
yeah, but i want to do that with an external gcode button
You can do that if you are running RRF3. Set up a trigger for that button using M581. In the trigger macro file check that the printer is idle by testing state.status, check that job.lastFileName is not null or empty, then send M32 {job.lastFileName}.
-
Thanks, but do i have to insert the name of the file manually?
-
@MauriceM said in Print last file:
i start a print in the morning normally, when it's done i take it out and press a button on the printer so it prints the same gcode right back,
you need to go and read about the g.code DC42 quoted
-
@dc42 said in Print last file:
{job.lastFileName}.
@MauriceM that is from the object model and will be automatically updated to whatever the last job was.
https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware