Design and Implementation of a Multivendor PLC Data Acquisition System based on Automatic Protocol Detection and Tag Engine

Muhammad Febriansyah, Edy Supriyadi, Riadi Marta Dinata

Abstract


Integrating programmable logic controllers (PLCs) from multiple vendors into a single data acquisition system requires complex reconfiguration whenever a new device is added, owing to differences in communication protocols across vendors. This study presents the design and development of a Python-based multi-vendor PLC data acquisition system, named pythonGab, which automatically detects communication protocols based on tag address patterns without requiring explicit device-specific configuration. The system architecture consists of an Excel configuration file reader, a tag engine that groups connections by IP address and port pairs, Modbus TCP and S7comm/Snap7 driver plug-ins, and SQLite storage with non-destructive schema evolution. A Design Science Research approach was adopted, with functional testing conducted across three sites (ISTN/Jagakarsa, UI/Depok, and UT/Serang) over a period of 26.47 hours. The system successfully acquired 22 active tags using two communication protocols simultaneously and recorded 6,001 log entries without requiring code modifications between sites. Tag numbering gaps, such as the transition from ID 5 to ID 8, did not disrupt the log table structure. Sampling intervals of 5–6 seconds accounted for 91.5% of observations, with 5 seconds being the most frequent interval (73.5%). The zero-rate was 7.7% at ISTN (Modbus TCP), 9.1% at UI (S7comm) after excluding one tag with a data type mismatch, and 47.8% at UT/Serang. The system does not yet support PLCs with non-standard slave ID, rack, and slot configurations because these parameters remain hard-coded. Furthermore, end-to-end latency has not yet been measured for individual devices. The novelty of this study lies in combining automatic protocol detection, external file-based tag configuration, and multi-site field testing within a single implementation.

Keywords


automatic protocol detection; Modbus TCP; multivendor SCADA system; non-destructive schema evolution; PLC data acquisition; S7comm; tag engine

Full Text:

PDF

References


B. Babayigit & M. Abubaker. (2023). Industrial Internet of Things: A Review of Improvements Over Traditional SCADA Systems for Industrial Automation. IEEE Systems Journal, 18(1), 120–133. https://doi.org/10.1109/JSYST.2023.3270620

Z. Brahmia, F. Grandi, & B. Oliboni. (2024). A Literature Review on Schema Evolution in Databases. Computing Open. https://doi.org/10.1142/S2972370124300012

A. Busboom. (2024). Automated Generation of OPC UA Information Models: A Review and Outlook. Journal of Industrial Information Integration, Article 100602. https://doi.org/10.1016/j.jii.2024.100602

C. G. Calatrava, Y. B. Fontal, F. M. Cucchietti, & C. Diví-Cuesta. (2021). NagareDB: A Resource-Efficient Document-Oriented Time-Series Database. Data, 6(8), Article 91. https://doi.org/10.3390/data6080091

D. Calderón, F. J. Folgado, I. González, & A. J. Calderón. (2024). Implementation and Experimental Application of Industrial IoT Architecture using Automation and IoT Hardware/Software. Sensors, 24(24), Article 8074. https://doi.org/10.3390/s24248074

G. Cheng, Y. Lin, A. Abur, A. Gómez-Expósito, & W. Wu. (2024). A Survey of Power System State Estimation using Multiple Data Sources: PMUs, SCADA, AMI, and Beyond. IEEE Transactions on Smart Grid, 15(1), 1129–1151. https://doi.org/10.1109/TSG.2023.3286401

M. Fakih, R. Dharmaji, Y. Moghaddas, G. Quiros, O. Ogundare, & M. A. Al Faruque. (2024). LLM4PLC: Harnessing Large Language Models for Verifiable Programming of PLCs in Industrial Control Systems. Dalam Proceedings of the 46th International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP ‘24) (hlm. 192–203). Association for Computing Machinery. https://doi.org/10.1145/3639477.3639743

M. Febriansyah & R. M. Dinata. (2026). Pemodelan Graf Virtual Energi dari Data IoT Sekuensial untuk Gedung Cerdas. Sistemasi: Jurnal Sistem Informasi, 15(3), 795–807. https://doi.org/10.32520/stmsi.v15i3.5714

S. Figueroa-Lorenzo, J. Añorga, & S. Arrizabalaga. (2019). A Role-based Access Control Model in Modbus SCADA Systems: A Centralized Model Approach. Sensors, 19(20), Article 4455. https://doi.org/10.3390/s19204455

P. Grzesik & D. Mrozek. (2020). Comparative analysis of time series databases in the context of edge computing for low power sensor networks. Dalam Computational Science: ICCS 2020. Springer. https://doi.org/10.1007/978-3-030-50426-7_28

W. He, M. J. A. Baig, & M. T. Iqbal. (2025). An Internet of Things–Supervisory Control and Data Acquisition (IoT-SCADA) Architecture for Photovoltaic System Monitoring, Control, and Inspection in Real Time. Electronics, 14(1), Article 42. https://doi.org/10.3390/electronics14010042

