# Motor Messages

Motor messages affect a single motor.

***

## Motor Position

### /motor/{motor\_name}/position \[number]

**Read:** If no arguments are given, the current position of motor\_name is returned.

**Write:** If an argument is given, Spikemark will attempt to reset the motor\_name's position.

***

## Stop Motor

### /motor/{motor\_name}/stop

**Note:** Soft stops motor\_name.

***

## Reset Drive

### /motor/{motor\_name}/drive/reset

**Note:** Resets the drive of motor\_name.

***

## Spike Position

### /motor/{motor\_name}/spike/{spike\_name}/position \[number]

**Read:** If no arguments are given, then the position of spike\_name on motor\_name is returned.

**Write:** If an argument is given, Spikemark will attempt to set the position of spike\_name on motor\_name.

{% hint style="info" %}
This will update a spikes position which will affect every cue that uses the spike.
{% endhint %}

***

## Spike Factor

### /motor/{motor\_name}/spike/{spike\_name}/factor \[number]

**Read:** If no arguments are given, then the factor of spike\_name on motor\_name is returned.

**Write:** If an argument is given, Spikemark will attempt to set the factor of spike\_name on motor\_name.

{% hint style="info" %}
This will update a spikes factor which will affect every cue that uses the spike.
{% endhint %}

***

## Spike Offset

### /motor/{motor\_name}/spike/{spike\_name}/offset \[number]

**Read:** If no arguments are given, then the offset of spike\_name on motor\_name is returned.

**Write:** If an argument is given, Spikemark will attempt to set the offset of spike\_name on motor\_name.

{% hint style="info" %}
This will update a spikes offset which will affect every cue that uses the spike.
{% endhint %}

***
