# SRM Current Controller with PWM Generation

Current controller with internal pulse width modulation for switched reluctance machines

**Libraries:**

Simscape /
Electrical /
Control /
SRM Control

## Description

The SRM Current Controller with PWM Generation block performs discrete-time proportional-integral (PI) current control for the Switched Reluctance Machine (SRM) block. The block includes pulse width modulation (PWM).

### PWM Generation Model

The figure shows the converter structure for an SRM.

As the figure shows, the PWM generation signal is for high side switching devices.

When the control signal is greater than the carrier counter value, the PWM generator outputs 1. Otherwise, it outputs 0.

### Equations

To determine the duty cycle, the block implements PI current control in the rotor reference frame in accordance with this equation.

$D=\left({K}_{p}+{K}_{i}\frac{{T}_{s}z}{z-1}\right)\left({I}_{s\_ref}-{I}_{s}\right)$

Where:

*D*is the duty cycle.*K*is the proportional gain._{p}*K*is the integral gain._{i}*T*is the sample time._{s}*I*is the reference current._{s_ref}*I*is the measured current._{s}

To obtain control signals for the three-phases, the block then multiplies the duty cycle with the commutation signals. The resulting three control signals are normalized over the interval [0, 1].

## Ports

### Input

### Output

## Parameters

## References

[1] Saha, N. and
S. Panda. "Speed control with torque ripple reduction of switched reluctance motor by Hybrid
Many Optimizing Liaison Gravitational Search technique." *Engineering Science and
Technology.* Vol 20 (2017): 909–921.

## Extended Capabilities

## Version History

**Introduced in R2018a**