Skip to main content
Associate II
September 20, 2025
Solved

MCWB 6.4.1 Auto Calculate option presenting error

  • September 20, 2025
  • 1 reply
  • 1101 views

[PN]: STM32G431CBU6

[VERSION]: 6.4.1

[TOOL]: Motor Control Workbench

[DETAILS]:

The automatic calculation for the speed observer gains in the Speed Sensing Config and the speed regulator gains (Kp & Ki) in the Drive Settings fails. This occurs after importing a custom inverter board JSON file. The tool reports errors and does not populate the gain values.

[EXPECTED BEHAVIOR]:

After importing the custom inverter JSON file, the Motor Control Workbench should be able to automatically calculate and set the appropriate gains for the speed observer and speed regulators without any errors.

[HOW TO REPRODUCE]:

  1. Import Custom Inverter Board: Open Motor Control Workbench (v6.4.1) and import a custom inverter board using the following JSON file attached to the post:

  2. Navigate to Drive Settings: After the import, navigate to the "Drive Settings" tab.

  3. Attempt Automatic Calculation: Check the "Auto Calculate Kp & Ki" box under the "Speed regulator" section.

  4. Observe the Error: The tool fails to perform the calculation and displays an error message. The same issue occurs when attempting to calculate the gains for the speed observer in the "Speed Sensing Config" tab.

Best answer by GMA

Hello @Raul_Posada,

In the provided inverter JSON file, the offsetNetworkAttenuation parameter is set to 0. By setting it to 1, Workbench can compute the parameters.

Refer to STM32 Motor Control Boards Description page for more details.

1 reply

GMA
GMABest answer
Technical Moderator
September 23, 2025

Hello @Raul_Posada,

In the provided inverter JSON file, the offsetNetworkAttenuation parameter is set to 0. By setting it to 1, Workbench can compute the parameters.

Refer to STM32 Motor Control Boards Description page for more details.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
Associate II
September 25, 2025

Hello @GMA,

Thank you for the support. Your solution worked, and I also tested with the value set to 0.01, which worked as well.

Best regards,
Raul Posada