PID Controller

Implements a PID controller

Category: Dynamics

Description:

The PID Controller block can be used to simulate control systems in

QFIRE Studio

. The block receives an error input signal and, as response, outputs a control signal. The equation below defines the behavior of the block:

U(z)E(z)=Kp+KiT1z1+Kd1Tz1z\frac{U(z)}{E(z)}=K_p+K_iT\frac{1}{z-1}+K_d\frac{1}{T}\frac{z-1}{z}

Where:

  • KpK_p
    : Proportional Gain.
  • KiK_i
    : Interal Action Gain.
  • KdK_d
    : Derivative Action Gain.
  • TT
    : Simulation Time Step.
  • EE
    : Error Signal.
  • UU
    : Control Signal.
Application Example

Figure 1 shows a diagram using a PID Controller block. This system is from [1] and the plant transfer function is:

G(s)=1s2+1G(s) = \frac{1}{s^2+1}

Figure 1 - System using PID Controller block

The controller gains were defined as:

Figure 2 - PID Controller dialog

In Figure 3, it is possible to compare the action of the PID Controller in the system.

Figure 3 - Step response of the systems

Bibliographic References

[1] - Katsuhiko Ogata, Modern Control Engineering, Fourth Edition, Delhi: Pearson, 2003.

Parameters:

The user can use this block in the following modes:

  • PID - Proportional, Integral, and Derivative control actions
  • PI - Proportional and Integral control actions
  • PD - Proportional and Derivative control actions

Each of which may be more appropriate for a given application.

Proportional gain used in the PID controller equation. This value is multiplied by the input signal to produce the proportional control action

Integral gain used in the PID controller equation. This value is multiplied by the numerical integration of the input signal to produce the integral control action.

Derivative gain used in the PID controller equation. This value is multiplied by the numerical derivative of the input signal to produce the derivative control action.

Ports:

Input

The signal flowing into this port is the error signal used in the PID controller equation to calculate the control signal.

Data Types:
Output

The signal flowing from this port is the result of the PID controller equation, i.e. the control action.

Data Types:

About MWF

MWF is a traditional Brazilian company that provides a wide range of electronic and mechatronic products for industry sectors such as automotive, agricultural machinery and aerospace.

Contact Us

Rua Doutor Siqueira, 139 / Sala 804 Campos dos Goytacazes - RJ, Brasil

contact@mwf-technologies.com

© 2018-2026 MWF. All rights reserved.