0% found this document useful (0 votes)
19 views22 pages

CT Hmi Report-1

Uploaded by

Nam Nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views22 pages

CT Hmi Report-1

Uploaded by

Nam Nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

TABLE OF CONTENTS:

I. Overview of the Mechatronics System......................................................................................


1.1. Introduction to the System's Functions and Tasks................................................................
1.2. Basic Components of the System.........................................................................................
II. System Control Program and Interface...................................................................................
2.1. Description of System Operation..........................................................................................
2.2. HMI/PLC tags:......................................................................................................................
2.3. PLC Control Program...........................................................................................................
2.3.1. Main..............................................................................................................................
2.3.2. AUTO: Function for the auto mode..............................................................................
2.3.3. MANUAL: Function for the manual mode..................................................................
2.3.4. Map_output: Function for handling the output (pumper, drain valve)
................................................................................................................................................
2.3.5. Pump speed: Function for handling the speed of valve/pumper..................................
2.3.6. Alarm: Function to generate Alarm..............................................................................
2.3.7. Database……………………………………………………………..13
2.4. Control Interface...................................................................................................................
2.4.1. Login Screen.................................................................................................................
2.4.2. Control Screen..............................................................................................................
2.4.3. User Administration.....................................................................................................
2.4.4. Alarm............................................................................................................................
2.4.5. Alarm............................................................................................................................
III. Conclusion................................................................................................................................

1
I. Overview
1.1. Introduction to the System's Functions and Tasks
A water-pumping system is a vital component in industrial, agricultural, and
residential operations. Its primary function is to transport water from a root
location, such as a water tank, to various distributed locations, ensuring a
consistent and reliable supply to meet operational demands. The system integrates
Siemens PLC technology, which ensures that in AUTO Mode, the water tank is
always maintained at optimal levels. In the event of a system failure, it promptly
notifies the user through the HMI and automatically engages with the pump to
address the issue. Additionally, users can switch to MANUAL Mode, allowing
them to control the system directly by logging in with administrative credentials.
The system’s tasks include automated monitoring of flow rates, pressure levels,
and water quality through advanced sensors, enabling real-time adjustments and
early detection of potential problems. Furthermore, it is equipped with
sophisticated sensors and alarms to detect pipeline leaks, minimizing water
wastage and preventing infrastructure damage.

2
1.2. Basic Components of the System
The control system utilizes a combination of HMI TP700_Comfort with a
resolution of 800 x 480 pixels and a CPU 1214C DC/DC/DC.

Components Type Function


Timer Keyboard Adjust waiting time after finishing
entry flushing/pumping
Pumping speed Keyboard Adjust speed of water pumper and drain
entry valve
Auto Lamp Auto mode: On
Manu Lamp Manual mode: On
Select mode Button Switch between AUTO/MANUAL Mode
Alarm Lamp Change color when warning occurs
Warning Lamp Blynk when error occurs

3
II. System Control Program and Interface
2.1. Description of System Operation

Algorithm of the main system: Algorithm of the Manual mode:

4
● Algorithm of the Auto mode:

5
2.2. PLC/HMI tags
* PLC tags

* HMI tags

6
2.3. PLC Control Program
2.3.1. Main
The start of the program, calling 6 sub functions: "Pump Speed", "AUTO",
"MAN", "MAP output", "Chuyen_dong_HMI", "Alarm"

7
2.3.2. AUTO: Function for the auto mode

8
In AUTO Mode logic, the system monitors water levels or time thresholds and
ensures the pump activates automatically to maintain optimal levels. In drain valve
control, Timers (TON) are used to activate/deactivate the drain valve
%DB1.DBD0.5 when needed.
Mathematical operations (SUB, DIV, ADD) track flow rates, water levels, or
pressure, feeding values back into the system for monitoring and calculating. And
Based on conditions and timers, errors or system actions are sent via HMI for user
awareness.

