> For the complete documentation index, see [llms.txt](https://crane.printm3d.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://crane.printm3d.com/advanced-tuning-m3d-crane-series/adjusting-homing-macros.md).

# 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.
