File Exchange

image thumbnail

G-Code Reader

version 1.0.0.0 (4.62 KB) by Tom Williamson
Reads/Interprets simple G-Code commands, creates a tool path.

37 Downloads

Updated 18 Jun 2018

View License

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).

Cite As

Tom Williamson (2020). G-Code Reader (https://www.mathworks.com/matlabcentral/fileexchange/67767-g-code-reader), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

Ta Hai

How to make it work for g-code with gcode extension, instead of nc extension?

Does not work
Matlab show me error :
Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N) to change the limit.
Be aware that exceeding your available stack space can crash MATLAB and/or your computer.

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux