Here's an example of what I have, note that "[new_tool]" is just me experimenting with trying to get the selected/starting tool variable to work. I also tried "[tool]" and "[old_tool]" without success. I do notice that "M104 S[extruder0_temperature] T1" is being interpreted correctly, but ideally I'd like "T1" to be a variable so I can start from my desired extruder.
Resulting G-code output:
Code: Select all
G90
M83
M106 S0
M115 U3.0.7 ; tell the printer latest firmware varsion available
M104 S205 T1
M140 S[bed0_temperature] T0
T[new_tool] ; set extruder
G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
G1 Y-3.0 F1000.0 ; go outside printing area