flexi-bot/docs/marlin/_gcode/M540.md
2023-09-05 20:38:49 +02:00

839 B

tag title brief author requires group codes notes parameters examples
m0540 Endstops Abort SD Abort SD printing when an endstop is triggered. thinkyhead SDSUPPORT,SD_ABORT_ON_ENDSTOP_HIT sdcard
M540
Requires `SDSUPPORT` and `SD_ABORT_ON_ENDSTOP_HIT`.
Use `ENDSTOPS_ALWAYS_ON_DEFAULT` or [`M120`](/docs/gcode/M120.html) to ensure that endstops are enabled.
tag optional description values
S false Whether (1) or not (0) to abort SD printing on endstop hit.
tag type
flag bool

Set whether SD printing should abort in the event of any endstop being triggered. This provides a fast way to abort a print in the event of mechanical failure such as loose couplings, lost steps, diverted axes, binding, etc., which lead to axes being very far out of position.