9
2.3.3. MANUAL: Function for the manual mode
Network 1:
 Controls the pump operation in MANUAL modes.
 Conditions like AUTO mode (%DB1.DBX0.0) and sensors (S1H) determine
pump behavior.
 Manual inputs override AUTO mode when activated.
Network 2:
 Controls the drain valve operation in MANUAL modes.
 Conditions like AUTO mode (%DB1.DBX0.0) and sensors (S2L) determine
valve behavior.
 Manual inputs allow users to override AUTO mode.

10
2.3.4. Map_output: Function for handling the output (pumper, drain valve)

2.3.5. Pump speed: Function for handling the speed of valve/pumper

11
2.3.6. Alarm: Function to generate Alarm

Alarm Management

+ “show_alarm” is triggered when any warning occurs.

+ Errors (e.g., high pump velocity) are detected, and an error icon blinks for user
attention.

Output and Warning Control: Warnings are activated when "Bom" and "Van"
are ON simultaneously or if the water level is out of bounds.

Condition Monitoring: Pumping velocity and water levels are continuously


checked for abnormalities, triggering warnings or errors.

This setup ensures robust monitoring, error detection, and alarm visualization
for the system.

12
2.3.7. Database

The database responsible for holding value for the alarm:

● Datablock for the system

13
● Database for the alarm: Warning when clicking “switch” in AUTO mode

2.4. Control Interface


2.4.1. Login Screen
The Login Screen is designed for friendly visualization. When Logging in
successfully, the name of user is displayed on blue block, signaling the registration
process is successful.

14
 Before login:

 After login:

15
2.4.2. Control Screen
After logging in, the user can next press the “Control” button or double click
at the left of the screen to open the sliding screen and press “Control”.

Control screen

Control screen and sliding bar

16
Mode Screen allows the user to choose between 2 modes: AUTO or
MANUAL for the system to operate, either by hand or complete automation. To do
this, click on the “SWITCH” button on a MODE box

This is the main working interface of the system, after choosing the
mode, the user then opens the sliding screen by double clicking the bottom of the
screen, pressing the “CONTROL” button to enter the Control Screen. When the
pumping/flushing process is completed, a timer line appears to count down from 3
to move to the other process

To switch mode from AUTO to MANUAL Mode, we need to Stop the AUTO
Mode by pressing “Stop” button on AUTO Box, then we press “SWITCH: button
on MODE box, the process continues working without reset.

17
The system is now in AUTO Mode

The system is switched to Manual mode, AUTO box has disappeared

At mode MANUAL, we can interact with the pumper and valve drain, users
are able to change pump speed and timer on their own. When clicking to
pump/valve drain, a pop-up screen appears to turn on/off the actuators, and each
process requires user to log in with administration account

18
Valve pop-up screen

Pump pop-up screen

2.4.3. User Administration


The program currently has 2 types of users: administrator and client.

When registering as Administrator (Admin is the members of the group), the


user has access to all the functionalities of the program.

19
2.4.4. Alarm
We have also included the alarm system in our project. By opening the
sliding screen, the user can go to the alarm page to check the alarm history.

Currently, the cases that will trigger the alarm are:

● Warning when two actuators are turned on simultaneously.


● Warning when tank is full/empty.
● Error when the pumping velocity input number exceeds 15 (max value) .

20
Alarm interface

When the pump speed is greater than 15, a red symbol blinks on the upper right
corner

21
III. Conclusion
The system works as intended, the advanced functionalities (Alarm, Slide-
in-screen...) are integrated quite well into the system, making the Interface much
less complicated, easy to operate.

Some functionalities can be improved for better experience:

● The recipe function is not applied.


● The alarm should be presented immediately after something happened.
● The manual simulation function is still complicated, and needs to integrate
with the real device and system.

We would like to extend our heartfelt gratitude to Doctor Hoang Sy Tuan for
generously sharing his expertise and supporting us in completing this assignment
to the best of our abilities

22

You might also like