Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    M104 depreciated? Slic3r gcode flavour?

    Scheduled Pinned Locked Moved
    Firmware developers
    4
    6
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DocTruckerundefined
      DocTrucker
      last edited by

      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_temperatures

      The 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?

      Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @DocTrucker
        last edited by deckingman

        @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.

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by dc42

          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.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • DocTruckerundefined
            DocTrucker
            last edited by

            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.

            Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

            burtoogleundefined deckingmanundefined 2 Replies Last reply Reply Quote 0
            • burtoogleundefined
              burtoogle @DocTrucker
              last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @DocTrucker
                last edited by

                @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.

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA