vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.54k stars 528 forks source link

Trace outline of loaded gcode file #1693

Open Mungbeanz opened 2 years ago

Mungbeanz commented 2 years ago

Is there a way to trace the outline of the loaded gcode file using the "user configurable buttons". Min X, Min Y Max X, Min Y Max X, Max Y Min X, Max Y Back to home.

I am basically trying to replicate the custom button in LaserGRBL. They achieve this by using variables:

left - Left margin of loaded image (X) right - Right margin of loaded image (X) top - Top margin of loaded image (Y) bottom - Bottom margin of loaded image (Y)

https://lasergrbl.com/usage/custom-buttons/

I am guessing a python script is necessary

Mungbeanz commented 2 years ago

@MARIOBASZ

Provided me this solution. Works perfectly! Thanks dude!

G90 G0 X[xmin] Y[ymin] G0 X[xmax] G0 Y[ymax] G0 X[xmin] G0 Y[ymin]

Can alter to include M3 commands and G1 feedrate overrides.