The integration challenge - connecting modernity with tradition

Most manufacturing facilities already have developed industrial automation infrastructure - PLC controllers that control machines, SCADA systems for process supervision and visualization, MES software for production management. These systems have often been operating for years, are proven, and trusted by production teams.

Implementing artificial intelligence doesn't mean replacing these systems - that would be impractical, expensive, and risky. Instead, AI should be an extension of existing infrastructure, adding an analytical layer that leverages data already being collected by these systems. The key to success is seamless integration that doesn't disrupt existing processes while opening new possibilities.

In this article, we'll discuss in detail the architecture of AI integration with industrial systems, popular communication protocols used in industrial automation, and best practices that GCAIT has developed for connecting modern AI solutions with existing OT (Operational Technology) infrastructure.

Integration architecture - understanding automation layers

To properly integrate AI with existing systems, you must first understand how industrial automation is organized. The ISA-95 standard defines five levels of automation hierarchy, each of which plays a specific role.

The ISA-95 model - industrial automation layers

Industrial automation is organized in layers according to the ISA-95 standard, which defines how different levels of industrial systems are organized and communicate:

Level 0 is the physical process - machines, sensors, actuators, all the physical elements that actually perform production work. This is where raw data about machine status, temperatures, pressures, and vibrations is collected.

Level 1 is basic control - PLC (Programmable Logic Controllers) and DCS (Distributed Control Systems) that directly control machines and processes. These receive signals from sensors and send commands to actuators.

Level 2 is supervision and control - SCADA (Supervisory Control and Data Acquisition) systems and HMI (Human-Machine Interface) interfaces that allow operators to monitor and control production processes. This is where data from multiple controllers is aggregated and presented in an understandable form.

Level 3 is production management - MES (Manufacturing Execution Systems) and CMMS (Computerized Maintenance Management Systems) that manage production, schedules, work orders, and maintenance.

Level 4 is business planning - ERP (Enterprise Resource Planning) systems that manage enterprise resources, strategic planning, and integration with other business functions.

AI systems for predictive maintenance operate mainly at levels 2-3, retrieving data from lower layers (where machine status information is actually collected) and passing recommendations and alerts to higher-level management systems that can take action.

Communication protocols - the language of integration

Integrating AI with industrial systems requires a common communication language. Several communication protocols are used in industry, each with its own application and advantages. Understanding the differences between them allows choosing the right protocol for a specific application.

OPC UA - the gold standard of industrial integration

OPC UA (Unified Architecture) is currently the most important and universal integration protocol in industry. Its popularity stems from several key advantages that make it an ideal solution for integrating AI with industrial systems.

First, OPC UA is platform-independent - it works equally well on Windows, Linux, or embedded devices. This means you can integrate AI systems running on Linux servers with PLC controllers running on various platforms without worrying about compatibility.

Second, security is built into the protocol itself - OPC UA offers communication encryption, advanced user authorization, and full data access auditing. This is especially important in industrial environments where production data security is crucial.

Third, OPC UA offers advanced information modeling - instead of just raw values, the protocol allows semantic data description, meaning the AI system knows not only that the temperature is 75°C but also that it's the main pump bearing temperature, which should be in the 60-80°C range. This greatly facilitates integration and data interpretation.

Finally, OPC UA is scalable - it can be used for communication with a single device as well as for integrating an entire factory, connecting hundreds of devices into one coherent network.

MQTT - lightweight protocol for distributed IoT systems

MQTT (Message Queuing Telemetry Transport) is ideal for transmitting data from distributed IoT sensors, especially in applications where energy efficiency and minimal network bandwidth consumption matter.

Its main advantage is minimal bandwidth consumption - an MQTT message header is just 2 bytes, making it ideal for wireless applications where every byte matters for battery life. This makes MQTT especially popular in distributed monitoring systems where we have many sensors transmitting data over wireless networks.

The publish/subscribe model allows for flexible network topology - sensors publish data to specific topics, and AI systems subscribe only to topics that interest them. This significantly simplifies system architecture compared to the traditional client-server model.

MQTT also offers QoS (Quality of Service) levels that guarantee message delivery even in case of network problems. Popular MQTT brokers like Mosquitto, HiveMQ, or AWS IoT offer additional features such as message storage or device management.

