Welcome! Log In Create A New Profile

Advanced

Adding start codes directly into Marlin

Posted by GameFan 
Adding start codes directly into Marlin
December 22, 2020 06:44AM
Hello,
The title is pretty self-explanatory.
I would like to add a start code into marlin so that it's universal and doesn't need to be added in the slicer.
The reason for this is that I'm not the only one using the printer and some people may not have the correct start code in their slicer.
Do you have an idea how would I have to go about doing this?
Thank you.
Re: Adding start codes directly into Marlin
December 22, 2020 07:38AM
take a look at #define STARTUP_COMMANDS "M17 Z"
In Configuration_adv.h

depends how long you want it....

just separate gcodes with \n

but putting heat up commands here is no a good idea

Edited 1 time(s). Last edit at 12/22/2020 07:58AM by Dust.
Re: Adding start codes directly into Marlin
December 22, 2020 03:50PM
Thank you very much, but is there something like the startup but executing at the start of a print?
Re: Adding start codes directly into Marlin
December 22, 2020 07:53PM
I know that Prusaslicer 2.3.0 rc1 has different Printer and Filament G-Codes shown below maybe this will help.

Printer G-Codes
Start G-Code
End G-Code
Before Layer change G-Code
After Layer change G-Code
Tool change G-Code
Between objects G-Code (for sequential printing)
Color change G-Code
Pause Print G-Code
Template custom G-Code

Filament G-Codes
Start G-Code
End G-Code

Edited 1 time(s). Last edit at 12/22/2020 07:54PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: Adding start codes directly into Marlin
December 23, 2020 02:31AM
RepRapFirmware runs file start.g on the SD card at the start of every print.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login