Integrated Design and Control of a Sustainable Stormwater Treatment System
Abstract
:1. Introduction
2. Methodology and Development
- Design and Implementation of the Piping and Instrumentation Diagram (P&ID):
- a.
- A comprehensive review of the existing literature on stormwater-treatment processes and their representation by means of a piping diagram and instrumentation.
- b.
- Identification of the key physical and chemical interactions in the rainwater-treatment process applied to the agricultural sector.
- c.
- Integration of Siemens technologies for data acquisition in the P&ID.
- d.
- Validation of the P&ID through preliminary simulations and adjustments according to the specific characteristics of the system.
- Dynamic Modeling of the Sand Filter and Resin Tank:
- a.
- Development of mathematical models that dynamically describe the behavior of the sand filter and the resin tank.
- b.
- Simulation of differential equations associated with a specific focus on Siemens technologies to optimize process performance.
- c.
- Validation of models by comparison with experimental data and adjustments to accurately reflect the behavior of the actual system.
- PID Controller Design and Tuning:
- a.
- Design of a specific PID controller using Siemens technologies to regulate the level of the sand filter and the pressure of the resin tank.
- b.
- Implementation of advanced automatic control techniques to improve process efficiency and stability.
- c.
- Controller tuning through simulations and hands-on testing in the stormwater treatment system.
- Establishing Electrical and Electronic Connections:
- a.
- Detailed definition of the electrical and electronic requirements of the stormwater treatment system.
- b.
- Selection of Siemens components that meet industry standards and are compatible with the safe and efficient operation of the system.
- c.
- Design of a diagram of electrical and electronic connections, considering the integration of Siemens technologies and ensuring compatibility with the selected components.
- d.
- Verification and validation of connections through preliminary safety and efficiency tests.
- Development of the Water-Treatment Process Programming:
- a.
- Definition of the specific programming requirements of the process, considering the optimal management of resources and adaptability to changing conditions.
- b.
- Programming of advanced control logic using Siemens automation systems.
- c.
- Integration of climate adaptability algorithms to ensure efficient operation in different weather conditions.
- d.
- Verification and testing of programming in simulated environments prior to practical implementation.
- Implementation of Industrial Communications:
- a.
- Selection of Siemens technologies for the implementation of industrial communications.
- b.
- Configuration of communication systems that allow remote monitoring, control, and data collection of the stormwater treatment system.
- c.
- Integration of standard communication protocols to ensure compatibility and efficiency in data transmission.
- Human–Machine Interface (HMI) System Integration:
- a.
- Selection and configuration of Siemens components for HMI implementation.
- b.
- Design of the graphical interface of the HMI for local monitoring and control of the process.
- c.
- Integration of the HMI with the Siemens PLC to enable real-time adjustments and efficiency optimization.
- d.
- Extensive interface testing and tweaking based on user feedback.
2.1. Development of the Piping and Instrumentation Diagram (P&ID)
2.2. Dynamic Model and Controller Design
- The level of the sand filter and the control of the TB50 tank level.
- The inlet and outlet pressure that exists in the anionic resin tank.
2.2.1. Dynamic Model of the Sand Filter
2.2.2. Simulation of the Sand Filter Differential Equation
2.2.3. Development of the PID Driver
2.2.4. PID Controller Gains Optimization Using Genetic Algorithms
2.2.5. Simulation of PID Control Applied to Level Control
2.2.6. Simulation of Optimal PID Control Applied to Level Control
2.2.7. Dynamic Model for Resin Tank
2.2.8. Simulation of the Differential Equation for the Resin Tank
2.2.9. Optimization of the PID Controller Gains through Genetic Algorithms Applied to the Pressure Going to the Resin Tank
2.2.10. Simulation of PID Control Applied to the Pressure Going to the Resin Tank
2.2.11. Simulation of Optimal PID Control Applied to the Pressure Going to the Resin Tank s
3. Electrical and Electronic Process Connections
3.1. Scheduling the Water-Treatment Process
3.2. Industrial Communications and Networks
- The ethernet cable that comes from the main switch of the TESCo connects to the router’s WLAN in order to maintain the internet on the computer equipment or smart equipment.
- On the router, you need to generate IP addresses for the WiFi part and the ethernet part. This is performed in order for all equipment to be in communication with the PLC and the web address.
- Each computer on the LAN port has its IP address, as shown in Figure 31.
- For smart devices, your WiFi port is configured with the IP address, as seen in Figure 32.
- The connections between the different computers are checked for communication; this can be checked by pinging the computer. In Figure 33, you can see how this situation plays out.
- If there is communication between them, there will be communication when they enter the computer’s web server. It is worth mentioning that all teams will be able to enter.
- In a Google or Edge search engine, you enter the IP address of the PLC; it sends you to a Siemens website.
- Enter your password.
- It opens a window where you can see the HMI that was made. This can be seen in Figure 34. Note: In the Experiments chapter, you can see in more detail what is proposed at this point.
3.3. Experimental Results
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
P&ID | Piping and instrumentation diagram. |
PID | Protortional, integral, and derivative. |
SP | Set Point. |
HMI | Human–machine interface. |
PLC | Programmable Logic Controller. |
GA | Genetic algorithm. |
Vcd | Direct Current Voltage. |
TRA | Anionic Resin Tank. |
WIFI | Wireless Fidelity. |
WLAN | Wireless Local Area Network. |
IP | Internet Protocol. |
LAN | Local Area Network. |
UTP | Unshielded Twisted Pair. |
PROFINET | Process Field Network. |
PWM | Pulse Width Modulated. |
AQ | Analog output. |
U | Control output. |
MSE | Mean square error. |
Ub+ | Positive feeding. |
Ub- | Negative feeding. |
References
- Raimondi, A.; Quinn, R.; Abhijith, G.R.; Becciu, G.; Ostfeld, A. Rainwater Harvesting and Treatment: State of the Art and Perspectives. Water 2023, 15, 1518. [Google Scholar] [CrossRef]
- Elhabyan, R.; Shi, W.; St-Hilaire, M. Coverage protocols for wireless sensor networks: Review and future directions. J. Commun. Netw. 2019, 21, 45–60. [Google Scholar] [CrossRef]
- SEGOB. Norma oficial Mexicana NOM-127-SSA1-2021, Agua Para Uso y Consumo Humano. Límites Permisibles de la Calidad del Agua. México: NOM-127-SSA1-2021. 2022; pp. 1–148. Available online: https://www.dof.gob.mx/nota_detalle.php?codigo=5650705&fecha=02/05/2022#gsc.tab=0 (accessed on 28 January 2024).
- CONAGUA. Calidad del Agua en México. In Gobierno de México. Available online: https://www.gob.mx/conagua/articulos/calidad-del-agua (accessed on 8 November 2023).
- Secretaría de Agricultura y Desarrollo Rural. El Campo y la Pesca nos Unen. Secretaría de Agricultura y Desarrollo Rural. Available online: https://www.gob.mx/agricultura/articulos/lo-mejor-de-la-semana-266071 (accessed on 28 November 2023).
- Maguey, H. Más de 80% del Agua se va en uso Agrícola y de la Industria. GACETA UNAM. Available online: https://www.gaceta.unam.mx/crisis-agua-industria/ (accessed on 28 November 2023).
- INFOBAE. México Inaugura la Primera Planta Desalinizadora de Agua de Mar en el Continente Americano. INFOBAE. Available online: https://www.infobae.com/america/mexico/2019/09/01/mexico-inaugura-la-primera-planta-desalinizadora-de-agua-de-mar-en-el-continente-americano/ (accessed on 28 November 2023).
- Nawaz, M.H.; Baig, M.A. Domestic three stage water-treatment option for harvested rainwater in water-stressed communities. IOP Conf. Ser. Mater. Sci. Eng. 2018, 414, 012030. [Google Scholar] [CrossRef]
- NNizam, U.M.; Hanafiah, M.M.; Mokhtar, M.B.; Jalal, N.A. Water Quality of Rooftop Rainwater Harvesting System (MyRAWAS). IOP Conf. Ser. Earth Environ. Sci. 2021, 880, 012039. [Google Scholar] [CrossRef]
- Faza, K.; Suwartha, N. The effect of roof surface area on the quality and quantity of rainwater runoff in the rainwater harvesting system. IOP Conf. Ser. Earth Environ. Sci. 2021, 623, 012010. [Google Scholar] [CrossRef]
- Zhang, D.; Ding, X.; Liu, J.; Mei, C. Review on mechanism and technical measures of urban rainwater harvesting. IOP Conf. Ser. Earth Environ. Sci. 2022, 983, 012106. [Google Scholar] [CrossRef]
- Le Pivert, M.; Piebourg, A.; Bastide, S.; Duc, M.; Leprince-Wang, Y. Direct One-Step Seedless Hydrothermal Growth of ZnO Nanostructures on Zinc: Primary Study for Photocatalytic Roof Development for Rainwater Purification. Catalysts 2022, 12, 1231. [Google Scholar] [CrossRef]
- Hazmi, A.; Rosadi, M.Y.; Desmiarti, R.; Li, F. Effect of Radio-Frequency Treatment on the Changes of Dissolved Organic Matter in Rainwater. Water 2022, 14, 111. [Google Scholar] [CrossRef]
- Wang, L.; Liu, X. Sustained Release Technology and Its Application in Environmental Remediation: A Review. Int. J. Environ. Res. Public Health 2019, 16, 2153. [Google Scholar] [CrossRef] [PubMed]
- Wang, Z.; Zhang, Y.; Chen, Y.; Liu, H.; Wang, B.; Wang, C. A Survey on Programmable Logic Controller Vulnerabilities, Attacks, Detections, and Forensics. Processes 2023, 11, 918. [Google Scholar] [CrossRef]
- Nadeem, N.; Sultana, U.; Khan, B.A.; Zaib, H. The Designing of a Wireless Integrated Building Infrastructure Automation System. Eng. Proc. 2023, 46, 38. [Google Scholar] [CrossRef]
- Castillo, J.M.; Barbieri, G.; Mejia, A.; Hernandez, J.D.; Garces, K. A GEMMA-GRAFCET Generator for the Automation Software of Smart Manufacturing Systems. Machines 2021, 9, 232. [Google Scholar] [CrossRef]
- Zhang, X.; Duan, N.; Jiang, L.; Xu, F.; Yu, Z.; Cheng, W.; Lv, W.; Qiu, Y. Application of PLC-Based Spectrophotometric System Nitrogen Protection Device to Automated Direct Measurement of Target Substances in Zinc Hydrometallurgy. Processes 2023, 11, 672. [Google Scholar] [CrossRef]
- Ronceros, C.; Medina, J.; Vásquez, J.; León, P.; Fernández, J.; Urday, E. Supervision and Control System of the Operational Variables of a Cluster in a High-Pressure Gas Injection Plant. Processes 2023, 11, 698. [Google Scholar] [CrossRef]
- Huh, J.-H.; Koh, T.; Seo, K. Design of a Shipboard Outside Communication Network and Its Testbed Using PLC: For Safety Management during the Ship Building Process. Processes 2018, 6, 67. [Google Scholar] [CrossRef]
- Mathews, J.B.; Rachner, J.; Kaven, L.; Grunert, D.; Göppert, A.; Schmitt, R.H. Industrial applications of a modular software architecture for line-less assembly systems based on interoperable digital twins. Front Mech. Eng. 2023, 9, 1113933. [Google Scholar] [CrossRef]
- Zhang, R.X. Design and Research on Hydraulic Control System of 50 kg High Speed Impact Testing Machine. Master’s Thesis, Shenyang University of Technology, Shenyang, China, 2022. [Google Scholar]
- Jin, F.; Luo, Y.; Zhao, Q.; Cao, J.; Wang, Z. Energy loss analysis of transition simulation for a prototype reversible pump turbine during load rejection process. Energy 2023, 284, 129216. [Google Scholar] [CrossRef]
- Sheng, T.; Luo, H.; Wu, M. Design and Simulation of a Multi-Channel Biomass Hot Air Furnace with an Intelligent Temperature Control System. Agriculture 2024, 14, 419. [Google Scholar] [CrossRef]
- Li, R.; Yuan, W.; Ding, X.; Xu, J.; Sun, Q.; Zhang, Y. Review of Research and Development of Hydraulic Synchronous Control System. Processes 2023, 11, 981. [Google Scholar] [CrossRef]
- Zaborniak, D.; Patan, K.; Witczak, M. Design, Implementation, and Control of a Wheel-Based Inverted Pendulum. Electronics 2024, 13, 514. [Google Scholar] [CrossRef]
- Han, W.; Hu, X.; Damiran, U.; Tan, W. Design and implementation of high-order PID for second-order processes with time delay. Front. Control Eng. 2022, 3. [Google Scholar] [CrossRef]
- Muqeet, A.; Israr, A.; Zafar, M.H.; Mansoor, M.; Akhtar, N. A novel optimization algorithm based PID controller design for real-time optimization of cutting depth and surface roughness in finish hard turning processes. Results Eng. 2023, 18, 101142. [Google Scholar] [CrossRef]
- Moreira, L.J.; de A Aguiar, A.P.; Júnior, G.A.; Barros, P.R. Time and Frequency Data-driven PID retuning applied in MIMO process. IFAC-PapersOnLine 2021, 54, 469–474. [Google Scholar] [CrossRef]
- Chiou, J.-S.; Liu, M.-T. Numerical simulation for Fuzzy-PID controllers and helping EP reproduction with PSO hybrid algorithm. Simul. Model Pract. Theory 2009, 17, 1555–1565. [Google Scholar] [CrossRef]
- Li, M.; Xu, J.; Wang, Z.; Liu, S. Optimization of the Semi-Active-Suspension Control of BP Neural Network PID Based on the Sparrow Search Algorithm. Sensors 2024, 24, 1757. [Google Scholar] [CrossRef]
- Mao, W.-L.; Chen, S.-H.; Kao, C.-Y. Fractional-Order Fuzzy PID Controller with Evolutionary Computation for an Effective Synchronized Gantry System. Algorithms 2024, 17, 58. [Google Scholar] [CrossRef]
- Lin, B.; Zheng, M.; Han, B.; Chu, X.; Zhang, M.; Zhou, H.; Ding, S.; Wu, H.; Zhang, K. PSO-Based Predictive PID-Backstepping Controller Design for the Course-Keeping of Ships. J. Mar. Sci. Eng. 2024, 12, 202. [Google Scholar] [CrossRef]
- Patel, R.; Kumar, V. Artificial Neuro Fuzzy Logic PID Controller based on BF-PSO Algorithm. Procedia Comput. Sci. 2015, 54, 463–471. [Google Scholar] [CrossRef]
Id | Description | Symbol, Value, and Unity |
---|---|---|
1 | Cylinder area | |
2 | Maximum height | |
3 | Flow constant | |
4 | Valve Area Constant 1 | |
5 | Water ingress based on the flow pressure generated by the engine | |
6 | Opening the outlet valve valve 1 | |
7 | Gravity | |
8 | Water permeability |
Water Pressure Based on Height | ||
---|---|---|
Id | Value | Unit |
1 | ||
2 | ||
3 |
Id | Description | Symbol, Value, and Unity |
---|---|---|
1 | Pipeline area | |
2 | Larger orifice | |
3 | Hole | |
4 | Inlet flow | |
5 | Gravity | |
6 | Gauge fluid density | |
7 | Pressure 2 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Balcazar, R.; Rubio, J.d.J.; Hernandez, M.A.; Pacheco, J.; Retes-Mantilla, R.; Rosas, F.J.; Zacarías, A.; Torres-Mancera, M.T.; Orozco, E.; Saavedra González, G.; et al. Integrated Design and Control of a Sustainable Stormwater Treatment System. Processes 2024, 12, 644. https://doi.org/10.3390/pr12040644
Balcazar R, Rubio JdJ, Hernandez MA, Pacheco J, Retes-Mantilla R, Rosas FJ, Zacarías A, Torres-Mancera MT, Orozco E, Saavedra González G, et al. Integrated Design and Control of a Sustainable Stormwater Treatment System. Processes. 2024; 12(4):644. https://doi.org/10.3390/pr12040644
Chicago/Turabian StyleBalcazar, Ricardo, José de Jesús Rubio, Mario Alberto Hernandez, Jaime Pacheco, Rogel Retes-Mantilla, Francisco Javier Rosas, Alejandro Zacarías, María Teresa Torres-Mancera, Eduardo Orozco, Gabriela Saavedra González, and et al. 2024. "Integrated Design and Control of a Sustainable Stormwater Treatment System" Processes 12, no. 4: 644. https://doi.org/10.3390/pr12040644
APA StyleBalcazar, R., Rubio, J. d. J., Hernandez, M. A., Pacheco, J., Retes-Mantilla, R., Rosas, F. J., Zacarías, A., Torres-Mancera, M. T., Orozco, E., Saavedra González, G., & Zermeño Caballero, I. (2024). Integrated Design and Control of a Sustainable Stormwater Treatment System. Processes, 12(4), 644. https://doi.org/10.3390/pr12040644