| Power System Blockset | ![]() |
Generate pulses for a carried-based Pulse Width Modulator (PWM).
Library
powerlib_extras/Control Blocks
Description
The PWM Generator block generates pulses for carrier-based Pulse Width Modulation (PWM) systems. The block can be used to fire the self-commuted devices (FETs, GTOs, or IGBTs) of single-phase, two-phase, three-phase, or a combination of two three-phase bridges.
The number of pulses generated by the PWM Generator block is determined by the number of bridge arms you need to control:



The pulses are generated by comparing a triangular carrier waveform to a reference sinusoidal signal. The reference signal can be generated by the PWM generator itself, or it can be generated from a signal connected at the input of the block. In the second option, the PWM Generator need one reference signal to generate the pulses for a single or a two arm bridge or it need a three phase reference signal to generate the pulses for a 3-phase bridges (single or double bridge).
The amplitude (modulation), phase, and frequency of the reference signals are set to control the output voltage (on the AC terminals) of the bridge connected to the PWM Generator block.
The pulses that fire the two devices of an arm bridge are complementary one to the other, for example the pulse 4 is low (0) when the pulse 3 is high (1). This is illustrated in the next two figures.
The following figure displays the two pulses generated by the PWM Generator block when programmed to control a one-arm bridge.
The triangular carrier signal is compared to the sinusoidal reference signal. Each time the two signals become equal (at each crossing point), the value of the pulses passes from zero to one, or one to zero, depending to their previous value.
The following figure displays the six pulses generated by the PWM Generator block when programmed to control a three-arm bridge.

The pulse 2 is the complement of pulse1, pulse 4 the complement of pulse 3, and pulse 6 the complement of pulse 5. Note that unlike the pulses generated by the Synchronized 6-Pulse Generator block, the pulses generated by the PWM Generator block are of variable width.
Dialog Box and Parameters
Inputs and Outputs
The input is the reference sinusoidal voltage when the Internal generation of modulating signal is not selected. Connect this input to a single phase sinusoidal signal when the block is used to control a single or a two arms bridge, or to a three-phase sinusoidal signal when the PWM Generator block is controlling one or two three-phase bridge. The input can be left unconnected when the internal generation of modulating signal is selected.
The output contains the two, four, six, or twelve pulses signals used to fire the self-commuted devices (FETs, GTOs, or IGBTs) of single-phase, two-phase, three-phase, or a combination of two three-phase bridges
Example
See psb1phPWM.mdl and psb3phPWM.mdl demos for application examples of single-phase and three-phase inverters using the discrete version of this block.
| Powergui | RMS | ![]() |