M207 [S[amount] F[feedrate] Z[z lift]]
Configures firmware retract settings.
Using firmware retraction helps to make gcode more portable and easier to maintain across printers or filament types. Smoothieware implements an additional Q parameter for specifying the Z lift feed rate.
Retract 1mm during retraction requests.
M207 S1 F12 Z1
Retract 1mm during retraction requests at 12 mm/minute and also lift the tool (hop) by 1mm while retracting.