International Society of Automation. (2025). ANSI/ISA-62443-2-1-2024: Security for Industrial Automation and Control Systems: Part 2-1. https://www.isa.org/standards-and-publications/isa-standards/isa-iec-62443-series-of-standards

F. Katulić, D. Sumina, S. Groš, & I. Erceg. (2023). Protecting Modbus/TCP-based Industrial Automation and Control Systems using Message Authentication Codes. IEEE Access, 11, 47007–47023. https://doi.org/10.1109/ACCESS.2023.3275443

A. Lacasa, J. Llopis, N. Montés, I. Peinado-Asensi, & E. Garcia. (2025). Cross-PLC: An I3oT Cross Platform to Manage Communications for Applications in Real Factories. Sensors, 25(10), Article 2973. https://doi.org/10.3390/s25102973

M. Ladegourdie & J. Kua. (2022). Performance Analysis of OPC UA for Industrial Interoperability Towards Industry 4.0. IoT, 3(4), 507–525. https://doi.org/10.3390/iot3040027

S. Liu. (2023). Design and Implementation of a Lightweight Security-Enhanced Scheme for Modbus TCP Protocol. Security and Communication Networks, 2023, Article 5486566. https://doi.org/10.1155/2023/5486566

T. Martins & S. V. G. Oliveira. (2022). Enhanced Modbus/TCP Security Protocol: Authentication and Authorization Functions Supported. Sensors, 22(20), Article 8024. https://doi.org/10.3390/s22208024

F. E. Mustafa et al. (2023). A Review on Effective Alarm Management Systems for Industrial Process Control: Barriers and Opportunities. International Journal of Critical Infrastructure Protection, 41, Article 100599. https://doi.org/10.1016/j.ijcip.2023.100599

National Institute of Standards and Technology. (2023). Guide to Operational Technology (OT) Security (NIST SP 800-82 Rev. 3). https://doi.org/10.6028/NIST.SP.800-82r3

C. Nikolajew & H. Eichelberger. (2024). Industry 4.0 Connectors: A Performance Experiment with Modbus/TCP. arXiv preprint, arXiv:2410.15813. https://doi.org/10.5281/zenodo.13902632

D. Pliatsios, P. G. Sarigiannidis, T. Lagkas, & A. Sarigiannidis. (2020). A Survey on SCADA Systems: Secure Protocols, Incidents, Threats and Tactics. IEEE Communications Surveys and Tutorials, 22(3), 1942–1976. https://doi.org/10.1109/COMST.2020.2987688

O. Rashad, O. Attallah, & I. Morsi. (2022). A Smart PLC-SCADA Framework for Monitoring Petroleum Products Terminals in Industry 4.0 via Machine Learning. Measurement and Control. https://doi.org/10.1177/00202940221103305

M. Šverko, T. Galinac Grbac, & M. Mikuc. (2022). SCADA Systems with Focus on Continuous Manufacturing and Steel Industry: A Survey on Architectures, Standards, Challenges and Industry 5.0. IEEE Access, 10, 109395–109430. https://doi.org/10.1109/ACCESS.2022.3211288

H. Trifonov & D. Heffernan. (2023). OPC UA TSN: A Next-Generation Network for Industry 4.0 and IIoT. International Journal of Pervasive Computing and Communications, 19(3), 386–411. https://doi.org/10.1108/IJPCC-07-2021-0160

C. Wang, J. Qiao, X. Huang, S. Song, H. Hou, T. Jiang, L. Rui, J. Wang, & J. Sun. (2023). Apache IoTDB: A Time Series Database for IoT Applications. Proceedings of the ACM on Management of Data, 1(2), Article 195. https://doi.org/10.1145/3589775

Y. Wang, D. Peng, E. Qi, & H. Wang. (2022). Modbus/TCP Data Acquisition System based on Industrial Ethernet Technology. Dalam 2022 4th International Conference on Electrical Engineering and Control Technologies (CEECT) (hlm. 746–750). IEEE. https://doi.org/10.1109/CEECT55960.2022.10030131

M. I. Yamin, A. Ariman, R. M. Dinata, & N. Purnomo. (2026). Comparative Performance Evaluation of MQTT, WebSocket, and Firebase on ESP32-C3 for Real-Time IoT Communication. JATI: Jurnal Mahasiswa Teknik Informatika, 10(3), 3917–3923. https://doi.org/10.36040/jati.v10i3.18056

I. Zagan & V. G. Găitan. (2021). Experimental Implementation and Performance Evaluation of an IoT Access Gateway for the Modbus Extension. Sensors, 21(1), Article 246. https://doi.org/10.3390/s21010246

I. Zagan & V. G. Găitan. (2022). Enhancing the Modbus Communication Protocol to Minimize Acquisition Times based on an STM32-Embedded Device. Mathematics, 10(24), Article 4686. https://doi.org/10.3390/math10244686




DOI: https://doi.org/10.32520/stmsi.v15i11.6864

Article Metrics

Abstract view : 0 times
PDF - 0 times

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.