---
tag: m0207
title: Set Firmware Retraction
brief: Set options for firmware-based retraction.
author: thinkyhead

requires: FWRETRACT
group: motion

codes: [ M207 ]

notes:
  - Requires `FWRETRACT`.
  - See related codes [`G10`](/docs/gcode/G010.html), [`G11`](/docs/gcode/G010.html), [`M208`](/docs/gcode/M208.html), and [`M209`](/docs/gcode/M209.html).

parameters:
  -
    tag: S
    optional: true
    description: Retract length
    values:
      -
        tag: length
        type: float
  -
    tag: W
    optional: true
    description: Retract swap length (multi-extruder)
    values:
      -
        tag: length
        type: float
  -
    tag: F
    optional: true
    description: Retract feedrate (units/min)
    values:
      -
        tag: feedrate
        type: float
  -
    tag: Z
    optional: true
    description: Z lift on retraction
    values:
      -
        tag: length
        type: float

examples:

---

Set lengths, feedrate, and Z lift for firmware-based retraction. See parameters below.
