Pass drawing size and coordinates in custom gcode

Hi. I have built my own plotter and im using lightburn. Before the plot starts i want the toolhead to move in a square to show where the plot will be done so the user can confirm its in the right spot. That’d require passing both the dimensions of the drawing or x min and x max. and the starting coordinates. Having this would be really nice. Ive looked through the docs but i havent found something that worked like this. Let me know if i missed something in the docs lol.

- Danni

The Frame button in the Laser window does exactly what you describe. If it was a mechanical button, I would have worn it out by now.

Ah, that would be great. Unfortunately my plotter isn’t directly connected to lightburn, i forgot to mention that. Its controlled by klipper. I have to manually upload the gcode to the interface so this unfortunately wouldnt work. That’s why i’d love to pass it through custom gcode so a macro on the plotters end can do its stuff with it.

Thank’s for the suggestion though!

I do see ;Bounds: X100 Y100 to X267.229 Y267.229 at the beginning of the gcode. I might be able to extract that

Yes, that would make a difference. And I think you are correct about the Bounds being the same as what a Frame would do.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.