> 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/blocks-functions-tools/machines/blocks/machines-control/ac-drives/five-phase-pm-synchronous-motor-drive.md).

# Five-Phase PM Synchronous Motor Drive

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

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

The **Five-Phase PM Synchronous Motor Drive** block, located in the **OPAL-RT SPS Software/Electrical Machines/Control/AC Drives** library, commonly called the **AC8 motor drive**, represents a classical vector control drive for five-phase permanent magnet synchronous motors. This drive features a closed loop speed control based on vector control method. The speed control loop outputs the reference electromagnetic torque of the machine. The reference direct and quadrature (dq) components of the stator current corresponding to the commanded torque are derived based on vector control strategy. The reference dq components of the stator current are then used to obtain the required gate signals for the inverter through a hysteresis-band current controller.

The main advantage of this drive, compared to scalar-controlled drives, is its fast dynamic response. The inherent coupling effect between the torque and flux in the machine is managed through decoupling (stator flux orientation) control, which allows the torque and flux to be controlled independently. However, due to its computation complexity, the implementation of this drive requires fast computing processors or DSPs.

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

The Five-Phase PM Synchronous Motor Drive block uses these blocks from the Electric Drives / Fundamental Drive Blocks library:

* Speed Controller (AC)
* Vector Controller (PMSM)
* DC Bus
* Inverter (Five-Phase)

The control system has two different sampling times: the speed controller sampling time and the vector controller sampling time.

The speed controller sampling time must be a multiple of the vector controller sampling time and a multiple of the simulation time step. The average-value inverter model has lower time constants, compared to the detailed converter model. Therefore, you can use higher simulation time steps with this type of model. For a vector controller sampling time of 30 μs, good simulation results have been obtained for a simulation time step of 30 μs.

The simulation time step must be lower than the vector controller time step.

The stator currents id1\*, iq2\*, and id2\* are set to 0 inside the vector controller block since only the iq1 current contributes to torque production.

### Model Specifications <a href="#model-specifications" id="model-specifications"></a>

The library contains a 4.4 kW drive parameter set. The table shows the specifications of the 4.4 kW drive.

|                          | 4.4KW Drive                                                   |
| ------------------------ | ------------------------------------------------------------- |
| **Drive Input Voltage**  | <p>Amplitude: 160 V (L-L)<br>Frequency: 60 Hz</p>             |
| **Motor Nominal Values** | <p>Power: 4.4kW<br>Speed: 900 rpm<br>Voltage: 160 V (L-N)</p> |

## Parameters <a href="#parameters" id="parameters"></a>

### General <a href="#general" id="general"></a>

<table data-header-hidden><thead><tr><th width="220.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Output bus mode</strong></td><td>Select how the output variables are organized.<br>If you select <strong>Multiple output buses</strong> (default), the block has three separate output buses for motor, converter, and controller variables.<br>If you select <strong>Single output bus</strong>, all variables output on a single bus.</td></tr><tr><td><strong>Model detail level</strong></td><td>Select between <strong>Detailed</strong> (default) and <strong>Average</strong> inverter models.</td></tr><tr><td><strong>Mechanical input</strong></td><td><p>Select between <strong><code>Torque Tm</code></strong> (default), <strong>Speed w</strong>, and the <strong>mechanical rotational port</strong> as the mechanical input.</p><p>When you select <strong>Torque Tm</strong>, the block outputs the motor speed according to the following differential equation, describing the mechanical system dynamics:</p><p><span class="math">T_e=J\frac{d}{dt}\omega_r+F\omega_r+T_m \\[4pt]</span></p><p>This mechanical system is modeled inside the Synchronous Machine block.</p><p>When you select <strong>Speed w</strong> as the mechanical input, the block outputs the electromagnetic torque, allowing you to model the mechanical system dynamics outside the Five-Phase PM Synchronous Motor Drive block. With this setting, the inertia and viscous friction parameters do not appear in the mask of the block.</p><p>When you select <strong>mechanical rotational port</strong>, the block shows the connection port S, which counts for the mechanical input and output. It allows a direct connection to the Simscape™ environment. The mechanical system of the motor is modeled inside the drive and is based on the same differential equation.</p><p>See <a href="https://www.opal-rt.com/docs/smart-power-simulation-software-sps/library-specific-guides/motor-drives/mechanical-coupling-of-two-motor-drives.md">Mechanical Coupling of Two Motor Drives.</a></p></td></tr><tr><td><strong>Use signal names as labels</strong></td><td><p>When you select this check box, the <strong>Motor</strong>, <strong>Conv</strong>, and <strong>Ctrl</strong> measurement outputs use the signal names to identify the bus labels. Select this option for applications that require bus signal labels to have only alphanumeric characters.</p><p>When this check box is cleared (default), the measurement output uses the signal definition to identify the bus labels. The labels contain non-alphanumeric characters that are incompatible with some Simulink® applications.</p></td></tr></tbody></table>

