Sign in to use this feature.

Years

Between: -

Subjects

remove_circle_outline
remove_circle_outline
remove_circle_outline
remove_circle_outline
remove_circle_outline

Journals

Article Types

Countries / Regions

Search Results (9)

Search Parameters:
Keywords = automated PLC code generation

Order results
Result details
Results per page
Select all
Export citation of selected articles as:
19 pages, 5117 KB  
Article
SD-Fuzz: A State-Aware Industrial Control Protocol Fuzzing Framework Based on Diffusion Models
by Hao Tang, Zhiyong Zhang, Kejing Zhao and Zhi Liang
Electronics 2026, 15(10), 2156; https://doi.org/10.3390/electronics15102156 - 17 May 2026
Viewed by 183
Abstract
Current fuzzing techniques for industrial control protocols (ICPs) encounter notable challenges, including model training instability, limited sample diversity, and the inability to manage complex state dependencies in protocol interactions. To address these issues, this paper presents SD-Fuzz, a state-aware fuzzing framework that integrates [...] Read more.
Current fuzzing techniques for industrial control protocols (ICPs) encounter notable challenges, including model training instability, limited sample diversity, and the inability to manage complex state dependencies in protocol interactions. To address these issues, this paper presents SD-Fuzz, a state-aware fuzzing framework that integrates a discrete denoising diffusion probabilistic model (DDPM) with an online Hidden Markov Model (HMM). The discrete DDPM is designed to generate syntactically valid and diverse protocol messages using cosine noise scheduling and Denoising Diffusion Implicit Model (DDIM) sampling, while the HMM performs unsupervised learning of state transitions from real traffic to guide the creation of logically consistent multi-step interaction sequences. The framework is evaluated on three representative Modbus/TCP slave implementations. Evaluations based on 5 h benchmark campaigns across multiple independent runs indicate that SD-Fuzz achieves a mean test case recognition rate (TCRR) of 91.3% and an HMM-inferred state transition coverage of 50.1%, exhibiting statistically significant improvements over the evaluated baselines. Furthermore, an extended 8 h vulnerability mining campaign demonstrates its capability to trigger deep-seated exceptions, including buffer overflows and protocol state violations, which are typically challenging to access using traditional stateless approaches. This work illustrates the feasibility of combining diffusion-based generation with lightweight state inference for automated vulnerability discovery in industrial control systems. Directions for future work include validation on physical programmable logic controller (PLC) hardware to acquire internal code coverage feedback. Full article
(This article belongs to the Section Computer Science & Engineering)
Show Figures

Figure 1

21 pages, 3332 KB  
Article
MPC-Coder: A Dual-Knowledge Enhanced Multi-Agent System with Closed-Loop Verification for PLC Code Generation
by Yinggang Zhang, Weiyi Xia, Ben Zhao, Tongwen Yuan and Xianchuan Yu
Symmetry 2026, 18(2), 248; https://doi.org/10.3390/sym18020248 - 30 Jan 2026
Viewed by 1236
Abstract
Industrial PLC programming faces persistent difficulties: lengthy development cycles, low fault tolerance, and cross-platform incompatibility among vendors. While LLMs show promise for automated code generation, their direct application is hindered by the gap between ambiguous natural language and the strict determinism required by [...] Read more.
Industrial PLC programming faces persistent difficulties: lengthy development cycles, low fault tolerance, and cross-platform incompatibility among vendors. While LLMs show promise for automated code generation, their direct application is hindered by the gap between ambiguous natural language and the strict determinism required by control logic. This paper proposes MPC-Coder, a dual-knowledge enhanced multi-agent system that addresses this gap. The system combines a structured knowledge graph that imposes hard constraints on process parameters and equipment specifications with a vector database that offers implementation references such as code templates and function blocks. These two knowledge sources form a symmetric complementary architecture. A closed-loop “generation–verification–repair” mechanism leverages formal verification tools to iteratively refine the generated code. Experiments demonstrate that MPC-Coder achieves 100% syntactic correctness and 78% functional consistency, significantly outperforming general-purpose LLMs. The results indicate that the complementary fusion of domain knowledge and closed-loop verification effectively enhances the reliability of code generation, offering a viable technical pathway for the reliable application of LLMs in industrial control systems. Full article
(This article belongs to the Section Computer)
Show Figures

