How to modify a G-Code text

Hi, I have to write a matlab script to modify a g code file and as a starting point I have this:

5 Comments

What modifications would you like to make?
Federico Paolucci
Federico Paolucci on 15 Aug 2022
Edited: Federico Paolucci on 15 Aug 2022
the script in g code shown above is used to acquire the images of the layers produced on the work surface of a 3d printer. in particular the body of the script presents the G commands for the acquisition of two images . this acquisition is carried out with a microscope positioned inclined in a certain position. I have to modify the g code taking into account that I have two microscopes: the inclined one, already present, plus another in vertical position. in practice I must also consider the commands for acquiring images of this vertical microscope
I explained myself wrongly, the G commands are used for the correct positioning of the material extruder on the work surface with respect to the position of the microscope that acquires the image. I have to modify the code taking into account that it is not acquired only with the oblique microscope, but also with the vertical one
the two microscopes are on the same (vertical) plane as the extruder and there is a certain distance between the two
Okay, what does that mean in terms of MATLAB code that we could assist you with? Assume that we do not have experience with positioning extruders to immediately recognize what would have to be changed for your situation, but that we do have a little bit of experience with gcode, and a fair bit of experience with MATLAB.

Answers (0)

This question is closed.

Products

Release

R2022a

Asked:

on 14 Aug 2022

Closed:

on 15 Aug 2022

Community Treasure Hunt

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

Start Hunting!