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

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_dutyCycle

dutyCycle

dutyCycle

Structure

mo_dutyCycle/fixed

fixed

Cell of scalars

true
false

mo_dutyCycle/start

start

Cell of scalars

mo_fire

fire

fire

Structure

mo_fire/fixed

fixed

Cell of scalars

true
false

mo_fire/start

start

Cell of scalars

mo_notFire

notFire

notFire

Structure

mo_notFire/fixed

fixed

Cell of scalars

true
false

mo_notFire/start

start

Cell of scalars

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