# Macros

The QuadFusion has an input of four filaments and the ability to mix those filaments. This ability comes with a need to define the tools you wish to use for certain parts of your print. The purpose of defining these tools is if you have a predetermined ratio of these four filament that will create a desired color.

The Macros come into play when you want to define these tools. You can create a Macro in the Duet Web Control:

![](https://2282317355-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LII7Hz86SjDh6Ik_2d4%2F-LIr1DnDnS68nKesbRm6%2F-LIr5q1wJ0buaxJMZR2B%2Fimage.png?alt=media\&token=d7e6f154-76a0-4dbe-a6f6-5d23040f30cc)

![](https://2282317355-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LII7Hz86SjDh6Ik_2d4%2F-LIr6f227Cek6FdCMx3T%2F-LIr8GCRx6sELhAIrvAH%2Fimage.png?alt=media\&token=446574cc-5037-4609-99d5-5d5cf69913bc)

Since the QuadFusion can mix any colors you want, it is recommended that you write your own Macro. This way you can customize the colors mix ratios to suit your preferences.

The way you create a tool is the same as making one in your config.g (Check that out in the [Tool Definitions](../printing-guides/tool-definitions) guide!)

Type in a `M563` command and add a `M567` command to define the mix ratio you want for this particular tool.

![This example is of a Brick Tile ](https://2282317355-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LII7Hz86SjDh6Ik_2d4%2F-LIvCt3aI4ZwzmCxennx%2F-LIvD5ZM3ljUNCh3MR6s%2Fimage.png?alt=media\&token=a6855d4e-cb2a-44e1-a8e2-26ff16889fa0)

Now that you have a new Macro filled with all the tools for a specific print, you can use it!

You should see your newly made Macro listed in the Macros Directory.

![](https://2282317355-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LII7Hz86SjDh6Ik_2d4%2F-LIvCt3aI4ZwzmCxennx%2F-LIvDV1okzJ7BDxNSy3V%2Fimage.png?alt=media\&token=fb159926-0eb5-487f-89ff-9de770a478ca)

If you click your Macro's title you will be able to enable it.

![](https://2282317355-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LII7Hz86SjDh6Ik_2d4%2F-LJUPr2v9p9qU6Qy3RjC%2F-LJUPvA6gX0E0N_lCZXH%2Fimage%20\(38\).png?generation=1533830513044935\&alt=media)

Enable the Macro you have created. You should see that your tool settings have changed to suit the Macro you have just enabled.

If you wish to test to see if your Macro is enabled, go to the G-Code Console section and type in:\
`M567 P0`

![](https://2282317355-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LII7Hz86SjDh6Ik_2d4%2F-LJUPr2v9p9qU6Qy3RjC%2F-LIgtfDQ4ySbfZgWstFc%2Fimage.png?generation=1533830477340078\&alt=media)

You will be able to see the mix ratio you have designated Tool 0 to have

The purpose of doing this is if you have a specific print that requires different colors with specific tools, you can create these tools in a Macro and when you're printing the printer will have the proper tools with the proper mix ratios.
