Controllers in automatic control
Controllers are needed to keep a controlled variable at a set level. For example, maintaining a constant room temperature or a steady flow of water from a tap requires a temperature or pressure controller. The most widely used type is the PID controller.
Our demonstration project shows how the liquid level in a tank is controlled.
The setup has two water tanks. Water flows by gravity from the first tank into the second and is pumped back from the second to the first. A sensor in the tank measures the water level. The PLC (Programmable Logic Controller) processes this information and calculates the output using the PID control equation. This output controls the pump's flow rate. The change in water level in the tank therefore depends on the difference between inflow and outflow. The PID controller keeps the water level constant even when external conditions change.
Measurement accuracy. Scaling and the zero point must match the sensor range and mounting height. The maximum water height in the tank is 43 cm.
Manual pump control
At the first level, you control the pump output directly, without a PID controller. The panel shows the measured water level so you can see how changing the pump output affects it.
Automatic water level control
At the second level, set the desired water level, or setpoint SP, in centimetres. The PID controller compares it with the measured water level PV and adjusts the pump speed command Y. All three values appear on the panel.
Explore the PID control loop
The TUDENG level shows a diagram of the water level control loop. SP is the desired water level, PV is the measured level, and Y is the controller output that drives the pump. The PID controller compares the setpoint with the measurement and adjusts the pump speed.
PID parameters
The additional PID screen lets you adjust proportional gain Kp, integral time Ti, derivative time Td and cycle time. These parameters determine how the controller responds to a difference in water level.