More or less what it says in the summary: reads/Interprets simple G-Code commands, creates a tool path that can be analysed/plotted. This by no means comprehensive, but will work for basic G-Code NC files; feel free to implement additional commands (beyond the basic G0 - G3 done here), but this was all I needed for now. Hopefully useful to someone else as well.
Includes 2 sample NC files (of the same part).
Tom Williamson (2021). G-Code Reader (https://www.mathworks.com/matlabcentral/fileexchange/67767-g-code-reader), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!