Modbus - industrial classic that hasn't lost its relevance

Modbus is an older protocol that was introduced in the 1970s but still remains one of the most popular communication protocols in industry. Its popularity stems from its simplicity and widespread support - virtually every PLC controller supports Modbus.

Modbus RTU (Remote Terminal Unit) uses serial communication over RS-485, making it ideal for applications where devices are connected directly by serial cable. Modbus TCP uses Ethernet, allowing integration with industrial networks and IT systems.

Modbus's simple implementation makes it easy to use and reliable, although it lacks the advanced security and information modeling features offered by OPC UA. Nevertheless, for many applications, especially in older installations, Modbus remains the best choice.

Integration with popular systems - a practical approach

In reality, most manufacturing facilities use systems from several major automation manufacturers. Each has its own specific protocols and integration tools. Here's what AI integration looks like with the most popular solutions.

Siemens - industrial automation leader

Siemens systems are widely used in industry, especially in Europe. Modern S7-1200 and S7-1500 controllers have native OPC UA support, which greatly facilitates integration with AI systems. No additional gateways or converters are needed - the controller directly exposes data through OPC UA.

The WinCC SCADA system offers the ability to export data to SQL databases, allowing integration with analytical systems working on historical data. Additionally, Siemens offers the MindSphere platform as an IoT solution with ready-made connectors to various systems, which can facilitate integration, especially if you plan to use the Siemens ecosystem.

Rockwell / Allen-Bradley - the standard in North America

Rockwell systems are very popular, especially in North America. FactoryTalk Linx acts as an OPC gateway, enabling integration with external systems. Communication with ControlLogix and CompactLogix controllers occurs through EtherNet/IP, which is an extension of standard Ethernet with industrial features.

Rockwell also offers FactoryTalk Analytics as its own AI platform, but you can also integrate external AI systems through standard protocols. The key is properly configuring FactoryTalk Linx to expose data through OPC UA or other standard protocols.

Schneider Electric - comprehensive solutions

Schneider Electric offers the EcoStruxure platform as a comprehensive IoT solution that integrates various levels of automation. Modicon M340 and M580 controllers have built-in OPC UA support, facilitating integration.

AVEVA SCADA systems (formerly Wonderware) are widely used in industry and offer various integration options, including OPC UA, allowing seamless integration with AI systems.

MES and CMMS systems - integration at the management level

Integration with production management (MES) and maintenance management (CMMS) systems is crucial because this is where recommendations and alerts from AI systems go. Most modern systems offer APIs for integration.

SAP PM/EAM offers several integration options - REST API for modern applications, RFC (Remote Function Call) for integration with SAP systems, or IDoc (Intermediate Document) for data exchange. The choice of method depends on the AI system architecture and real-time requirements.

IBM Maximo uses REST API and MIF (Maximo Integration Framework) for integration with external systems. Infor EAM offers Web Services and BOD (Business Object Documents) as integration methods.

Local MES and CMMS systems typically offer REST API or direct database access. In the case of direct database access, it's important to be cautious not to disrupt the production system and ensure appropriate security.

Integration security - protecting critical infrastructure

Connecting OT (Operational Technology) systems with IT systems requires special attention to security. Production systems are often critical to safety, the environment, and business continuity, so their protection is an absolute priority.

Network segmentation - the first line of defense

Network segmentation is a fundamental principle of industrial security. The OT (production) network should be physically or logically separated from the IT (office) network. Between them should be a DMZ (Demilitarized Zone), which acts as a buffer and allows controlled data flow.

Industrial firewalls, such as solutions from Fortinet or Palo Alto, are specifically designed to protect industrial networks. They offer advanced features such as deep packet inspection (DPI), intrusion detection (IDS), and intrusion prevention (IPS), which are tailored to the specifics of industrial protocols.

For the most critical systems, where even the smallest risk of intrusion is unacceptable, a unidirectional data flow (data diode) can be applied. This physical device allows data flow in only one direction - from the OT network to IT - completely eliminating the possibility of an attack from the IT network on production systems.

Authentication and authorization - access control

All connections between systems should be encrypted and authenticated. For OPC UA, the standard is to use X.509 certificates, which provide both communication encryption and device authentication. This is much more secure than traditional passwords, which can be intercepted or cracked.

