GRBL Laser Post Processor
Posted: Fri Jan 05, 2024 4:39 am
Hi All
I am currently editing a GRBL post processor to run a laser. I am trying to pull in the tool type to build my code but am not having much luck. I can get the operationName with this snippet
post.Text (" /*OPERATION ", operationName, " */ \n")
The output in gcode is /*OPERATION Laser engrave, Layer 1, T18: Laser, 1.5 mm kerf, 0 mm Deep */
This will change for each tool and the layer name.
Is there a way to extract the first part of the string up to the comma so it only outputs "Laser engrave"?
I have tried several things but new to editing post processors so need some help.
Thanks
I am currently editing a GRBL post processor to run a laser. I am trying to pull in the tool type to build my code but am not having much luck. I can get the operationName with this snippet
post.Text (" /*OPERATION ", operationName, " */ \n")
The output in gcode is /*OPERATION Laser engrave, Layer 1, T18: Laser, 1.5 mm kerf, 0 mm Deep */
This will change for each tool and the layer name.
Is there a way to extract the first part of the string up to the comma so it only outputs "Laser engrave"?
I have tried several things but new to editing post processors so need some help.
Thanks