[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-697188-105":59,"doc-detail-697188-en":130,"doc-similar-697188":160},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","exploring-llm-support-for-generating-iec-61131-3-graphic-language-programs","Exploring LLM Support for Generating IEC 61131-3 Graphic Language Programs","","Large Language Models (LLMs) are being considered for industrial production and automation, but prior work has mainly targeted generating Structured Text (ST) for Programmable Logic Controllers (PLCs). This paper explores LLM-based generation of IEC 61131 graphic programming languages expressed in ASCII art to assist engineers. Experiments show correct Sequential Function Chart (SFC) generation for simple requirements with example support, while automatic Ladder Diagram (LD) generation remains difficult. Converting LD to SFC without extra information also fails under prompt engineering alone.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/exploring-llm-support-for-generating-iec-61131-3-graphic-language-programs/697188/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/exploring-llm-support-for-generating-iec-61131-3-graphic-language-programs/697188.png","ImageObject",300,407,{"name":92,"@type":93},"Aria Callaghan","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28","2026-11-11",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How does the paper use LLMs for PLC programming assistance?","Question",{"text":112,"@type":113},"It investigates generating IEC 61131 graphic languages as ASCII art to support engineers in PLC graphical programming.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What outcomes were observed for generating SFC versus LD?",{"text":117,"@type":113},"Experiments indicate that correct Sequential Function Chart (SFC) generation is possible for simple requirements with several examples, while Ladder Diagram (LD) generation remains challenging even for simple cases.",{"name":119,"@type":110,"acceptedAnswer":120},"Why does LD-to-SFC conversion fail in the studied setting?",{"text":121,"@type":113},"The paper reports that automatic conversion between LD and SFC without additional information fails when relying on prompt engineering alone.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},697188,1794436789,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":39,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":46,"preview_page_count":19,"preview_urls":143},962084926284,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Exploring LLM Support for Generating IEC 61131-3 Graphic Language Programs  \nYimin Zhang  \nCISTER / Faculty of Engineering University of Porto Porto, Portugal 0009-0005-0746-315X  \nMario de Sousa  \nFaculty of Engineering University of Porto Porto, Portugal 0000-0001-7200-1705  \narXiv :2410 . 15200v1 [ cs .PL] 19 Oct 2024  \nAbstract—The capabilities demonstrated by Large Language Models (LLMs) inspire researchers to integrate them into industrial production and automation. In the field of Programmable Logic Controller (PLC) programming, previous researchers have focused on using LLMs to generate Structured Text (ST) language, and created automatic programming workflows based on it. The IEC 61131 graphic programming languages, which still has the most users [17], have however been overlooked.  \nIn this paper we explore using LLMs to generate graphic languages in ASCII art to provide assistance to engineers. Our series of experiments indicate that, contrary to what researchers usually think, it is possible to generate a correct Sequential Function Chart (SFC) for simple requirements when LLM is provided with several examples. On the other hand, generating a Ladder Diagram (LD) automatically remains a challenge even for very simple use cases. The automatic conversion between LD and SFC without extra information also fails when using prompt engineering alone.  \nIndex Terms—Large Language Model, Prompt Engineering, Programmable Logic Controller, IEC 61131, Ladder Diagram, Sequential Function Chart  \nI. INTRODUCTION  \nThe rise of ChatGPT and other Large Language Models (LLMs) is changing people’s work and lifestyle. The same is true in industry. More and more people began to discuss what role LLMs can play in industrial domain. The most optimistic estimates even claim that a breakthrough will be achieved within a few years.  \nA. LLMs and Industry  \nLLMs can liberate engineers from heavy paperwork, allowing them to focus on their work. A fine-tuned model within an enterprise may replace some after-sales engineers, undertaking preliminary troubleshooting tasks. In the field of Artificial Intelligence (AI), these systems are often mentioned as “agents”. LLM is on par with humans in general purpose programming languages [21], which has made some engineers worried about unemployment. Several vendors have already introduced support for AI in the context of industrial automation (Siemens [20], CODESYS [19], Beckhoff [18], etc.) .  \nUnlike the daily use of LLMs, industrial applications face hard requirements and place more emphasis on precision, clear instructions and reliability. Every procedure and production process needs to be carefully designed to avoid damage. While  \nwe believe that LLMs can provide domain knowledge, we cannot fully rely on them. In other words, a LLM based tool is best used as a helpful assistant. Their outputs need to be rigorously validated.  \nB. LLMs and PLC programming  \nThree of the five programming languages defined in IEC 61131-3 are graphic languages - Ladder Diagram (LD), Sequential Function Chart (SFC) and Function Block Diagram (FBD) . LD dominates among the 5 languages, accounting for more than 80% of the global use [17] . Its close resemblance to electrical circuits makes LD popular. Technicians who are familiar with electrical circuits but lack a knowledge of general-purpose computer languages, such as C, Java, or Python, use these graphic languages to develop PLC software. However, LLM is typically considered a language model, which means that it’s better to process textual information.  \nThe graphical nature of LD, SFC, and FBD limit the application of LLM in PLC programming. Recent researchers ([8], [10], [9]) have therefore focused on Structured Text (ST), while overlooking the most commonly used LD, SFC, and FBD (instruction List (IL) is rarely used in practice.)  \nHowever, the standard does specify these graphic languages in terms of ASCII art [16] . In actual industrial use IEC 61131- 3 editors o","cbCaiqnXjEAujlCI","https://ap.wps.com/l/cbCaiqnXjEAujlCI","pdf",220286,"English","# I. INTRODUCTION\n## A. LLMs and Industry\n## B. LLMs and PLC programming\n# II. STATE OF THE ART","[{\"question\":\"How does the paper use LLMs for PLC programming assistance?\",\"answer\":\"It investigates generating IEC 61131 graphic languages as ASCII art to support engineers in PLC graphical programming.\"},{\"question\":\"What outcomes were observed for generating SFC versus LD?\",\"answer\":\"Experiments indicate that correct Sequential Function Chart (SFC) generation is possible for simple requirements with several examples, while Ladder Diagram (LD) generation remains challenging even for simple cases.\"},{\"question\":\"Why does LD-to-SFC conversion fail in the studied setting?\",\"answer\":\"The paper reports that automatic conversion between LD and SFC without additional information fails when relying on prompt engineering alone.\"}]","Exploring LLM Support for Generating IEC 61131-3 Graphic Language Programs | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/65991799735a2ce09f73963e03742cbc.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/d824b7fa195d275f8a86bb218abc3d9e.webp",982,1270,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/31e6369cde8c963e22d078e1a697de0a.webp",981,1269,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/7506d0da4ddbb9bcb5a4dfbe7a300590.webp",980,1268,{"list":161,"token":66},[162,168,175,181,187,193,200,206,213,220],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":24,"category_name":40,"create_tm":167},655541,"ESBMC-PLC - Formal Verification of IEC 61131-3 Ladder Diagram Programs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974774953/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=OpwVMvkDgWfbe5Qb5AcLfzfVXUU%3D","esbmc-plc-formal-verification-of-iec-61131-3-ladder-diagram-programs",1792962496,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":173,"category_name":40,"create_tm":174},85941,"K-ESBMC: An Executable Formal Semantics of IEC 61131-3 Ladder Diagram for Validating Verifier Translations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809492640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=PxPLTPKkNhWXPtPqvVOMZQvBhj4%3D","k-esbmc-an-executable-formal-semantics-of-iec-61131-3-ladder-diagram-for-validating-verifier-translations",26,1784207280,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":14,"category_name":40,"create_tm":180},682418,"IEC 61131-3 - Part 3 - Programming languages","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999556764/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=jW4Hnl0iYu%2FNO7KcYhUhUGm9wnk%3D","iec-61131-3-part-3-programming-languages",1793970224,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":41,"category_name":40,"create_tm":186},84993,"LLM Assisted Verification Assertion Generation: Challenges and Future Directions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809083943/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=IBlPAU6sVDZ8JC3XRSgenipelto%3D","llm-assisted-verification-assertion-generation-challenges-and-future-directions",1784200091,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":41,"category_name":40,"create_tm":192},119970,"RRAML - Reinforced Retrieval Augmented Machine Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835295392/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=%2BHcDd7mU4XOeJWcmshS0wbd%2BIWE%3D","rraml-reinforced-retrieval-augmented-machine-learning",1785727317,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":40,"create_tm":199},182931,"2510.05944v1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229877215887/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=wkFZieQ65G5m58plVMZgf8DbWxs%3D","251005944v1",16,1788350491,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":36,"category_name":40,"create_tm":205},86323,"How Temperature Shapes Ideological Discourse in Retrieval-Augmented Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809402436/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=f0n7QmP5eq6FKVrUPfllEW0%2FDdg%3D","how-temperature-shapes-ideological-discourse-in-retrieval-augmented-generation",1784210477,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":40,"create_tm":212},371271,"Law Professors Prefer AI Over Peer Answers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229913944650/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=LsVud%2BzsFyTxJ84rIq30wNY7fII%3D","law-professors-prefer-ai-over-peer-answers",17,1790191671,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":40,"create_tm":219},429163,"Substance Beats Style - Why Beginning Students Fail to Code with LLMs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922832720/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=rM5SRBmkilDf040xgKeoNrIgTWU%3D","substance-beats-style-why-beginning-students-fail-to-code-with-llms",12,1790648879,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":198,"category_name":40,"create_tm":225},216539,"BLUEX v2 - Benchmarking LLMs on Open-Ended Questions from Brazilian University Entrance Exams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229887171031/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=q87CvP69qksT2nP1k8j4MiL3OYs%3D","bluex-v2-benchmarking-llms-on-open-ended-questions-from-brazilian-university-entrance-exams",1788817873]