PWM Phase Shift for Single Shunt FOC
Libraries:
Motor Control Blockset /
Controls /
Math Transforms
Description
The PWM Phase Shift for Single Shunt FOC block adds a phase shift in the three-phase PWM pulses to ensure accurate construction of phase currents during the sector transition region for the Single Shunt Field Oriented Control (FOC) algorithm. You can use the block to widen the measurement window when the motor is operating in a state where the active voltage vectors are too short to allow for a clean ADC sample.
The block accepts the three-phase PWM duty ratios (ranging from 0 to 1) as an input signal and the Threshold (Th) input in seconds, to define the sector transition region, as shown in this figure.

PWM Phase Shift Compensation
During some PWM cycles, any two phases may have identical duty ratios (or duty values that are close to each other). In such scenarios, you can determine only one of the motor phase currents and cannot determine all three phase currents. The following figure shows such a PWM cycle.

To overcome this limitation, you can use the PWM Phase Shift for Single Shunt FOC block so that the current measurement algorithm shifts the PWM pulses. Using this compensation, the algorithm can determine two phase currents using which it eventually determines the third phase current mathematically.
The following figure shows an example of the applied compensation.

Examples
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2026a
