---
tag: m0211
title: Software Endstops
brief: Set and/or get the software endstops state
author: thinkyhead

requires: (MIN|MAX)_SOFTWARE_ENDSTOPS
group: motion

codes: [ M211 ]

notes:
  - Requires either `MIN_SOFTWARE_ENDSTOPS` or `MAX_SOFTWARE_ENDSTOPS` for the enable option.

parameters:
  -
    tag: S
    optional: true
    description: Software endstops state (S1=enable S0=disable)
    values:
      -
        tag: flag
        type: bool

examples:

---

Optionally enable/disable software endstops, then report the current state.

With software endstops enabled, moves will be clipped to the physical boundaries from `[XYZ]_MIN_POS` to `[XYZ]_MAX_POS`.