For the MQTT protocol, you should always use TLS (Transport Layer Security) to encrypt communication. Most MQTT brokers offer support for client certificates, allowing mutual authentication of both client and broker.

Role-based access control (RBAC) allows precise permission management - different users and systems can have access only to the data and functions they need. This limits potential damage in case of a security breach of one of the accounts.

Monitoring and auditing - threat detection

All connections between systems should be logged to enable auditing and detection of suspicious activity. Logs should contain information about who connected, when, from what IP address, and what data was retrieved or sent.

Anomaly detection systems in network traffic can automatically identify unusual communication patterns that may indicate an attack or system problems. For example, a sudden increase in data being transmitted from a production system may indicate a data leak attempt or system problems.

Compliance with the IEC 62443 standard, which defines security requirements for industrial automation systems, is increasingly required by customers and regulators. It's worth ensuring that the integration implementation meets these requirements.

Implementation best practices - how to avoid common mistakes

Implementing AI integration with existing industrial systems requires careful planning and adherence to proven practices. Here are the key steps that will help avoid common problems and ensure project success.

1. Start with a comprehensive infrastructure audit

Before starting integration, it's necessary to thoroughly inventory existing infrastructure. Check what systems are installed, what communication protocols are used, what firmware and software versions are in place. Identify all integration points - where data is collected, where it's stored, how it's transmitted.

It's especially important to identify potential bottlenecks - places where network bandwidth may be insufficient, where systems may be overloaded, or where compatibility issues may occur. This will help avoid surprises during implementation and plan appropriate solutions in advance.

2. Choose the right architecture - edge or cloud?

One of the key decisions is choosing where analytical data processing takes place. Edge computing means processing data locally, at the machine or on the production floor, while cloud computing means processing in the cloud, often outside the facility premises.

For time-critical applications where every millisecond of response matters, edge computing is often the only solution. For applications where response time isn't as critical but greater computing power and the ability to analyze data from multiple facilities simultaneously are needed, cloud may be a better choice. In many cases, the best solution is a hybrid architecture that combines the advantages of both approaches.

3. Standardize protocols - avoid a protocol zoo

One of the biggest challenges in integrating industrial systems is the diversity of communication protocols. Each manufacturer has their own protocols, and in older installations, you can find dozens of different standards.

OPC UA can act as a unifying layer that allows integrating different systems through one standard protocol. This significantly simplifies architecture, reduces maintenance costs, and facilitates future expansions. Instead of creating separate integrations for each protocol, you can focus on one standard.

4. Plan network bandwidth - data needs space

For high-frequency vibration analysis, you need to transmit enormous amounts of data - hundreds of thousands of samples per second from each sensor. This can quickly overload an industrial network that often wasn't designed with such large data volumes in mind.

Make sure the network has sufficient bandwidth and that data acquisition and storage systems can handle the required volumes. Upgrading network infrastructure or applying data compression and filtering techniques may be necessary to reduce the amount of data transmitted without losing analysis quality.

5. Test in a pilot environment - don't experiment in production

Before connecting production PLC controllers to a new AI system, it's absolutely necessary to test the integration in a pilot environment. This can be a dedicated test stand, simulator, or a machine taken out of production.

Testing allows verifying that integration works correctly, that communication protocols are properly configured, that security is ensured, and that the system doesn't disrupt existing processes. It also gives the team an opportunity to learn how to operate the new system without risk to production.

GC AIT Summary - integration as the foundation of success

Based on GC AIT's project experience, integrating AI with existing industrial automation infrastructure is not only feasible but often more practical than replacing entire systems. The key to success is choosing the right communication protocols - OPC UA as a standard unifying different systems, attention to security at every stage of integration, and gradual implementation, starting with a pilot and gradually expanding to the entire factory.

It's worth remembering that integration isn't a one-time project but an ongoing process. Systems change, new requirements emerge, technologies evolve. That's why it's important for integration architecture to be flexible and scalable, allowing easy addition of new systems and functionalities in the future.

If you're planning AI integration with your SCADA, PLC, or MES systems, contact us. We have experience with dozens of different configurations and systems and will help you avoid typical pitfalls that can lead to delays, budget overruns, or security problems. Our experts will conduct an audit of your infrastructure and propose an optimal integration architecture tailored to your needs.