### Permanent Magnet Synchronous Machine Tab <a href="#permanent-magnet-synchronous-machine-tab" id="permanent-magnet-synchronous-machine-tab"></a>

The **Electrical parameters** and the **Mechanical parameters** sections display the parameters of the Synchronous Machineblock.

### Converters and DC Bus Tab <a href="#converters-and-dc-bus-tab" id="converters-and-dc-bus-tab"></a>

#### **Rectifier**

The **Rectifier** section of the **Converters and DC bus** tab displays the parameters of the Universal Bridge block.

#### **DC Bus**

<table data-header-hidden><thead><tr><th width="220.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Capacitance</strong></td><td>Specify the DC bus capacitance, in farads. Default is 2000e-6.</td></tr></tbody></table>

#### **Braking Chopper Section**

<table data-header-hidden><thead><tr><th width="220.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Resistance</strong></td><td>Specify the braking chopper resistance, in ohms. Use this resistance to avoid bus overvoltage during motor deceleration or when the load torque tends to accelerate the motor. Default is <code>8</code>.</td></tr><tr><td><strong>Chopper frequency</strong></td><td>Specify the braking chopper frequency, in hertz. Default is <code>4000</code>.</td></tr><tr><td><strong>Activation voltage</strong></td><td>The dynamic braking is activated when the bus voltage reaches the upper limit of the hysteresis band. Default is 320.<br>The figure Chopper Hysteresis Logic shows the braking chopper hysteresis logic.<br><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-8fd9719cbddedeb147da03d4354a0a4866c768fc%2FAC8_chopper_hyst_logic.png?alt=media" alt=""></td></tr><tr><td><strong>Shutdown voltage</strong></td><td>Specify the shutdown voltage, in volts. This value is the point at which the dynamic braking shuts down when the bus voltage reaches the lower limit of the hysteresis band. Default is 310. The chopper hysteresis logic is shown in the following figure.</td></tr></tbody></table>

#### **Inverter**

The **Inverter** section of the **Converters and DC bus** tab displays the parameters of the Universal Bridge block that is included in the Power Electronics library of the Fundamental Blocks library.

<table data-header-hidden><thead><tr><th width="220.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Source frequency</strong></td><td>Specify the frequency of the voltage source, in hertz. Default is <code>60</code>. The <strong>Source frequency</strong> parameter is available only when the <strong>Model detail level</strong> parameter is set to Average.</td></tr><tr><td><strong>On-state resistance</strong></td><td>Specify the on-state resistance of the inverter devices, in ohms. Default is 1e-3.<br>The <strong>On-state resistance</strong> parameter is available only when the <strong>Model detail level</strong> parameter is set to Average.</td></tr></tbody></table>

### Controller Tab <a href="#controller-tab" id="controller-tab"></a>

<table data-header-hidden><thead><tr><th width="220.2222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Regulation type</strong></td><td>Specify the type of regulation, <strong>Speed regulation</strong> (default) or <strong>Torque regulation</strong>.</td></tr><tr><td><strong>Schematic</strong></td><td>Open a diagram showing the speed and vector controllers schematics.</td></tr></tbody></table>

#### **Speed Controller Section**

<table data-header-hidden><thead><tr><th width="220.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Acceleration</strong></td><td>Specify the maximum acceleration allowed for the motor, in rpm/s. An excessively large positive value can cause DC bus undervoltage. This parameter is used only in speed regulation mode. Default is 1000.</td></tr><tr><td><strong>Deceleration</strong></td><td>Specify the maximum change of speed allowed during motor deceleration, in rpm/s. An excessively large negative value can cause DC bus overvoltage. This parameter is used only in speed regulation mode. Default is -1000.</td></tr><tr><td><strong>Speed cutoff frequency</strong></td><td>Specify the speed measurement first-order low-pass filter cutoff frequency, in hertz. This parameter is used only in speed regulation mode. Default is 250.</td></tr><tr><td><strong>Speed controller sampling time</strong></td><td>Specify the speed controller sampling time, in seconds. The sampling time must be a multiple of the simulation time step. Default is 4*20e-6.</td></tr><tr><td><strong>Proportional gain</strong></td><td>Specify the speed controller proportional gain. This parameter is used only in speed regulation mode. Default is 0.5.</td></tr><tr><td><strong>Integral gain</strong></td><td>Specify the speed controller integral gain. This parameter is used only in speed regulation mode. Default is 40.</td></tr><tr><td><strong>Negative</strong></td><td>Specify the maximum negative torque, in newton-meters, applied to the motor by the vector controller (N.m). Default is -35.</td></tr><tr><td><strong>Positive</strong></td><td>Specify the maximum positive torque, in newton-meters, applied to the motor by the vector controller. Default is 35.</td></tr></tbody></table>