Figure 1

28 pages, 2378 KB  
Article
Automated PLC Code Generation for the Implementation of Mode-Based Control Algorithms in Buildings
by Xiaoye Cai, Zhijian Jin, Hanyu Li, Alexander Kümpel and Dirk Müller
Buildings 2024, 14(1), 73; https://doi.org/10.3390/buildings14010073 - 26 Dec 2023
Cited by 4 | Viewed by 5365
Abstract
Faulty programming of control functions in Building Automation and Control Systems (BACS) might result in inefficient building operations. To reduce programming errors, an automated implementation process of control functions might be a promising solution. Recently, Building Information Modeling (BIM) contributes to digitizing building [...] Read more.
Faulty programming of control functions in Building Automation and Control Systems (BACS) might result in inefficient building operations. To reduce programming errors, an automated implementation process of control functions might be a promising solution. Recently, Building Information Modeling (BIM) contributes to digitizing building construction projects but is rarely used in the planning and implementation of control functions in BACS. The control description in BIM also remains unclear. Regarding these problems, a control documentation method for BIM and an automated control implementation approach can simplify control implementation in BACS and hence improve the building operation. In the previous work, we developed the MODI method for a structured planning process of mode-based control algorithms for building energy systems. This method showed the potential to support digitized control planning and implementation in BACS. Based on this, in this paper, we introduce a documentation method to report mode-based control algorithms in the industrial foundation class (IFC), enabling data sharing among BIM, and a software-assisted approach to automatically generate PLC codes for implementing these algorithms. The case study demonstrates the documentation of a desired mode-based control strategy for an energy supply network in IFC and the implementation of this strategy in a PLC program. In the simulation phase, we test the implemented control strategy to verify the functionalities of the PLC program. The results prove that mode-based control strategies can be fully automatically implemented in a PLC program based on IFC data. Full article
(This article belongs to the Special Issue Construction Automation: Current and Future)
Show Figures

Figure 1

19 pages, 11592 KB  
Article
A Model-Based Approach to Automated Validation and Generation of PLC Code for Manufacturing Equipment in Regulated Environments
by Damian McCarthy, Dermot McMorrow, Noel P. O’Dowd, Conor T. McCarthy and Eoin P. Hinchy
Appl. Sci. 2022, 12(15), 7506; https://doi.org/10.3390/app12157506 - 26 Jul 2022
Cited by 11 | Viewed by 6037
Abstract
Validation is a critical stage of the equipment design process as it provides documentary evidence that the equipment is performing as per specification and ensures consistent product quality is maintained at all times. The advent of Industry 4.0 has led to a requirement [...] Read more.
Validation is a critical stage of the equipment design process as it provides documentary evidence that the equipment is performing as per specification and ensures consistent product quality is maintained at all times. The advent of Industry 4.0 has led to a requirement for reconfigurable manufacturing systems as manufacturers adapt to an increased customer demand for personalised products. As equipment control software becomes increasingly complex to accommodate these requirements, a new approach to equipment validation is required. This paper presents a methodology for the design and validation of equipment in regulated manufacturing environments, using a model-based design platform (MathWorks® Simulink®) to model and digitally validate the Programmable Logic Controller (PLC) code required to control manufacturing equipment. A workflow is presented detailing the steps required to implement this approach and a demonstration model was developed as a proof of concept. Validation documentation and PLC code are automatically generated based on the system model and the functionality of the generated PLC code was successfully verified on a physical demonstrator, proving the feasibility of the proposed approach. Adoption of the approach outlined in this work would enable manufacturers in regulated industries, such as medical devices and pharmaceutical products, to rapidly design, build, reconfigure and revalidate manufacturing equipment as required to accommodate an increased demand for customised products. Full article
(This article belongs to the Section Applied Industrial Technologies)
Show Figures

Figure 1

