# \[Marlin] M906 - TMC Motor Current

{% hint style="success" %}
**📅Update: 2020/09/18**
{% endhint %}

## Description

Set the current for a stepper motor in milliamps units.

## Notes

* Requires one or more TMC stepper drivers.

## Usage

`M906` `[E<mA>]` `[I<index>]` `[T<index>]` `[X<mA>]` `[Y<mA>]` `[Z<mA>]`

### Parameters

* `[E<mA>]` Current for the E0 stepper
* `[I<index>]` (>=1.1.9) Index for dual steppers. Use I1 for X2, Y2, and/or Z2.
* `[T<index>]` (>=1.1.9) Index (tool) number for the E axis. If not specified, the E0 extruder.
* `[X<mA>]` Current for the X stepper
* `[Y<mA>]` Current for the Y stepper
* `[Z<mA>]` Current for the Z stepper

## Examples

Set the XYZ motor currents to 200mA

```
M906 X200 Y200 Z200
```

Set the E1 motor current to 10mA

```
M906 T1 E10
```

Set the X2 motor current to 5mA

```
M906 I1 X5
```


---

# 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://manual.rotrics.com/gcode/marlin-original-commands/marlin-m906-dwell.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.
