EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

MPC-Coder: A Dual-Knowledge Enhanced Multi-Agent System with Closed-Loop Verification for PLC Code Generation

Yinggang Zhang, Weiyi Xia, Ben Zhao, Tongwen Yuan, Xianchuan Yu

Symmetry · 30.01.2026 · 18 (2) · 248

DOI: 10.3390/sym18020248 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Symmetry, online erschienen am 30.01.2026. Verfasst von Yinggang Zhang und 4 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 42 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

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.

Zitieren

APA

Zhang, Y., Xia, W., Zhao, B., Yuan, T., & Yu, X. (2026). MPC-Coder: A Dual-Knowledge Enhanced Multi-Agent System with Closed-Loop Verification for PLC Code Generation. Symmetry, 18(2), 248. https://doi.org/10.3390/sym18020248

Vancouver

Zhang Y, Xia W, Zhao B, Yuan T, Yu X. MPC-Coder: A Dual-Knowledge Enhanced Multi-Agent System with Closed-Loop Verification for PLC Code Generation. Symmetry. 2026;18(2):248. doi:10.3390/sym18020248

BibTeX
@article{Zhang2026,
  author = {Zhang, Yinggang and Xia, Weiyi and Zhao, Ben and Yuan, Tongwen and Yu, Xianchuan},
  title = {MPC-Coder: A Dual-Knowledge Enhanced Multi-Agent System with Closed-Loop Verification for PLC Code Generation},
  journal = {Symmetry},
  year = {2026},
  volume = {18},
  number = {2},
  pages = {248},
  doi = {10.3390/sym18020248}
}
Kostenlos starten →