> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/smart-power-simulation-software-sps/example-models/motor-drives/ac-drives/ac5-self-controlled-synchronous-200-hp-motor-drive.md).

# AC5 - Self-Controlled Synchronous 200 HP Motor Drive

This example shows the AC5 Self-Controlled Synchronous motor drive during speed regulation.

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-9bb53116da70efe7ea7fbbd0deb3e44ca5a830a9%2FAC5_motor_drive.png?alt=media" alt=""><figcaption></figcaption></figure>

H.Blanchette, L.-A. Dessaint (Ecole de technologie supérieure, Montreal)

## Description <a href="#description" id="description"></a>

This circuit uses the AC5 block of SPS library. It models a self-controlled synchronous motor drive with active front-end rectifier for a 200HP motor.

The synchronous motor is fed by a PWM voltage source inverter, which is built using a Universal Bridge Block. The speed control loop uses a PI regulator to produce the flux and current references for the vector controller block. The vector controller computes the three reference motor line currents corresponding to the torque reference and feeds the motor with these currents using a three-phase current regulator. The vector controller also computes the flux estimate and compares it with the desired value in order to generate the field excitation voltage.

Since the field flux dynamics of the synchronous machine are relatively slow, it is advisable to establish first the field flux to its nominal value before feeding the stator with three-phase currents. In this example, a high magnetization voltage of 600V is applied to the rotor field during the first 0.2 s of the simulation in order to speed up the rotor field increase. Once the field flux has reached its nominal value of 1.0 weber, the three-phase current regulator associated to the motor stator is switched on.

Motor current, speed, and torque signals are available at the output of the block.

## Simulation <a href="#simulation" id="simulation"></a>

Start the simulation. You can observe the motor stator current, the rotor speed, the electromagnetic torque and the DC bus voltage and the motor magnetic flux on the scope. The speed set point and the torque set point are also shown.

At time t = 1.5 s, the speed set point is 200 rpm. Observe that the speed follows precisely the acceleration ramp and that the stator current amplitude and frequency increase gradually.

At t = 3.0 s, a resistive torque of the nominal value is applied to the motor shaft. Recall that this type of torque tends to decelerate the motor. This explains why the motor speed slightly undershoots. Then, the motor reaches 200 rpm.

At t = 4.0 s, the speed set point is changed to 0 rpm. This forces the motor to produce a lower electric torque. The speed decreases down to 0 rpm following precisely the deceleration ramp. At t = 6.0 s, the speed setpoint reaches 0 rpm.

At t = 5.5 s, the sign of the load torque applied to the motor shaft is reversed. Observe the corresponding small overshoot in the motor speed and the stabilization of the electric torque at its nominal value.

Finally, note how well the DC bus voltage is regulated during the whole simulation period.

#### Notes <a href="#notes" id="notes"></a>

1. The power system has been discretised with a 2us time step. The speed controller uses a 140 us sample and the vector controller uses a 20 us sample time in order to simulate a microcontroller control device.
2. The torque sign convention of the synchronous machine is different from the one of the asynchronous and PM synchronous machines. That is, the synchronous machine is in the motor operation mode when the electric torque is negative and in the generator operation mode when the electric torque is positive.
3. A simplified version of the model using average-value inverter and rectifier can be used by selecting 'Average' in the 'Model detail level' menu of the graphical user-interface. The time step can then be increased up to 50 us. This can be done by typing 'Ts = 50e-6' in the workspace and by changing the speed controller sampling time to 150e-6, the DC bus controller sampling time to 50e-6 and the vector controller sampling time to 50e-6. See also **ac5\_example\_simplified** model.

## Command <a href="#command" id="command"></a>

{% code lineNumbers="true" expandable="true" %}

```matlab
open('sps/ac5_example')
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/smart-power-simulation-software-sps/example-models/motor-drives/ac-drives/ac5-self-controlled-synchronous-200-hp-motor-drive.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
