M104 depreciated? Slic3r gcode flavour?
-
Noticed the following statement on the gcode page for M104 setting of extruder temperature:
This is deprecated because temperatures should be set using the G10 and T commands.
Duet: https://duet3d.dozuki.com/Wiki/Gcode#Section_M104_Set_Extruder_Temperature
Reprap: https://reprap.org/wiki/G-code#G10:_Set_tool_Offset_and.2For_workplace_coordinates_and.2For_tool_temperaturesThe Marlin gcode guide mentions nothing of tool offsets on G10, but the Duet and RapRap firmware guides do. Unfortunately the "Firmware Gcode Flavour" option in Slic3R is one option; "RepRap (Marlin/Sprinter)".
Marlin: http://marlinfw.org/docs/gcode/G010.html
So what does depreciated really mean here? Will setting extruder temperature using M104 continue to be supported, just merely wrap and bounce the command within the firmware to the same code that handles the G10 commands?
-
@doctrucker Hi Wes,
I think the word is "deprecated", not "depreciated" but both mean more or less the same - i.e. not appreciated as much.
I'm pretty sure that M104 will continue to be supported because, as you say, that's what a lot slicers use.
If you look further down at the similar M109 command, the Wiki says -
"Deprecated in RRF, but widely generated by slicers. To get the same behaviour, use G10 followed by M116"
Edit. No doubt DC42 will clarify.
-
M104 and M109 will continue to be supported. However, those commands don't adequately handle multi-extrusion machines, because they don't distinguish between single nozzle/single heater mixing extruders and multi nozzle/multi heater extruders - or machines with both (e.g. a mixing nozzle for printing and a separate nozzle for support material), or machines with multiple tool heaters for a single tool (e.g. machines that melt their own pellets). So M104/M109 work just fine on single-extrusion machines, but the G10 temperature setting commands and M116 are preferred for multi-extrusion machines.
-
That makes sense thanks.
Is this just a RepRap/Duet firmware move or are you aware of the others considering the same moves?
Beginning to look like Slic3r and other slicers would benefit from splitting Marlin and RepRap Firmware on the gcode flavours options.
-
@doctrucker said in M104 depreciated? Slic3r gcode flavour?:
Beginning to look like Slic3r and other slicers would benefit from splitting Marlin and RepRap Firmware on the gcode flavours options.
Cura already does.
Apropos of supporting multi-extruder, single-heater machines, a request for that was recently discussed in the Cura universe and so it may happen.
-
@doctrucker said in M104 depreciated? Slic3r gcode flavour?:
That makes sense thanks.
Is this just a RepRap/Duet firmware move or are you aware of the others considering the same moves?
Beginning to look like Slic3r and other slicers would benefit from splitting Marlin and RepRap Firmware on the gcode flavours options.
It doesn't really matter much (at least with slic3r). All I do (and what I've always done) is put the G10 active and standby temperatures for all the defined tools into the start gcode. Or more precisely, into a macro that is called from the start gcode. Then for multi colour prints, slic3r just puts Tn commands in the gcode file, so switching tools doesn't cause any issues as the active and standby temperatures have already been set.