SignalPWM

Generates a pulse width modulated (PWM) boolean fire signal

    SignalPWM

Library

Modelica/Electrical/PowerConverters/DCDC/Control

Description

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 timeto 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

SignalPWM_0

NameLabelDescriptionData TypeValid Values

mo_useConstantDutyCycle

useConstantDutyCycle

Enables constant duty cycle

Number

0
1

mo_constantDutyCycle

constantDutyCycle

Constant duty cycle

Scalar

mo_f

f

Switching frequency

Scalar

mo_startTime

startTime

Start time

Scalar

SignalPWM_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

fire

implicit

Firing PWM signal

output

1

notFire

implicit

Firing PWM signal

output

2

Port 3

implicit

Duty cycle

input

1-mo_useConstantDutyCycle

See Also