How to specify variable DQ parameters in the Schematic Editor ?
The PMSM block has a "Motor configuration type" parameter, in the "Electrical" tab, which is a dropdown. When the "Variable DQ" is selected, you are allowed to specify a file which should contain electrical parameters in the "Motor Configuration"field.
This file has to be in a specific format which is described below.
What is the format of the variable DQ parameters file ?
The electrical parameters are described in a JSON format. The following parameters must appear in the file.
Paremeter (JSON key) | Value type | Unit | Description | Example |
---|---|---|---|---|
PolePairs | int | N.A. | Number of pole pairs of the machine. | "PolePairs": 2 |
DqTransformAngleOffset | double | degree | Angle offset applied for the DQ Park Transform | "DqTransformAngleOffset": -90.0 |
Ra | double | Ohm | Resistance of the phase A | "Ra": 0.04 |
Rb | double | Ohm | Resistance of the phase B | "Rb": 0.04 |
Rc | double | Ohm | Resistance of the phase C | "Rc": 0.04 |
Id_axis | double[] | A | One dimensional array of the current values along the direct axis | "Id_axis": [ -50.0, 0.0, 50.0 ], |
Iq_axis | double[] | A | One dimensional array of the current values along the quadratic axis | "Iq_axis": [ -50.0, 0.0, 50.0 ], |
Ld | double[][] | H | Two dimensional array of the direct inductance values. The first index is for the direct axis. The second index is for the quadrature axis. | "Ld": [ |
Lq | double[][] | H | Two dimensional array of the quadratic inductance values. The first index is for the direct axis. The second index is for the quadrature axis. | "Lq": [ |
Fm | double[][] | Wb | Two dimensional array of the Permanent magnet flux values. The first index is for the direct axis. The second index is for the quadrature axis. | "Fm": [ |
All the examples above concatenated would give in a valid JSON format: