Affiliation:
1. Guodian Nanjing Automation Co., Ltd Nanjing China
Abstract
AbstractThe Industrial Internet has emerged as a key technology in the field of industrial automation, revolutionizing traditional manufacturing processes and enabling advanced control systems by integrating machines, sensors, and software systems through network connectivity, allowing for real‐time data exchange, analysis, and decision‐making in industrial environments. Programmable Logic Controllers (PLCs) play a critical role in industrial automation systems, which are specialized digital computers designed to control various manufacturing processes and machinery. As a promising language, Structured Text (ST) is of paramount importance for industrial Internet, and it is essential to translate ST into C, which is widely used in various industries for implementing control systems. However, due to differences in syntax, data types, and programming paradigms between the two languages, the translation process is facing several challenges. In this paper, we present a domain‐specific translation tool that automates the process of converting ST code to C code. This tool incorporates advanced AI techniques, particularly leveraging the capabilities of NL‐PL LLMs, to facilitate accurate and efficient translation while generating comprehensive documentation to assist developers. Finally, the evaluation and case studies conducted validate the effectiveness of the tool, demonstrating its practical applicability and benefits in real‐world industrial settings.