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

    G-code command to directly set extrusion rate (not M221)

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    2
    71
    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.
    • Trietundefined
      Triet
      last edited by

      I know the M221 command, which allows me to multiply the current extrusion rate defined in the slicer by a factor to increase or decrease it.

      But how to I set the extrusion rate directly? I mean how to set it so that 100% would mean all e-steps per rotation (200 for example or as calibrated). I would then rather redefine the extrusion rate replacing (not correcting) what is set in the slicer, for the current gcode session.

      Sorry if this is a stupid question, I did not find the answer looking at the RRF gcode dictionary.

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Triet
        last edited by

        @Triet You would need to send a M92 E... command. See https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m92-set-axis-steps-per-unit
        This is in steps per mm. It's the only way to adjust the extrusion rate apart from M221. If you want it in some other unit, or as a percentage, you could write a macro to convert it for you.

        You can change the mixing ratio with M567 on tools with multiple extruders, I'm not sure if you can use it with a tool with only one extruder, and the result wouldn't be much different from using M221.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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