Modifying Gcode mid-print in response to sensor feedback for concept printer

  3d-printing, arduino, c++, g-code

I’m developing a concept printer that burns images onto wood using a magnifying glass on an xy plotter. One of my anticipated challenges is an inconsistent print quality as a result of changing lighting conditions (e.g., atmosphere, clouds).

My plan is to modify my Gcode on-the-fly, (yes, while printing) based on the feedback from photosensors in order to maintain a consistent burn. Modifying my feedrate to accommodate changes in lighting conditions seems like the simplest approach.

What I can’t find is how to modify Gcode AFTER a print has begun.


Source: Windows Questions C++