cancel
Showing results for 
Search instead for 
Did you mean: 

The overcurrent protection threshold value cannot be modified in Motor Control Workbench.

EDokm
Associate III

I am working on a project to drive a door using a PMSM motor in position control mode.

When I change the shunt resistor value in the Current Detection step of MCW, the overcurrent protection threshold remains fixed (7A) and does not update accordingly.

When the shunt resistance value is modified, isn’t the overcurrent protection threshold expected to update too?

Screenshots are attached.

Thanks in advance for your help.

 

Details:

ST MCW Ver            : 6.4.0

STM32CubeIDE Ver : 1.19.0

Driving algorithm       : FOC

Control board            : Nucleo-G474RE

Power board              : STEVAL-IHM023V3

Bridge                        : X-NUCLEO-IHM09M2

1 ACCEPTED SOLUTION

Accepted Solutions
GMA
ST Employee

Hello @EDokm,

For the STEVAL-IHM023V3 board, as mentioned in the user manual section "2.3.5 Overcurrent protection," the overcurrent protection (OCP) threshold value (comparator input) depends on the shunt resistor and other resistor values. The OCP feature is fully handled by hardware.
The threshold value displayed in the workbench is derived from the STEVAL-IHM023V3.json file (OverCurrentProtection hardware variant part) located in the directory: MC_SDK_x.x.x\Utilities\PC_Software\STMCWB\assets\hardware\board\power.

In the example provided by @STuser2, which I assume is based on the B-G431B-ESC1 board, the OCP threshold input comparator is generated by a DAC output and is then handled by firmware.

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

View solution in original post

2 REPLIES 2
STuser2
Senior

It is expected to update, it updates for me when i tried doing it.

STuser2_0-1755503556124.png

STuser2_1-1755503588322.png

 

GMA
ST Employee

Hello @EDokm,

For the STEVAL-IHM023V3 board, as mentioned in the user manual section "2.3.5 Overcurrent protection," the overcurrent protection (OCP) threshold value (comparator input) depends on the shunt resistor and other resistor values. The OCP feature is fully handled by hardware.
The threshold value displayed in the workbench is derived from the STEVAL-IHM023V3.json file (OverCurrentProtection hardware variant part) located in the directory: MC_SDK_x.x.x\Utilities\PC_Software\STMCWB\assets\hardware\board\power.

In the example provided by @STuser2, which I assume is based on the B-G431B-ESC1 board, the OCP threshold input comparator is generated by a DAC output and is then handled by firmware.

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