Custom PETG Heatbed End G-code
Hello!
I've noticed when printing PETG parts on my powder-coated PEI bed, if I let the buildplate cool to room temp and then heat it back up to around 60˚C, the parts release much more cleanly when I flex the plate. I don't want to keep doing this manually, so I printed out two spiralized cylinders with these two different G-codes in [Filament Settings -> Custom G-code -> End G-code]:
M190 S35
M140 S60
M190 S60
and
M140 S35
M190 S35
M140 S60
M190 S60
I thought this sequence would have the bed to cool down to 35˚C, bring it back up to 60˚C, and then finish, but both prints finished printing like nothing had changed in the g-code.
What I wanted was g-code I could add to my PETG profile's [Custom G-code -> End G-code] that, once the print is done:
- Had the bed to cool down to 35˚C
- Brought the bed temp up to 60˚C
- Beeped/chirped when it reached 60˚C
- And then continued with the cooling down of the bed.
I was hoping I could make it so the printer end g-code would go like this:
G4 ; wait
M104 S0 ; turn off temperature
M107 ; turn off fan
{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+30, max_print_height)}{endif} ; Move print head up
G1 X0 Y200 F3000 ; home X axis
M900 K0 ; reset LA
M84 ; disable motors
[Filament End G-code]
M140 S0 ; turn off heatbed
I don't know where to go from here and any thoughts would be greatly appreciated!
Best,
Matthew