I wanted a temperature tower that was fast as most of the models would take several hours. Found this model by spiga76, changed the PLA model a bit to go from 230-190 instead of 240-200 and added labels for filament types.
For easier configuration, we can apply G-code to "Printer Settings" > “Custom G-code” > “Before layer change G-code” (Using PrusaSlicer).
↳ Prusa Slicer configuration
;BEFORE_LAYER_CHANGE
G92 E0.0
;[layer_z]
{if layer_z>=0.00 && layer_z<7.60} M104 S230 M109 S230 {endif}
{if layer_z>=7.60 && layer_z<13.80} M104 S225 M109 S225 {endif}
{if layer_z>=13.80 && layer_z<20.00} M104 S220 M109 S220 {endif}
{if layer_z>=20.00 && layer_z<26.20} M104 S215 M109 S215 {endif}
{if layer_z>=26.20 && layer_z<32.40} M104 S210 M109 S210 {endif}
{if layer_z>=32.40 && layer_z<38.60} M104 S205 M109 S205 {endif}
{if layer_z>=38.60 && layer_z<44.80} M104 S200 M109 S200 {endif}
{if layer_z>=44.80 && layer_z<51.00} M104 S195 M109 S195 {endif}
{if layer_z>=51.00} M104 S190 M109 S190 {endif}
;BEFORE_LAYER_CHANGE
G92 E0.0
;[layer_z]
{if layer_z>=0.00 && layer_z<7.60} M104 S260 M109 S260 {endif}
{if layer_z>=7.60 && layer_z<13.80} M104 S255 M109 S255 {endif}
{if layer_z>=13.80 && layer_z<20.00} M104 S250 M109 S250 {endif}
{if layer_z>=20.00 && layer_z<26.20} M104 S245 M109 S245 {endif}
{if layer_z>=26.20 && layer_z<32.40} M104 S240 M109 S240 {endif}
{if layer_z>=32.40 && layer_z<38.60} M104 S235 M109 S235 {endif}
{if layer_z>=38.60 && layer_z<44.80} M104 S230 M109 S230 {endif}
{if layer_z>=44.80 && layer_z<51.00} M104 S225 M109 S225 {endif}
{if layer_z>=51.00} M104 S220 M109 S220 {endif}
Starting version 2.4 (PrusaSlicer), there is a temperature preview of the model, this helps verify the correct configuration of the test model.
↳ PrusaSlicer preview configuration
↳ PrusaSlicer temperature preview
The author remixed this model.