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.
|
The firing signal is generated by comparing the sampled duty cycle input with a periodic saw tooth signal [Williams2006].
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useConstantDutyCycle | true | Enables constant duty cycle |
| Real | constantDutyCycle | 0 | Constant duty cycle |
| Modelica.Units.SI.Frequency | f | 1000 | Switching frequency |
| SingleReferenceType | refType | BLDC.FromMSL.SingleReferenceType.Sawtooth | Type of reference signal |
| Modelica.Units.SI.Time | startTime | 0 | Start time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | dutyCycle | Duty cycle | |
| Modelica.Blocks.Interfaces.BooleanOutput | fire | Firing PWM signal | |
| Modelica.Blocks.Interfaces.BooleanOutput | notFire | Firing PWM signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Constant | const | ||
| Modelica.Blocks.Nonlinear.Limiter | limiter | ||
| Modelica.Blocks.Logical.Less | greaterEqual | ||
| Modelica.Blocks.Discrete.ZeroOrderHold | zeroOrderHold | ||
| Modelica.Blocks.Sources.SawTooth | sawtooth | ||
| Modelica.Blocks.Sources.Trapezoid | triangle | ||
| Modelica.Blocks.Logical.Not | inverse |