Fathooo
Menu
Contactar

PLC Data Capture and Visualization System

Software for capturing and visualizing real-time data from PLCs, optimizing industrial monitoring and control.

Matplotlib PLC Python SQLite Tkinter

About the project

Overview

My project TA (YOUR ANALYSIS) consists of developing a software system aimed at capturing real-time data from a PLC. This data includes information such as flow rate, carbon dioxide, methane, among others. The system has several components in its architecture.

System Components

ta architecture

  1. Capture Script: This script is responsible for capturing data directly from the PLC. Using specific communication protocols, such as Modbus or OPC, the script continuously collects the necessary data in real-time.

  2. Bridge System: The bridge system is based on an API developed using Lambda Express. This API receives the data captured by the script and sends it to a content management system. Additionally, it allows requests from other systems, such as Prometheus, which extracts the stored data for later visualization in Grafana.

  3. Content Management System: The content management system is responsible for storing the data received by the API. It uses a database to save the information in a structured manner and ensure the integrity of the captured data. This allows for efficient handling of large volumes of information and quick access to the stored data.

  4. Integration with Grafana: The system integrates with Grafana, a data visualization and dashboard creation tool. The data stored in the database can be used to generate graphs and interactive panels, making it easier for the end user to interpret and analyze. This provides an intuitive and engaging way to visualize the information captured from the PLC.

Operation

Initial Configuration

We start by configuring the values in our content management system. They are added one by one depending on what we desire.

  • Access the content management system. Login to the content management system platform Strapi

  • Parameter configuration. Parameter configuration

  • Configuration of relationships with other tables. Configuration of relationships with other tables

  • Add memory spaces in the PLC. Add memory spaces in the PLC

  • Sending random data from the script console with [8]. Sending random data from the script console

  • Successful execution of sending random data in a loop. Successful execution of sending random data in a loop

  • The values are stored in our database. Here it is observed. Data and values stored in Strapi

  • Dashboard receiving data. Visualization in Grafana of the variables View data 1 View data 3

Conclusion

This software project offers a comprehensive solution for capturing data from a PLC and visualizing it clearly and attractively through Grafana. The structure of the system, composed of a capture script, a bridge system, and integration with Grafana, ensures efficient data capture and effective visual presentation. Additionally, the use of technologies such as Lambda Express and databases allows for secure and scalable management of the captured information.

PLC Data Capture and Visualization System