---
tag: m0200
title: Volumetric Extrusion Diameter
brief: Set the diameter for volumetric extrusion
author: thinkyhead

group: motion
eeprom: true

codes: [ M200 ]

notes:
- For a smaller build disable Volumetric Extrusion with `NO_VOLUMETRIC`.

parameters:

- tag: D
  optional: true
  description: Filament diameter
  values:
  - tag: diameter
    type: float

- tag: L
  optional: true
  requires: VOLUMETRIC_EXTRUDER_LIMIT
  description: Set volumetric extruder limit (in mm<sup>3</sup>/sec). Use `L0` for No Limit.
  values:
  - tag: volume
    type: float

- tag: S
  optional: true
  type: bool
  description: Volumetric Extrusion On/Off
  values:
  - tag: 0
    description: Disable Volumetric Extrusion
  - tag: 1
    description: Enable Volumetric Extrusion

- tag: T
  optional: true
  description: Extruder index. If omitted, the currently active extruder will be used.
  values:
  - tag: index
    type: int

examples:

- pre: 'A common diameter close to 3mm:'
  code: M200 D2.85

- pre: '1.75mm diameter with volumetric extrusion mode enabled'
  code: M200 S1 D1.75

- pre: '1.75mm diameter with volumetric extrusion mode disabled'
  code: M200 S0 D1.75

- pre: Turn off volumetric extrusion
  code:
    - M200 D0
    - M200 D  ; ...also works
    - M200 S0 ; ...also works

---

Set the filament's current diameter and enable volumetric extrusion. Send `M200` with no parameters to get the current settings.

In volumetric extrusion mode the E axis specifies cubic mm instead of linear mm, and the firmware calculates how much length to extrude for the given volume based on the filament diameter.
