Compute derating factor
Motor Control Blockset / Controls / Controllers
The Derating Function block generates the derating factor
y) according to the feedback
ffeedback) and maximum limit
fmax) values of the input reference
The derating factor:
Remains equal to one when
ffeedbacklies between positive and negative values of the Derating threshold. The derating factor varies linearly outside this range according to
Remains equal to zero when the reference signal lies beyond (positive or negative)
Therefore, you can use the generated derating factor to derate a control signal after the reference signal crosses the specified Derating threshold.
This figure shows the block output when you use a sinusoidal wave as
The Derating threshold parameter, indicates the percentage of peak amplitude for the reference signal. The Derating threshold is 0.5 in the block output shown, which results in a threshold value of 2 (for the peak amplitude value of 4 for the sinusoidal reference signal).
This equation describes how the block computes the derating factor
fmax — Maximum reference signal limit
Maximum limit of the reference signal value beyond which the derating factor becomes zero.
ffeedback — Reference feedback signal
Reference signal that the block uses to generate the derating factor, which you can then use to derate a control signal.
y — Derating factor
Derating factor that the block generates based on the feedback and maximum limit values of the reference signal when the signal exceeds the value of the Derating threshold parameter.
Derating threshold — Threshold beyond which derating must occur
0.9 (default) | scalar in the range
The reference signal value beyond which the block generates the derating factor.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Design and simulate fixed-point systems using Fixed-Point Designer™.
Introduced in R2020a