#### **Vector Control Section**

<table data-header-hidden><thead><tr><th width="220.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Sampling time</strong></td><td>Specify the vector controller sampling time, in seconds. The sampling time must be a multiple of the simulation time step. Default is 20e-6.</td></tr><tr><td><strong>Current controller hysteresis band</strong></td><td><p>Specify the current hysteresis bandwidth, in amperes. Default is 0.1.<br>This value is the total bandwidth distributed symmetrically around the current set point. The following figure shows a case where the current set point is Is* and the current hysteresis bandwidth is set to dx.</p><p>This parameter is ignored when using the average-value inverter.</p><p><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-65f778df8279ac91a2a691d00e4198b8ba6d87d2%2FAC3_current_controller.png?alt=media" alt="" data-size="original"></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>A Rate Transition block is needed to transfer data between different sampling rates. This block causes a delay in the gate signals, so the current might exceed the hysteresis band.</p></div></td></tr><tr><td><strong>Maximum switching frequency</strong></td><td>Specify the maximum inverter switching frequency, in hertz. Default is 20e3.<br>This parameter is ignored when using the average-value inverter.</td></tr></tbody></table>

## Inputs <a href="#inputs-and-outputs" id="inputs-and-outputs"></a>

<table data-header-hidden><thead><tr><th width="220.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>SP</strong></td><td>The speed or torque set point. The speed set point can be a step function, but the speed change rate follows the acceleration and deceleration ramps. When the load torque and the speed have opposite signs, the accelerating torque is the sum of the electromagnetic and load torques.</td></tr><tr><td><strong>Wm</strong>, <strong>Tm</strong>, or <strong>S</strong></td><td>The mechanical input of the drive: motor speed (Wm), mechanical torque (Tm), or mechanical rotational port (S).</td></tr><tr><td><strong>A, B, C</strong></td><td>The three phase terminals of the motor drive.</td></tr></tbody></table>

## Outputs

<table data-header-hidden><thead><tr><th width="220.22222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>Wm</strong></td><td></td></tr><tr><td><strong>Motor*</strong></td><td>If <strong>Output bus mode</strong> parameter is set to <strong>Multiple output buses</strong><br>The motor measurement vector. This vector allows you to observe the motor’s variables using the Bus Selector block.</td></tr><tr><td><strong>Conv*</strong></td><td><p>If <strong>Output bus mode</strong> parameter is set to <strong>Multiple output buses</strong><br>The five-phase converter measurement vector. This vector contains:</p><ul><li>The DC bus voltage</li><li>The rectifier output current</li><li>The inverter input current</li></ul><p>You can visualize all current and voltage values of the bridges using the Multimeter block.</p></td></tr><tr><td><strong>Ctrl*</strong></td><td><p>If <strong>Output bus mode</strong> parameter is set to <strong>Multiple output buses</strong><br>The controller measurement vector. This vector contains:</p><ul><li>The torque reference</li><li>The speed error (difference between the speed reference ramp and actual speed)</li><li>The speed reference ramp or torque reference</li></ul></td></tr></tbody></table>

**\*** When the **Output bus mode** parameter is set to **Single output bus**, the block groups the Motor, Conv, and Ctrl outputs into a single bus output.

### Examples <a href="#examples" id="examples"></a>

The [AC8 - PM Synchronous 3HP Motor Drive](https://opal-rt.atlassian.net/wiki/spaces/PSPS/pages/2450948110) (ac8\_example) model shows the simulation of the Five-Phase PM Synchronous Motor Drive block under standard load condition. The ac8\_example\_simplified model shows the simulation of the average-value model under the same load conditions.

### References <a href="#references" id="references"></a>

\[1] Bose, B. K. *Modern Power Electronics and AC Drives*. Upper Saddle River, NJ: Prentice-Hall, 2002.

\[2] Krause, P. C. **Analysis of Electric Machinery**. New York: McGraw-Hill, 1986.

\[3] Toliyat, H. A. *Analysis and Simulation of Multi-Phase Variable Speed Induction Motor Drives Under Asymmetrical Connections*. Applied Power Electronics Conference and Exposition, Vol. 2, 1996, pp. 586–592.

\[4] Beaudart, F., F. Labrique, E. Matagne, D. Telteux, and P. Alexandre. *Control under normal and fault tolerant operation of multiphase SMPM synchronous machines with mechanically and magnetically decoupled phases*. International Conference on Power Engineering, Energy and Electrical Drives, 2009, pp. 461–466.


---

# 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/blocks-functions-tools/machines/blocks/machines-control/ac-drives/five-phase-pm-synchronous-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.
