# API Reference v10.3.1 (Python)

## AllAxes (class)

Module: zaber_motion.ascii

Represents all axes of motion associated with a device.

The following example illustrates how you can obtain an instance of this type:

```py
from zaber_motion.ascii import Connection

connection = Connection.open_serial_port("COM3")
device = connection.get_device(1)
all_axes = device.all_axes
```

### Properties

#### `device` (read-only)

`all_axes.device`

Type: [`Device`](https://software.zaber.com/motion-library/api/py/ascii/device.md)

Device that controls this axis.

### Methods

#### `driver_disable()` (async available)

`all_axes.driver_disable()`

Disables all axes drivers, which prevents current from being sent to the motor or load.

#### `driver_enable()` (async available)

`all_axes.driver_enable(timeout = 10)`

Attempts to enable all axes drivers (where applicable) repeatedly for the specified timeout. If the driver is already enabled, the driver remains enabled.

##### Arguments

| Name | Type | Description |
| --- | --- | --- |
| `timeout` | `float` | Timeout in seconds. Specify 0 to attempt to enable the driver once. |

#### `home()` (async available)

`all_axes.home(wait_until_idle = True)`

Homes all axes. Axes return to their homing positions.

##### Arguments

| Name | Type | Description |
| --- | --- | --- |
| `wait_until_idle` | `bool` | Determines whether the function waits for the movement to finish before returning. When false, you must call WaitUntilIdle afterwards to detect and handle any errors that occur during the movement. |

#### `is_busy()` (async available)

`all_axes.is_busy()`

Returns bool indicating whether any axis is executing a motion command.

##### Return Value

Type: `bool`

True if any axis is currently executing a motion command.

#### `is_homed()` (async available)

`all_axes.is_homed()`

Returns bool indicating whether all axes have position reference and were homed.

##### Return Value

Type: `bool`

True if all axes have position reference and were homed.

#### `park()` (async available)

`all_axes.park()`

Parks the device in anticipation of turning the power off. It can later be powered on, unparked, and moved without first having to home it.

#### `stop()` (async available)

`all_axes.stop(wait_until_idle = True)`

Stops ongoing axes movement. Decelerates until zero speed.

##### Arguments

| Name | Type | Description |
| --- | --- | --- |
| `wait_until_idle` | `bool` | Determines whether the function waits for the movement to finish before returning. When false, you must call WaitUntilIdle afterwards to detect and handle any errors that occur during the movement. |

#### `__repr__()`

`all_axes.__repr__()`

Returns a string that represents the axes.

##### Return Value

Type: `str`

A string that represents the axes.

#### `unpark()` (async available)

`all_axes.unpark()`

Unparks the device. The device will now be able to move.

#### `wait_until_idle()` (async available)

`all_axes.wait_until_idle(throw_error_on_fault = True)`

Waits until all axes of device stop moving.

##### Arguments

| Name | Type | Description |
| --- | --- | --- |
| `throw_error_on_fault` | `bool` | Determines whether to throw error when fault is observed. |
