modelSignalPWM
Generates a pulse width modulated (PWM) boolean fire signal
Extends from Modelica.Electrical.PowerConverters.Icons.Control (Control icon).
Information
Improved version of Modelica.Electrical.PowerConverters.DCDC.Control.SignalPWM: It is possible to chooas a triangular reference signal instad of a sawtooth. This allows to sample current at the beginning of the switching period, hitting the average of teh current with good accuracy.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useInternalSampleHold | true | Enables internal sample-hold |
| Boolean | useConstantDutyCycle | true | Enables constant duty cycle |
| Real | constantDutyCycle | 0 | Constant duty cycle |
| SI.Frequency | f | 1000 | Switching frequency |
| SI.Time | startTime | 0 | Start time |
| SingleReferenceType | refType | MagLev.Types.SingleReferenceType.Sawtooth | Type of reference signal |
| Boolean | commonComparison | true | Common or separated comparison for fire_p and fire_n |
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 | ||
| Modelica.Blocks.Logical.Greater | greaterEqual_p | ||
| Modelica.Blocks.Logical.Not | inverse | ||
| Modelica.Blocks.Math.Add | add | ||
| Modelica.Blocks.Sources.Constant | constOne | ||
| Modelica.Blocks.Logical.Greater | greaterEqual_n | ||
| Modelica.Blocks.Routing.RealPassThrough | realPassThrough |