modelSignalPWM

Generates a pulse width modulated (PWM) boolean fire signal

Extends from Modelica.Electrical.PowerConverters.Icons.Control (Control icon).

Information

This controller can be used both for DC/DC and AC/DC converters. The signal input of the PWM controller is the duty cycle; the duty cycle is the ratio of the on time to the switching period. The output firing signal is strictly determined by the actual duty cycle, indicated as d in Fig. 1.

Fig. 1: Firing (fire) and inverse firing (notFire) signal of PWM control; d = duty cycle; f = switching frequency

The firing signal is generated by comparing the sampled duty cycle input with a periodic saw tooth signal [Williams2006].

Parameters

TypeNameDefaultDescription
BooleanuseConstantDutyCycletrueEnables constant duty cycle
RealconstantDutyCycle0Constant duty cycle
Modelica.Units.SI.Frequencyf1000Switching frequency
SingleReferenceTyperefTypeBLDC.FromMSL.SingleReferenceType.SawtoothType of reference signal
Modelica.Units.SI.TimestartTime0Start time

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputdutyCycleDuty cycle
Modelica.Blocks.Interfaces.BooleanOutputfireFiring PWM signal
Modelica.Blocks.Interfaces.BooleanOutputnotFireFiring PWM signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.Constantconst
Modelica.Blocks.Nonlinear.Limiterlimiter
Modelica.Blocks.Logical.LessgreaterEqual
Modelica.Blocks.Discrete.ZeroOrderHoldzeroOrderHold
Modelica.Blocks.Sources.SawToothsawtooth
Modelica.Blocks.Sources.Trapezoidtriangle
Modelica.Blocks.Logical.Notinverse