<p>It's <code>EVENT_GCODE_SD_STOP</code> in the <code>configuration_adv.h</code> <a href="https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/Configuration_adv.h#L1050" rel="nofollow noreferrer">file</a>.</p>

<p>It appears to have been <a href="https://github.com/MarlinFirmware/Marlin/pull/13547/commits/2dc6b58c230a8fb5a307a82f83e2080de84d0f49" rel="nofollow noreferrer">added to Marlin 2.0.x on 2019-04-03</a>.</p>

CC BY-SA 4.0
2020-05-14T10:35:00.580Z
Maybe you can expand the answer, to include whether it is possible to include the command(s) in a file as stated in the question.
0scar
CC BY-SA 4.0
2020-05-14T06:53:19.807Z
2020-05-14T06:53:19.807Z
towe
<p>How can I include homing X and Y  of a Marlin firmware operating printer after I press the stop printing in the display?</p>

<p>In which folder I need include the command?</p>

<marlin><firmware>
Homing X and Y after stopping print through display
Leo_Guilger
# Homing X and Y after stopping print through display

(Asked by: username_0 on 2020-05-13)

How can I include homing X and Y of a Marlin firmware operating printer after I press the stop printing in the display?

In which folder I need include the command?

**Tags:** marlin, firmware

---

## 1 answers

### Answer by username_1 on 2020-05-14. Score: 1

It's `EVENT_GCODE_SD_STOP` in the `configuration_adv.h` [file](https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/Configuration_adv.h#L1050).

It appears to have been [added to Marlin 2.0.x on 2019-04-03](https://github.com/MarlinFirmware/Marlin/pull/13547/commits/2dc6b58c230a8fb5a307a82f83e2080de84d0f49).

> **Comments:**
> **username_2**: Maybe you can expand the answer, to include whether it is possible to include the command(s) in a file as stated in the question.  

---

