Table 8. MID Start Result variable
MID Start Result mask
Description
Troubleshooting
b#00 0001
Error during initialization electrical
parameters measurement.
Check whether inputs to the
MCAA_EstimRLInit_FLT
are valid.
b#00 0010
The
R
s
value is missing.
Schedule electrical measurement or
enter
R
s
value manually.
b#00 0100
The
L
d
value is missing.
Schedule electrical measurement or
enter
L
d
value manually.
b#00 1000
The
L
q
value is missing.
Schedule electrical measurement or
enter
L
q
value manually.
b#01 0000
The
K
e
value is missing.
Schedule
K
e
for measurement or enter its
value manually.
b#10 0000
The
Pp
value is missing.
Enter the
Pp
value manually.
8.5 Electrical parameters measurement control
This section describes how to control electrical parameters measurement, which contains measuring stator resistance
R
s
, direct
inductance
L
d
and quadrature inductance
L
q
. There are available 4 modes of measurement which can be selected by
MID:
Config El Mode Estim RL
variable. Function
MCAA_EstimRLInit_FLT
must be called before the first use of
MCAA_EstimRL_FLT
.
Function
MCAA_EstimRL_FLT
must be called periodically with sampling period
F_SAMPLING
, which can be definied be user. In
the scopes under "Motor identification" FreeMASTER sub-block can be observed measured currents, estimated parameters etc.
Mode 0
This mode is automatic. Rotor is not fixed. User has to specify nominal current (
MID: Config El I DC nominal
variable).
Mode 1
This mode is automatic. Rotor is not fixed. In this mode will be performed automatic measurement of the inductances for a definied
number (
NUM_MEAS
) of different DC current levels using positive values of the DC current. The
L
dq
dependency map can be seen
in the "Inductances (Ld, Lq)" recorder. User has to specify following parameters before parameters estimation:
•
MID: Config El I DC (estim Lq)
- Current to determine
L
q
. In most cases nominal current.
•
MID: Config El I DC positive max
- Maximum positive current.
Mode 2
This mode is automatic. Rotor must be mechanically fixed in alignment with the first phase. In this mode will be performed
automatic measurement of the inductances for a definied number (
NUM_MEAS
) of different DC current levels using both positive
and negative values of the DC current. The estimated inductances can be seen in the "Inductances (Ld, Lq)" recorder. User has
to specify following parameters before parameters estimation:
•
MID: Config El I DC (estim Ld)
- Current to determine
L
d
. In most cases 0 A.
•
MID: Config El I DC (estim Lq)
- Current to determine
L
q
. In most cases nominal current.
•
MID: Config El I DC positive max
- Maximum positive current. In most cases nominal current.
•
MID: Config El I DC negative max
- Maximum negative current.
Mode 3
This mode is manual. Rotor must be mechanically fixed in alignment with the first phase. In this mode won't be calculated
R
s
. The
estimated inductances can be observed in the "Ld" or "Lq" scopes. The following parameters can be changed during the runtime:
NXP Semiconductors
Remote control using FreeMASTER
MCUXpresso SDK Field-Oriented Control (FOC) of 3-Phase PMSM and BLDC motors, Rev. 0, 01/2022
User Guide
29 / 50