wiring images

PLC Data Capture and Visualization System

fathooo
Industrial automation, Data analysis, Monitoring


Overview

My TA (YOUR ANALYSIS) project consists of developing a software system that aims to capture 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 and in real-time collects the necessary data.

  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. It also allows receiving 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 store the information in a structured manner and ensure the integrity of the captured data. This allows 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 charts and interactive panels, making it easier for the end user to interpret and analyze the data. This provides an intuitive and attractive 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 want.

  • Access the content management system. Strapi content management system login

  • 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 is an observation. 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 complete solution for capturing data from a PLC and visualizing it in a clear and attractive way through Grafana. The structure of the system, consisting of a capture script, a bridge system, and integration with Grafana, ensures efficient capture and effective visual presentation of the data. In addition, the use of technologies such as Lambda Express and databases allows for secure and scalable handling of the captured information.