Abstract
Industrial cyber-physical systems provide a bridge between legacy controllers and new edge devices that are usually equipped with massive computing power and storage capacity. The migration from legacy control systems to industrial cyber-physical systems is facing challenges as control code and design documents of legacy systems may not be available. This paper proposes a data-driven behavior model recovery method for the black-box distributed manufacturing system based on cloud computing. This method adopts the IEC 61499 function blocks as meta-models to describe system behaviors. The proposed framework includes three parts: data mining, logic restoration, and application construction. Raw collected data are processed and encapsulated into function block sets, then execution control charts, and finally function block types. This model recovery method is validated with a process control system of the food and beverage industry. A deployable function block network is generated by instantiating and connecting these function blocks.
Introduction
The industrial landscape is shifting from rigid mass production toward "massive customization," necessitating Industrial Cyber-Physical Systems (ICPS) that offer high flexibility and interoperability. However, the prevalence of legacy systems—often decades-old Programmable Logic Controllers (PLCs)—presents a significant barrier. These systems frequently operate as "black boxes" where original design documentation is lost and source code is inaccessible. Manually reverse-engineering this logic is prohibitively expensive and error-prone. This research introduces a cloud-based framework to automatically recover behavioral logic by analyzing raw input/output (I/O) data sequences.
Proposed Framework
The behavior model recovery process is structured into a three-stage pipeline designed to transform raw signals into modern, distributed software components.
- Data Mining: Raw I/O data is collected via edge gateways and transmitted to the cloud. To handle industrial signal delays, Dynamic Time Warping (DTW) identifies similar sequences. K-means clustering then groups these signals into logical equipment modules, such as specific pumps or tanks.
- Logic Restoration: The framework utilizes Execution Control Chart (ECC) templates based on the ISA-88 standard for process control. By mapping observed data onto these domain-specific templates, the system identifies operational states (e.g., Filling, Heating, Emptying) and the transitions between them.
- Application Construction: The recovered logic is encapsulated into IEC 61499 Function Blocks (FBs). These event-driven components are suitable for deployment across modern distributed architectures and edge devices.
Experimental Validation
The methodology was validated using two primary setups: a standard Tank-Link-Tank (TLT) model and a complex Milk Canning System case study.
The TLT model (shown above) represents a common paradigm in the food and beverage industry, involving source tanks (T01), target tanks (T02), and connecting pipelines (L01). For the Milk Canning case study, researchers collected over 10,000 data points from Schneider Electric Modicon M580 PLCs to evaluate the accuracy of the recovered models.
Key Results and Discussion
The proposed method demonstrated significant efficiency and accuracy in recovering system behavior:
- Data Reduction: The similarity matching process reduced the total data volume by 37.5% by merging redundant and synchronized variables.
- Functional Success: In simulation, the recovered function block network achieved 100% success in completing transmission tasks compared to the original system.
- Restoration Accuracy: The system achieved a 95% restoration rate for input conditions. The remaining 5% error was primarily attributed to sensor noise and input detection issues during the sampling process.
A key innovation is the ability to handle "Real" type variables (like liquid levels) by abstracting them into discrete states (e.g., Level_Up, Level_Down), moving beyond simple Boolean logic. Furthermore, the use of domain-specific templates makes the recovery of complex logic computationally feasible, overcoming the NP-hard nature of purely data-driven recovery.
Conclusion
While the framework successfully recovers logic from black-box systems, it remains dependent on pre-defined templates and is sensitive to industrial noise. Future work will focus on improving robustness against "dirty" data and integrating formal verification algorithms to ensure safety in high-stakes environments. The ultimate vision is a closed-loop system that continuously optimizes its behavior model based on real-time operational data.
Summary updated