modelSignalPWM
Extends from 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 [Williams2006] or triangular signal (carrier).
Note
The user has the choice between two comparison modes:
commonComparison = true : The result of the comparison dutyCyle > carrier is fed to fire_p, the inverse signal to fire_n.
commonComparison = false: The result of the comparison dutyCyle > carrier is fed to fire_p, the result of the comparison (1 - dutyCyle) > carrier is fed to fire_n. (The result is the same for the comparison dutyCycle > (1 - carrier), i.e. a signal shifted by 180°.)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useConstantDutyCycle | true | Enables constant duty cycle |
| Real | constantDutyCycle | 0 | Constant duty cycle |
| SI.Frequency | f | 1000 | Switching frequency |
| SingleReferenceType | refType | Modelica.Electrical.PowerConverters.Types.SingleReferenceType.Sawtooth | Type of reference signal |
| Boolean | commonComparison | true | Common or separated comparison for fire_p and fire_n |
| 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.Discrete.ZeroOrderHold | zeroOrderHold | ||
| Modelica.Blocks.Sources.SawTooth | sawtooth | ||
| Modelica.Blocks.Sources.Trapezoid | triangle | ||
| Blocks.Logical.Greater | greaterEqual_p | ||
| Modelica.Blocks.Logical.Not | inverse | ||
| Blocks.Math.Add | add | ||
| Blocks.Sources.Constant | constOne | ||
| Blocks.Logical.Greater | greaterEqual_n |