> 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/machines/brushless-dc-motor-fed-by-six-step-inverter.md).

# Brushless DC Motor Fed by Six Step Inverter

This example shows the use of a Six-Step Switch-on mode for a trapezoidal PMSM motor rated 1kW, 3000 rpm and speed regulated.

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

## Description

A three-phase motor rated 1 kW, 500 Vdc, 3000 rpm is fed by a six step voltage inverter. The inverter is a MOSFET bridge of the SPS library. A speed regulator is used to control the DC bus voltage. The inverter gates signals are produced by decoding the Hall effect signals of the motor. The three-phase output of the inverter are applied to the PMSM block's stator windings. The load torque applied to the machine's shaft is first set to 0 and steps to its nominal value (3 N.m) at t = 0.1 s.

Two control loops are used. The inner loop synchronises the inverter gates signals with the electromotive forces. The outer loop controls the motor's speed by varying the DC bus voltage.

## Simulation

Observe the sawtooth shape of the motor currents. That's caused by the DC bus which applies a constant voltage during 120 electrical degrees to the motor inductances. The initial current is high and decreases during the acceleration to the nominal speed. When the nominal torque is applied, the stator current increases to maintain the nominal speed. The sawtooth waveform is also observed in the electromagnetic torque signal Te. However, the motor's inertia prevents this noise from appearing in the motor's speed waveform.

Change the "Back EMF flat area" of the motor from 120 to 0 and observe the waveform of the electromotive force e\_a.

## Command

Example model name: power\_brushlessDCmotor

{% code lineNumbers="true" %}

```matlab
open('power_brushlessDCmotor')
```

{% 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/machines/brushless-dc-motor-fed-by-six-step-inverter.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.