19 pages, 21778 KB  
Article
On the Design of Regulation Controllers for Automation Systems with RCPetri
by Carlos Alberto Anguiano-Gijón, Anibal Cid-Gaona, José Manuel Chávez-Delgado and Carlos Renato Vázquez
Appl. Sci. 2022, 12(7), 3294; https://doi.org/10.3390/app12073294 - 24 Mar 2022
Cited by 4 | Viewed by 3010
Abstract
Regulation control for Petri nets is a control framework that allows the design of sequence controllers for automation systems in a systematic and efficient way. In order to implement this control framework, the MATLAB® app RCPetri has been developed. In this work, [...] Read more.
Regulation control for Petri nets is a control framework that allows the design of sequence controllers for automation systems in a systematic and efficient way. In order to implement this control framework, the MATLAB® app RCPetri has been developed. In this work, the RCPetri tool functionalities are described, including model generation, automatic specification generation, automatic control design, model and control simulation, automatic translation to PLC code, and communication by Modbus TCP/IP and OPC UA. Furthermore, three examples are presented to illustrate the application of the tool and the regulation framework: an electro-pneumatic device, a process control system, and a robotic manufacturing cell under a decentralized control scheme. Full article
(This article belongs to the Section Applied Industrial Technologies)
Show Figures

Figure 1

17 pages, 1357 KB  
Article
A GEMMA-GRAFCET Generator for the Automation Software of Smart Manufacturing Systems
by Juan Manuel Castillo, Giacomo Barbieri, Alejandro Mejia, José Daniel Hernandez and Kelly Garces
Machines 2021, 9(10), 232; https://doi.org/10.3390/machines9100232 - 12 Oct 2021
Cited by 5 | Viewed by 7754
Abstract
Within the Industry 4.0 revolution, manufacturing enterprises are transforming to intelligent enterprises constituted by Smart Manufacturing Systems (SMSs). A key capability of SMSs is the ability to connect and communicate with each other through Industrial Internet of Things technologies, and protocols with standard [...] Read more.
Within the Industry 4.0 revolution, manufacturing enterprises are transforming to intelligent enterprises constituted by Smart Manufacturing Systems (SMSs). A key capability of SMSs is the ability to connect and communicate with each other through Industrial Internet of Things technologies, and protocols with standard syntax and semantics. In this context, the GEMMA-GRAFCET Methodology (GG-Methodology) provides a standard approach and vocabulary for the management of the Operational Modes (OMs) of SMSs through the automation software, bringing a common understanding of the exchanged data. Considering the lack of tools to implement the methodology, this work introduces an online tool based on Model-Driven Engineering–GEMMA-GRAFCET Generator (GG-Generator)–to specify and generate PLCopen XML code compliant with the GG-Methodology. The proposed GG-Generator is applied to a case study and validated using Virtual Commissioning and Dynamic Software Testing. Due to the consistency obtained between the GG-Methodology and the generated PLC code, the GG-Generator is expected to support the adoption of the methodology, thus contributing to the interoperability of SMSs through the standardization of the automation software for the management of their OMs. Full article
(This article belongs to the Special Issue Intelligent Machines and Control Systems)
Show Figures

Figure 1

27 pages, 8504 KB  
Article
Model-Driven Design and Development of Flexible Automated Production Control Configurations for Industry 4.0
by Unai Gangoiti, Alejandro López, Aintzane Armentia, Elisabet Estévez and Marga Marcos
Appl. Sci. 2021, 11(5), 2319; https://doi.org/10.3390/app11052319 - 5 Mar 2021
Cited by 20 | Viewed by 5315
Abstract
The continuous changes of the market and customer demands have forced modern automation systems to provide stricter Quality of service (QoS) requirements. This work is centered in automation production system flexibility, understood as the ability to shift from one controller configuration to a [...] Read more.
The continuous changes of the market and customer demands have forced modern automation systems to provide stricter Quality of service (QoS) requirements. This work is centered in automation production system flexibility, understood as the ability to shift from one controller configuration to a different one, in the most quick and cost-effective way, without disrupting its normal operation. In the manufacturing field, this allows to deal with non-functional requirements such as assuring control system availability or workload balancing, even in the case of failure of a machine, components, network or controllers. Concretely, this work focuses on flexible applications at production level, using Programmable Logic Controllers (PLCs) as primary controllers. The reconfiguration of the control system is not always possible as it depends on the process state. Thus, an analysis of the system state is necessary to make a decision. In this sense, architectures based on industrial Multi Agent Systems (MAS) have been used to provide this support at runtime. Additionally, the introduction of these mechanisms makes the design and the implementation of the control system more complex. This work aims at supporting the design and development of such flexible automation production systems, through the proposed model-based framework. The framework consists of a set of tools that, based on models, automate the generation of control code extensions that add flexibility to the automation production system, according to industry 4.0 paradigm. Full article
Show Figures

