dq to abc Transform (dq2abc)
Turns rotating d and q components back into three phase quantities in one block.
Group: Control · Kind: {"block":"dq2abc","kind":"control"}
When to use it
Use it after the current controllers to turn vd and vq into three phase voltage references for Space-Vector Modulator.
Pins
| Pin | Domain | Meaning |
|---|---|---|
d |
signal | Direct-axis component input |
q |
signal | Quadrature-axis component input |
theta |
signal | Frame angle in radians, electrical |
zero |
signal | Optional zero-sequence input added to every phase; unwired it is 0. |
a |
signal | Phase a output |
b |
signal | Phase b output, 120 degrees behind a |
c |
signal | Phase c output, 120 degrees ahead of a |
Model
The block applies invPark (alpha = d*cos(theta) - q*sin(theta), beta = d*sin(theta) + q*cos(theta)) and then invClarke (a = alpha, b = -alpha/2 + (sqrt(3)/2)*beta, c = -alpha/2 - (sqrt(3)/2)*beta). The zero input is added to every phase (0 when unwired). With q = 0 and d = A the outputs are A*cos(theta), A*cos(theta - 120 deg) and A*cos(theta + 120 deg).
Common mistakes
- The outputs are phase voltage references in V, not duties, so send them to Space-Vector Modulator (with the DC-link voltage on vdc) and not straight to Three-Phase PWM. Limit vd and vq with lo and hi of the PI Controller blocks so the vector stays inside the DC-link voltage divided by the square root of 3.
- Use the same theta as the forward abc to dq Transform, in radians and electrical. An open theta reads 0.
Problems rules: duty.out_of_range, pin.unconnected
Datasheet and sources
No datasheet applies. The vd and vq inputs are the outputs of your current controllers in V, and theta is the same electrical angle the forward transform uses.
Example
Open the example with the command file.openExample and the name demo:dq2abc.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.