# Adjusting Homing Macros

Whenever you press the homing buttons located in the **Machine Control** tab of Duet Web Interface, execute a `G28` command, or a G-code file is set to home prior to printing, the respective homing macro is executed. Below you will find a brief explanation of each of the relevant homing macros.  &#x20;

## Homing Macros

The **sys/** folder, located in the root directory of the micro SD card contains the following files:

* **homeall.g**: This file contains G-code to home all three axes of the printer. This file is executed whenever the command `G28` is entered or whenever the **Home All** button on the Duet Web Interface is pressed.
* **homex.g**: This file contains G-code to home the X axis of the M3D Crane Series printer. This file is executed whenever the **Home X** button is pressed or when the  `G28 X` command is sent.&#x20;
* homey.g: This file contains G-code to home the Y axis of the M3D Crane Series printer. This file is executed whenever the **Home Y** button is pressed or when the `G28 Y` command is sent.&#x20;
* **homez.g**: This file contains G-code to home the Z-axis of this printer. It is called whenever you press the **Home Z** button on the Duet Web Interface or `G28 Z` is sent.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://crane.printm3d.com/advanced-tuning-m3d-crane-series/adjusting-homing-macros.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
