Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Space-Vector Modulator (svpwm)

Turns three phase voltages and the DC-link voltage into three modulation signals.

svpwm

Component reference · 繁體中文

Group: Control · Kind: {"block":"svpwm","kind":"control"}

When to use it

Use it between dq to abc Transform and Three-Phase PWM in a three-phase inverter. A plain sine reference gives up about 15 percent of the voltage range.

Pins

Pin Domain Meaning
a signal Phase a reference voltage in V
b signal Phase b reference voltage in V
c signal Phase c reference voltage in V
vdc signal DC-link voltage in V; 0 or below gives zero modulation
ma signal Phase a output, modulation or duty as set by output
mb signal Phase b output, same form as ma
mc signal Phase c output, same form as ma

Common parameters

  • output: Output as modulation or duty: m or duty (Default: m)

Parameters

Key Unit Default Typical range Description
output — m Output as modulation or duty: m or duty

Parameter descriptions are in English in both languages.

Model

The block adds the zero-sequence part v0 = -(max(a,b,c) + min(a,b,c))/2 to each reference and divides by vdc/2, so m = clamp((v + v0)*2/vdc, -1, 1). Line-to-line voltages stay unchanged. The linear range reaches a phase peak of vdc/sqrt(3), which is 15.5 percent above a sine-triangle comparison (vdc/2). With output set to duty the outputs are (m + 1)/2, between 0 and 1. A vdc of 0 or below gives m = 0 (duty 0.5).

Common mistakes

  • The default output m runs from -1 to 1, so set output to duty before Three-Phase PWM or PWM Generator, which expect 0 to 1. Nothing warns you if you forget.
  • A reference larger than the DC-link voltage divided by the square root of 3 is cut off, so the inverter over-modulates and the voltage distorts. Limit vd and vq in the PI Controller blocks to that value, and note that an open vdc reads 0 and gives zero modulation.

Problems rules: pin.unconnected

Datasheet and sources

No datasheet applies. The vdc input is the DC-link voltage, measured or from a Constant, the references come from dq to abc Transform in V, and output follows what the PWM block after it expects.

Example

Open the example with the command file.openExample and the name demo:svpwm.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.