PLCtalk.net

Data: Acquiring and Logging Information With PLCs

Data is useful in the moment to make process decisions, and in the long run to provide insights on equipment maintenance and optimization. But how does data get from the PLC to the point of analytics?


Technical Articles Oct 23, 2025 by Kelvin Findlay

We most often think of PLCs in a control function. This is natural, given the title. However, we cannot ignore the very important first step of the entire process: the gathering of data that enables intelligent control. With the plethora of availability in our modern information age, this may seem routine and uninteresting. However, it is this data that keeps us moving toward a more efficient, automated, and optimized future.

PLCs feature inputs of various types, network buses, and robust logging capabilities. This half of the system requires careful planning, ensuring compatibility with and accommodation for a myriad of machines and sensors. Taking inventory of your data sources is the first step.

 

Data Sources

Data is derived from every machine, process, and sensor, whether on the factory floor, city block, or in a remote alpine canyon supplied by a 5G remote I/O unit. Much of it will land in the digital memory of the PLC for processing and translation into the physical world of control. Some will simply be logged for future use or troubleshooting. Either way, PLCs play a big role in data acquisition and logging.

 

Figure 1. Virtually all PLCs allow data to be logged in some form, either locally (this one has a compact flash card slot) or remotely.

 

Machine Data

Machines produce operational data such as performance statistics and safety feedback loops, as well as diagnostic data such as error codes, vibration, temperature, pressure, and more.

 

Process Data

Processes are rich in data as well, producing readings from basic counters and presence detection, to fluid levels and flow rates. Signals from vision systems, robotics, or other advanced systems are also common.

 

Remote Data

Other sensors are spread throughout buildings, cities, infrastructure, and ecosystems to gather important information from local climates to remote operation status.

PLCs gather this data directly through local I/O modules and network buses for the purposes of control. For older systems, PLCs also provide a gateway to supervisory control software. Modern factories and facilities store this data on central servers and in the cloud for consumption by MES, ERP, and other business software suites.

Each data source must be properly mapped to the PLC, noting signal types, communication protocols, power consumption, and networking requirements. Only then can the control system do its job.

 

Field I/O and Gateways

When sensors are located remotely from the PLC, field I/O modules and network gateways extend the reach of the control system to remote locations. These devices wire directly to remote sensors, providing a network path back to a PLC. Remote nodes may connect with wires, if within a few hundred feet of the PLC, or they may be wireless (like 5G) if they are located far away from any infrastructure.

With the miniaturization of CPUs, PLCs themselves are also getting smaller, less expensive, and more likely to be installed remotely. Simplified user interfaces and streamlined control features are common in remote PLC modules. These advanced IoT devices can monitor remote data and perform a litany of control functions on site, but can also communicate relevant data back to a supervisory control system with a larger, more capable PLC.

 

Managing Data

Data logging capacity is dependent on storage size. Make sure you get a large enough storage to meet your needs. This can be done by internal storage, expandable storage, including via removable flash drives, and via expansion modules. Care should be taken to transfer logs to long-term storage on a regular basis. Backup intervals will shorten for critical applications.

Modern PLCs include multiple ways to transfer logs, including removable flash drives or SD cards, various file transfer protocols (FTPs), emailing/texting data (for limited data sets), and connecting the data to a remote on-site or cloud server for long-term analysis.

 

Figure 2. Various physical sizes of memory cards for data logging.

 

When specifying data log storage, consider the following:

  • Data logging intervals
  • Individual log size
  • Total number of endpoints being logged
  • Log backup method and networking

If your PLC is isolated either physically or digitally, such that transferring data is more difficult, ensure that you have the right processes and training in place to prevent filling up your storage and overwriting older logs.

Some data logging happens in truly remote locations in the field. In these applications, cellular or satellite communications are used to pull data from the field into central servers or cloud storage. Make sure you understand how reading intervals and packet size affect both your bandwidth and data plans. An adjustment from sampling every minute to once every five minutes, for example, can make all the difference. Packet size refers to selecting only the data that is important to the process or for analysis.

 

The Importance of Data Logging

Data logging is not just a common feature in modern PLCs, but an invaluable one. Data logs are important for many reasons:

  • Failure troubleshooting
  • Compliance validation
  • Tracking safety violation events
  • Monitoring equipment failure

For these reasons, and many more, logging data is often a core requirement.

Modern control systems take this to the next level. Many software tools exist, including AI-assisted solutions, to parse data logs to identify patterns and make process improvements. For many years, this analysis was focused on preventative maintenance, which is valuable in its own right. However, many recent software analysis suites claim to unlock failure and scrap reduction, throughput optimization, energy savings, and other process improvements.

 

Figure 3. This Productivity PLC allows data logging via the SD card, USB to a local machine, or MQTT to a remote storage location.

 

Data-First Design

Data acquisition has always been important. To give an abbreviated sports analogy, you have to catch a ball before you can do anything with it. However, with advancements in machine learning and AI, significantly improving our ability to analyze massive amounts of data over the last few years, data logging and acquisition have never been more valuable.

This means that investments in sensors, smart machines, and increasingly intelligent field I/O will all be on the rise, empowering control system designers to fine-tune control and PLC programming like never before. The future will be more integrated, with industrial hardware and software working more like a central nervous system than a processing line. Bear this in mind when selecting and commissioning your next PLC, with its accessory I/O modules and sensors.

 

All images used courtesy of SparkWire

  • S
    SimonOC2K November 04, 2025

    Or use an Industreweb Sentinel or Solo Data node to log from multiple PLC, and submit it to any database and support realtime actions like alerting maintenance staff or sending signals to other Stations.

  • E
    Epcalh01 November 04, 2025

    I have had some luck with Maple System’s headless HMI for moving data from PLC to SQL to Excel. I’ve been able to move timestamped results from vision sensors to Excel via mySQL over WiFi. It’s not perfect, but it did work. Plus it was only $500.

  • S
    spauldo November 05, 2025

    There’s not much information in this article.  If you’re going to send me email notifications to tell me you have a new article, please put forth at least some effort to make it worth my while.