VAVirendra Ashiwal

Virendra Ashiwal

*This is an algorithmically generated author record based on publicly available information.

Virendra Ashiwal has a total of 12 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Top Cited Papers
    Open Access

    Spec2Control: Automating PLC/DCS Control-Logic Engineering from Natural Language Requirements with LLMs - A Multi-Plant Evaluation

    by Heiko Koziolek, Thilo Braun, Virendra Ashiwal, Sofia Linsbauer, Marthe Ahlgreen Hansen, Karoline Grotterud

    Distributed control systems (DCS) manage the automation for many industrial production processes (e.g., power plants, chemical refineries, steel mills). Programming the software for such systems remains a largely manual and tedious process, incurring costs of millions of dollars for extensive facilities. Large language models (LLMs) have been found helpful in generating DCS control logic, resulting in commercial copilot tools. Today, these tools are focused on textual notations, they provide limited automation, and have not been tested on large datasets with realistic test cases. We introduce Spec2Control, a highly automated LLM workflow to generate graphical control logic directly from natural language user requirements. Experiments using an open dataset with 10 control narratives and 65 complex test cases demonstrate that Spec2Control can successfully identify control strategies, can generate 98.6% of correct control strategy connections autonomously, and can save between 94-96% of human labor. Spec2Control is being integrated into commercial ABB engineering tools, but is also available as an open-source variant for independent validation.


  • Open Access

    Identification and Evaluation of Pitfalls in the Migration From IEC 61131-3 to IEC 61499: A Review

    by Virendra Ashiwal, Oscar Miguel-Escrig, Bianca Wiesmayr, Alois Zoitl, Julio-Ariel Romero-Pérez

    The IEC 61131-3 standard was initially established to define a common software architecture and programming languages for PLCs produced by various manufacturers, leading to its widespread adoption since 1993. Since then, it has been a cornerstone in the industrial automation domain. Building upon this foundation, the IEC 61499 standard was developed to enhance the design and implementation of distributed control systems by incorporating advanced concepts from distributed systems and software engineering such as encapsulation, separation of control logic from communication infrastructure, and independent development of software components from their hardware deployment. While IEC 61499 introduces novel approaches, it also incorporates and extends key elements from IEC 61131-3, including function blocks, programming languages, and basic data types. Despite the advantages offered by the IEC 61499 standard, its adoption is still limited largely due to historical precedence, industry familiarity, better tool and vendor support, and the risk-averse nature of the industrial automation market. The migration or re-engineering effort from an existing IEC 61131-based automation system to IEC 61499 also faces challenges because it typically retains the underlying programming paradigms of IEC 61131-3. The contribution of this paper is to identify the pitfalls associated with migrating PLC control code from IEC 61131-3 based automation systems to IEC 61499. For this purpose, we conducted a systematic literature review that address these identified migration pitfalls. We then synthesized the findings from the literature and provided a summary and research directions for addressing these pitfalls.


  • Open Access

    LLM-based and Retrieval-Augmented Control Code Generation

    by Heiko Koziolek, Sten Grüner, Rhaban Hark, Virendra Ashiwal, Sofia Linsbauer, Nafise Eskandani

    Control code is designed and implemented for industrial automation applications that manage power plants, petrochemical processes, or steel production. Popular large language models (LLM) can synthesize low-level control code in the Structured Text programming notation according to the standard IEC 61131-3, but are not aware of proprietary control code function block libraries, which are often used in practice. To automate control logic implementation tasks, we proposed a retrieval-augmented control code generation method that can integrate such function blocks into the generated code. With this method control engineers can benefit from the code generation capabilities of LLMs, re-use proprietary and well-tested function blocks, and speed up typical programming tasks significantly. We have evaluated the method using a prototypical implementation based on GPT-4, LangChain, Open-PLC, and the open-source OSCAT function block library. In several spot sample tests, we successfully generated IEC 61131-3 ST code that integrated the desired function blocks, could be compiled, and validated through simulations.