arkypita / LaserGRBL

Laser optimized GUI for GRBL
http://lasergrbl.com
Other
1.22k stars 484 forks source link

Pen Plotter Button #493

Open edmar2019 opened 5 years ago

edmar2019 commented 5 years ago

How can i create a button to pen plotter? Normally i save my work. open in Notepad++ and change: M3 = G1 Z-30.0 F9000 and

M5 = G1 Z-28 F9000

This works fine in 2418 chinese CNC

Thanks.

Edmar velhobarreiro@gmail.com

brakthehun commented 5 years ago

You can't edit or modify code with LaserGRBL. You also can't macro over commands realtime. This does sound like a simple script though. Have laserGRBL save the gcode into a folder. Have a script that replaces all instances of M3 and M5 with z movements,, then automatically move it to a new folder. then open your modded path file.

The code is open source.

also - check this out: https://docs.microsoft.com/en-us/powershell/scripting/core-powershell/ise/how-to-write-and-run-scripts-in-the-windows-powershell-ise?view=powershell-6