How to extract parts of g code using matlab

I want to obtain is a script capable of loading the g code and dividing it into a structure with cells containing the individual commands: I want to find the strings in which the outer contour of all layers is drawn, initialized by; TYPE: WALL-OUTER, as a result of which all commands containing the token G1 at the beginning of the command are stored, followed by the X Y Z E coordinates of displacement and possibly also from F. Then, also commands with the token G0 are stored.

3 Kommentare

Geoff Hayes
Geoff Hayes am 25 Aug. 2022
@Federico - what is "the g code"? Please clarify with a description or link to more information.
@Geoff Hayes I report "file g.gcode" as attached file, this code is produced by a software from a file.stl and then the .gcode is sent to 3d printer to print the object

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Federico
Federico am 25 Aug. 2022

0 Stimmen

@Geoff Hayes I report "file g.gcode" as attached file, this code is produced by a software from a file.stl and then the .gcode is sent to 3d printer to print the object

Kategorien

Mehr zu Polar Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Gefragt:

am 24 Aug. 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by