M2Coder: A Fully Automated Translator from Matlab M-functions to C/C++ Codes for ACS Motion Controllers

Xiaowei Yang,Xuchen Wang,Zidong Liu,Feng Shu
DOI: https://doi.org/10.1007/978-981-19-6613-2_304
2023-01-01
Abstract:In order to accelerate the deployment of complex motion control algorithms from Matlab M-function codes to C/C++, we propose a fully automated translator named M2Coder for ACS motion controllers which are widely used in high performance industrial motion control applications. The M2Coder translator includes a preprocessing subsystem, a code conversion subsystem and a post-processing subsystem, and it can automatically convert Matlab M-function codes using the ACS Matlab library into C/C++ codes using the ACS C/C++ library. The M2Coder translation system enables engineers to make full use of the flexibility of Matlab coding in the experimental stage and the efficiency of C/C++ in the deployment stage without the typically error-prone communication overhead between control and software engineering teams. Experiments demonstrate the efficiency of the M2Coder system.
What problem does this paper attempt to address?