1.1.2.2.3 Configure software modules

This section describes how to configure the motor control software modules as per their project requirements.

For convenience, the motor control software is divided into following modules:

  • Start-up Configurator

  • Motor control and diagnosis

  • Output Stage and diagnosis

  • Current measurement and diagnosis

  • Voltage measurement and diagnosis

  • Rotor position calculation and diagnosis

Each of the above-mentioned modules has their own set of configuration options. The following section describes the different configuration options for the software modules.

Start-up Configurator

The sensorless position estimation techniques based on back-EMF require a minimum value of back EMF to estimate the electrical position of the rotor. The open-loop start-up procedure drives the PMSM till its speed reaches the minimum value where the back EMF values are large enough to estimate the rotor position. In the open-loop start-up procedure, the speed loop is de-activated. The currents are controlled directly in the dq reference frame by using assumed rotor position angles for transformations. The complete start-up procedure can be divided into following phases:

  • Initial Field Alignment. In this phase, the PMSM rotor is locked to a specified rotor position by keeping a fixed rotor position angle. The d-axis or q-axis current is gradually ramped to the a specified value to avoid any over-current issues.

  • Open-loop Ramp. In this phase, the rotor position is constantly incremented based on user-defined ramp time to achieve the minimum required speed for the BEMF observer. The minimum ramp time and speed depend on PMSM drive electrical and mechanical parameters. This stage is the most critical step. Any mistuning of reference speed and acceleration can lead to start-up failure.

  • Stabilization. In this phase, the PMSM is allowed to rotate at a constant open-loop speed. This step ensures a smooth transition to close loop mode.

Figure 1-18 shows a complete start-up procedure for a sensorless PMSM motor drive:

Figure 1-18. Open-loop Start-up Procedure
Figure

In Harmony Qspin the start-up configurator can be configured in following simple steps:

  • Click on the "Start-up Configurator" block as shown below.

    Figure 1-19. Open loop start-up module
  • Configure the open loop start.

    Figure 1-20. Open-loop Start-up Configuration
  • Configure flying start

    Figure 1-21. Flying Start Configuration

Motor control and diagnosis

The Motor control and diagnosis module is responsible for the implementation of core motor control algorithm. It implements the motor control state machine, and the core control parameters. For details refer Software Architecture.

In Harmony Qspin the Motor control and diagnosis module can be configured in following simple steps:

  • Click on the "Motor control and diagnosis" block as shown below.

    Figure 1-22. Motor Control and Diagnosis module
  • Select the appropriate control type from dialog box

    Figure 1-23. Motor Control and Diagnosis module configuration
  • Click on the module blocks to configure the same.

Output Stage and diagnosis

  • Click on the "Output stage and diagnosis" block as shown below.

    Figure 1-24. Output Stage and Diagnosis module
  • Configure output stage parameters

    Figure 1-25. Output Stage and Diagnosis module configuration

Current measurement and diagnosis

The Current measurement and diagnosis module is responsible for the implementation of motor current measurement technique required for the motor control application. For details refer Software Architecture.

In Harmony Qspin the Current measurement and diagnosis module can be configured in following simple steps:

  • Click on the "Current measurement and diagnosis" block as shown below.

    Figure 1-26. Current Measurement and Diagnosis module
  • Configure current measurement parameters

    Figure 1-27. Current Measurement and Diagnosis module configuration

Voltage measurement and diagnosis

The Voltage measurement and diagnosis module is responsible for the implementation of motor voltage measurement technique required for the motor control application.

In Harmony Qspin the Voltage measurement and diagnosis module can be configured in following simple steps:

  • Click on the "Voltage measurement and diagnosis" block as shown below.

    Figure 1-28. Voltage Measurement and Diagnosis module
  • Configure voltage measurement parameters

    Figure 1-29. Voltage Measurement and Diagnosis module configuration

Rotor position calculation and diagnosis

The Rotor position calculation and diagnosis module is responsible for the implementation of rotor position measurement technique required for the motor control application. For details refer Rotor Position Measurement

In Harmony Qspin the Rotor position calculation and diagnosis module can be configured in following simple steps:

  • Click on the "Rotor position calculation and diagnosis" block as shown below.

    Figure 1-30. Rotor position calculation and diagnosis module
  • Select the rotor position algorithm

    Figure 1-31. Rotor position calculation and diagnosis module configuration

  • Configure the rotor position algorithm