Get extruder and bed temp in start gcode

Hi!

I want to get extruder and bed temp in gcode to set up macro. I can’t find any info about gcode tokens. Does anyone did something similar?

Thanks for help

There are lots of gcode cheat sheets on the web, but here are a few commands relating to extruder and bed temperatures that I copied from: https://www.simplify3d.com/support/articles/3d-printing-gcode-tutorial/

M104 S190 T0 ; start heating T0 to 190 degrees Celsius
G28 X0 ; home the X axis while the extruder is still heating
M109 S190 T0 ; wait for T0 to reach 190 degrees before continuing with any other commands
M140 S50 ; start heating the bed to 50 degrees Celsius
G28 ; home all 3 axes while the bed is still heating
M190 S50 ; wait until the bed reaches 50 degrees before continuing

I hope that helps.

Thanks, but in my case I want to put temperature set in slicer into GCode.

For example:
M104 S T0 ; start heating T0 to 190 degrees Celsius
G28 X0 ; home the X axis while the extruder is still heating
M109 S T0 ; wait for T0 to reach 190 degrees before continuing with any other commands

And during export slicer will replace tag with actual temperature of extruder set in slicer.

Previos message should looks like:

For example:
M104 S{EXTRUDER_TEMP} T0 ; start heating T0 to 190 degrees Celsius
G28 X0 ; home the X axis while the extruder is still heating
M109 S{EXTRUDER_TEMP} T0 ; wait for T0 to reach 190 degrees before continuing with any other commands

And during export slicer will replace {EXTRUDER_TEMP} tag with actual temperature of extruder set in slicer.

Tags were removed.