Figure 1

19 pages, 6115 KB  
Article
A Model-Based Design of Distributed Automation Systems for the Smart Grid: Implementation and Validation
by Davide Della Giustina, Amelia Alvarez de Sotomayor, Alessio Dedè and Francisco Ramos
Energies 2020, 13(14), 3560; https://doi.org/10.3390/en13143560 - 10 Jul 2020
Cited by 6 | Viewed by 4078
Abstract
The paper aims at describing a model-based approach to design automation logics for fault location and supply restoration in medium voltage distribution networks. The application of automation functions along medium voltage feeders and, in particular, the installation of protection devices in secondary substations [...] Read more.
The paper aims at describing a model-based approach to design automation logics for fault location and supply restoration in medium voltage distribution networks. The application of automation functions along medium voltage feeders and, in particular, the installation of protection devices in secondary substations mandates the design and the implementation of complex logics to coordinate the operations of this hardware in case of fault occurrences. This synchronization is realized with the exchange of IEC 61850 GOOSE messages, but the correct usage of this information must be implemented in each protection device through dedicated logics, which are not in the common out-of-the-box system configurations. To support the introduction and the design of these logics, an automata-based approach has been proposed and successfully demonstrated in a real environment in the European research project IDE4L. This formal methodology has been introduced to simplify the design phase and to standardize the logics implemented in the protection prototypes realized in the project. The same models have also been used in the implementation phase with a semi-automatic code generation procedure, considering as a target system the software programmable logic controllers (soft-PLCs), available on the protection devices. Based on the test results and the short time to set up the test bench, this approach proved to be a reliable and effective way to implement complex medium voltage (MV) automation logics such those needed in modern smart grids. Full article
(This article belongs to the Special Issue Energy Management System for Smart Grids)
Show Figures

Figure 1

21 pages, 1588 KB  
Article
Virtual PLC Lab Enabled Physical Layer Improvement Proposals for PRIME and G3-PLC Standards
by Asier Llano, Itziar Angulo, David de la Vega and Laura Marron
Appl. Sci. 2020, 10(5), 1777; https://doi.org/10.3390/app10051777 - 4 Mar 2020
Cited by 8 | Viewed by 5313
Abstract
Narrowband (NB) powerline communication (PLC) is extensively adopted by utilities for the communication in advanced metering infrastructure (AMI) systems. PLC technology needs to overcome channel disturbances present in certain grid segments. This study analyzes improvement proposals of the physical layer of the main [...] Read more.
Narrowband (NB) powerline communication (PLC) is extensively adopted by utilities for the communication in advanced metering infrastructure (AMI) systems. PLC technology needs to overcome channel disturbances present in certain grid segments. This study analyzes improvement proposals of the physical layer of the main narrowband PLC technologies approved by international communication organizations that are currently deployed in Europe: Powerline Intelligent Metering Evolution (PRIME) 1.3.6, PRIME 1.4, and G3-PLC, in order to improve PLC performance under channel disturbances. This thorough study is based on simulations carried out by an innovative ad hoc Virtual PLC Lab, developed by the authors, applied in replicable, fully-automated, and cost reduced test scenarios. The analysis is performed by applying standardized test methods and metrics, and by evaluating the influence of a set of representative channel disturbances defined by the European Telecommunications Standards Institute (ETSI) and selected noises generated by distributed energy resources (DER) in normal operation. PLC performance improvements in terms of equalizer curve fitting, error correction codes, and noisy subcarrier suppression mechanisms are presented. The performance gain due to each physical improvement proposal is accurately measured and compared under the same conditions in a replicable and automated test environment in order to evaluate the use of the proposals in the evolution of future PLC technologies. Full article
(This article belongs to the Special Issue Simulation-Based Validation and Design of Smart Grids)
Show Figures

Figure 1

Back to TopTop