メインコンテンツ

mcb.getPMSMParameters

Return PMSM parameters

    Description

    pmsm = mcb.getPMSMParameters(pmsm_type) returns a struct of parameters for a permanent magnet synchronous motor (PMSM) of type pmsm_type.

    example

    Examples

    collapse all

    Get parameters for a BLY171D PMSM.

    pmsm = mcb.getPMSMParameters("BLY171D")
    pmsm = 
    
      struct with fields:
    
                 model: 'Anaheim-BLY171D-24V-4000'
                    sn: '001'
                     p: 4
                    Rs: 0.7500
                    Ld: 0.0010
                    Lq: 0.0010
                     J: 2.4019e-06
                     B: 1.1604e-05
                    Ke: 3.8000
                    Kt: 0.0340
               I_rated: 1.8000
                 N_max: 10000
        PositionOffset: 0.0504
              QEPSlits: 1250
                FluxPM: 0.0052
               T_rated: 0.0566
    

    Create a new PMSM parameter structure with default values, which you can populate with custom values for your PMSM model.

    pmsm = mcb.getPMSMParameters("myPMSM")
    Creating new parameter structure.
    
    pmsm = 
    
      struct with fields:
    
                 model: 'new'
                    sn: '005'
                     p: 1
                    Rs: 1
                    Ld: 1.0000e-03
                    Lq: 1.0000e-03
                     J: 1.0000e-06
                     B: 1.0000e-06
                    Ke: 1
                    Kt: 1
               I_rated: 1
                 N_max: 1
        PositionOffset: 1
              QEPSlits: 1
                FluxPM: 0.0055
               T_rated: 0.0083

    Input Arguments

    collapse all

    Type of PMSM, specified as a character vector or string.

    If you specify a value other than the ones listed above, the function returns a structure with default parameter values.

    Output Arguments

    collapse all

    PMSM parameters, returned as a struct with the following fields:

    • model — Manufacturer's model number, returned as a character vector

    • sn — Manufacturer's serial number, returned as a character vector

    • p — Number of pole pairs, returned as a scalar

    • Rs — Stator resistance (in ohms), returned as a scalar

    • Ldd-axis inductance (in henries), returned as a scalar

    • Lqq-axis inductance (in henries), returned as a scalar

    • J — Rotor inertia coefficient (in kg-m2), returned as a scalar

    • B — Viscous damping coefficient (in kg-m2/ sec), returned as a scalar

    • Ke — Back EMF constant (in volts/krpm), returned as a scalar

    • Kt — Torque constant (in Nm/amperes), returned as a scalar

    • I_rated — Rated current (in amperes), returned as a scalar

    • N_max — Maximum rotor speed (in rpm), returned as a scalar

    • PositionOffset — Rotor position offset (in PU), returned as a scalar

    • QEPSlits — Number of quadrature encoder pulse (QEP) slits, returned as a scalar

    • FluxPM — Permanent magnet flux linkage (in webers), returned as a scalar

    • T_rated — Rated torque (in Nm), returned as a scalar

    Version History

    Introduced in R2020a

    expand all