---
tag: m0018
title: Disable steppers
brief: Disable steppers (same as M84).
author: thinkyhead

group: control

codes: [ M18, M84 ]
related: [ M17 ]

notes: Axes may be renamed. Axis parameters below apply to the default axis names.

parameters:

- tag: S
  optional: true
  requires: 'DISABLE_IDLE_*'
  description: Set the inactivity timeout. Set to 0 to disable the timeout.
  values:
  - tag: seconds
    type: int

- tag: 'X, Y, Z, E, A, B, C, U, V, W'
  optional: true
  requires: '*_DRIVER_TYPE'
  description: 'Disable Axes such as X, Y, Z, E, A, B, C, U, V, W.'
  values:
  - type: flag

examples:

- pre: Disable all steppers immediately
  code: M18

- pre: Disable Z and E steppers immediately
  code: M18 Z E

- pre: Set the stepper inactivity timeout to 1 minute
  code: M18 S60

- pre: Disable the stepper inactivity timeout
  code: M18 S0

---

This command can be used to set the stepper inactivity timeout (`S`) or to disable one or more steppers (`X`,`Y`,`Z`,`A`,`B`,`C`,`U`,`V`,`W`,`E`).

If a timeout is given with `S`, this command just sets the stepper inactivity timeout, in seconds. Setting the timeout to 0 disables the timeout. This timeout duration applies to all axes configured to sleep with `DISABLE_IDLE_[AXIS]`.

If no timeout or steppers are given, this command immediately disables all steppers on all axes.

If any axes are specified, this command immediately disables all steppers on the specified axes.
