Discrete-time DC-DC voltage PI control with feedforward and optional integral anti-windup
Simscape / Electrical / Control / General Machine Control
The DC-DC Voltage Controller block implements discrete-time proportional-integral (PI) DC-DC voltage control with feedforward, FF. The feedforward input optimizes the transient response. The block can output a duty cycle or a current control signal. To avoid saturation of the integral gain, the block can implement anti-windup gain.
The equation that the DC-DC Voltage Controller block uses to calculate the control signal is
control is the control signal, expressed as a duty cycle or a current.
Kp is the proportional gain.
Ki is the integral gain.
Ts is the sample time.
vref is the reference voltage.
v is the measured voltage.
FF is the feedforward input.
To avoid saturation of the integrator output, the block uses an anti-windup mechanism. The integrator gain is then equal to
Kaw is the anti-windup gain.
controlsat is the saturated control signal, which the block calculates as
controlunsat is the unsaturated control signal.
controlmin is the lower limit for the control signal.
controlmax is the upper limit for the control signal.
vRef— Reference DC voltage
Desired DC output voltage for the plant.
v— Measured DC voltage
Measured DC output voltage for the plant.
Reset— External reset
External reset signal (rising edge) for the integrator.
Control— Control signal
Control signal, control, expressed as a duty cycle or a current.
Proportional gain— Proportional gain, Kp
0.1(default) | positive scalar
Proportional gain, Kp, of the controller.
Integral gain— Integral gain, Ki
50(default) | positive scalar
Integral gain, Ki, of the controller.
Anti-windup gain— Anti-windup gain, Kaw
1(default) | positive scalar
Anti-windup gain, Kaw, of the controller.
Control action upper limit— Upper limit for the control signal, controlmax
1(default) | positive scalar
Upper limit for the Control output signal. The value must be greater than the value of the Control action lower limit parameter.
Control action lower limit— Lower limit for the control signal, controlmin
0(default) | non-negative scalar
Lower limit for the Control output signal.
Sample time (-1 for inherited)— Block sample time
-1(default) | positive scalar
Time, in s, between consecutive block executions. During execution, the block produces outputs and, if appropriate, updates its internal state. For more information, see What Is Sample Time? (Simulink) and Specify Sample Time (Simulink).
If this block is inside a triggered subsystem, inherit the
sample time by setting this parameter to
-1. If this block is in a
continuous variable-step model, specify the sample time explicitly using a positive
Time constant voltage filter— DC voltage filter time constant, τ
0.001(default) | positive scalar
Time constant, τ, for the DC voltage filter.
The Time constant voltage filter parameter is only visible when the Filter DC voltage checkbox is selected.
Filter DC voltage— DC voltage filter option
To enable the filter on voltage measurement path, select the checkbox. To disable the filter, clear the check box.
The Time constant voltage filter parameter is only visible when the Filter DC voltage check box is selected.