MCCoder: Streamlining Motion Control with LLM-Assisted Code Generation and Rigorous Verification
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated significant potential in code generation. However, in the factory automation sector, particularly motion control, manual programming, alongside inefficient and unsafe debugging practices, remains prevalent. This stems from the complex interplay of mechanical and electrical systems and stringent safety requirements. Moreover, most current AI-assisted motion control programming efforts focus on PLCs, with little attention given to high-level languages and function libraries. To address these challenges, we introduce MCCoder, an LLM-powered system tailored for generating motion control code, integrated with a soft-motion controller. MCCoder improves code generation through a structured workflow that combines multitask decomposition, hybrid retrieval-augmented generation (RAG), and iterative self-correction, utilizing a well-established motion library. Additionally, it integrates a 3D simulator for intuitive motion validation and logs of full motion trajectories for data verification, significantly enhancing accuracy and safety. In the absence of benchmark datasets and metrics tailored for evaluating motion control code generation, we propose MCEVAL, a dataset spanning motion tasks of varying complexity. Experiments show that MCCoder outperforms baseline models using Advanced RAG, achieving an overall performance gain of 33.09% and a 131.77% improvement on complex tasks in the MCEVAL dataset.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 12 of its 21 references that are in the map. First posted on arXiv 19 Oct 2024.
Builds on
12 of 21 references.
References · 12
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2023Self-planning Code Generation with Large Language Modelscited by 121
- 2024LLM4PLC: Harnessing Large Language Models for Verifiable Programming of PLCs in Industrial Control Systemscited by 20
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Towards Reliable Code-as-Policies: A Neuro-Symbolic Framework for Embodied Task Planningcited by 10
- 2026Cross-Domain Demo-to-Code via Neurosymbolic Counterfactual Reasoningcited by 0
- 2026Efficient Skill Grounding via Code Refactoring with Small Language Modelscited by 0
- 2026Functional Cache Grafting: Robust and Rapid Code-Policy Synthesis for Embodied Agentscited by 0
- 2026Functional Cache Grafting: Robust and Rapid Code-Policy Synthesis for Embodied Agents11 Jun 2026
- 2026Efficient Skill Grounding via Code Refactoring with Small Language Models6 Jun 2026
- 2026Cross-Domain Demo-to-Code via Neurosymbolic Counterfactual Reasoning19 Mar 2026
- 2025Towards Reliable Code-as-Policies: A Neuro-Symbolic Framework for Embodied Task Planning24 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents
- 2024LLM3:Large Language Model-based Task and Motion Planning with Motion Failure Reasoning
- 2026Retrieval-grounded robot program generation and simulation-based correction via Model Context Protocol
- 2025Code-as-Symbolic-Planner: Foundation Model-Based Robot Planning via Symbolic Code Generation
- 2025RoboInspector: Unveiling the Unreliability of Policy Code for LLM-enabled Robotic Manipulation
- 2025Automating Modelica Module Generation Using Large Language Models: A Case Study on Building Control Description Language
- 2025Large Language Models in Code Co-generation for Safe Autonomous Vehicles
- 2024iMotion-LLM: Instruction-Conditioned Trajectory Generation