Page 1 of 1

Custom Post/GCode

Posted: Fri Sep 15, 2017 10:38 pm
by vangalvin
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.

Re: Custom Post/GCode

Posted: Sat Sep 16, 2017 5:37 am
by brian442
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

Re: Custom Post/GCode

Posted: Sun Sep 17, 2017 1:30 am
by vangalvin
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 :)

Re: Custom Post/GCode

Posted: Sat Sep 23, 2017 11:57 pm
by vangalvin
This works perfectly :)