vangalvin
Posts: 11
Joined: Sat Aug 20, 2016 6:27 pm

Custom Post/GCode

There are a few modification I have made to my printer, Some are preset up routines that need to be run prior to the hot end firing up and a couple need to be run after a print has finished. There is an option for custom G-Code to be added after the print has finished and you can run a script before the print starts but it seems that you can not set a custom script to run before the hot end and heat bed is started.

Is there any way to create or modify the startup of the printer to allow for these functions to be inserted? What would be awesome is the ability to actually write a kind of custom post processor and be able to alter the advanced functions beyond what can currently be done in the printer setup.
brian442
Posts: 1243
Joined: Mon Nov 28, 2016 5:35 am

Re: Custom Post/GCode

vangalvin wrote:it seems that you can not set a custom script to run before the hot end and heat bed is started.
You can add commands before the extruder and bed start heating. For example

G28 ; home printer before heating
M109 S[extruder0_temperature]
M190 S[bed0_temperature]
G1 Z5 F1800 ; lift Z after heating

If you include the [extruder#_temperature] and/or [bed#_temperature] variables, then the software knows you are heating these things yourself, so it doesn't add the commands anymore (i.e. you can control exactly where they are placed in the starting script).

This is also explained in more detail here:
viewtopic.php?f=8&t=1959
vangalvin
Posts: 11
Joined: Sat Aug 20, 2016 6:27 pm

Re: Custom Post/GCode

brian442 wrote:
vangalvin wrote:it seems that you can not set a custom script to run before the hot end and heat bed is started.
You can add commands before the extruder and bed start heating. For example

G28 ; home printer before heating
M109 S[extruder0_temperature]
M190 S[bed0_temperature]
G1 Z5 F1800 ; lift Z after heating

If you include the [extruder#_temperature] and/or [bed#_temperature] variables, then the software knows you are heating these things yourself, so it doesn't add the commands anymore (i.e. you can control exactly where they are placed in the starting script).

This is also explained in more detail here:
viewtopic.php?f=8&t=1959
Brilliant!! Thank you brian322 I will try that out :)
vangalvin
Posts: 11
Joined: Sat Aug 20, 2016 6:27 pm

Re: Custom Post/GCode

This works perfectly :)

Return to “General Discussion and Tips”