-
Just started using UGS for managing a CNC with optional laser. Creating simple one word text jobs with outline mode, the laser is on throughout the movement, creating lines between letters and inside some letters e.g. "B". I can edit the gcode to set the laser off at the end of each letter/part letter, but wondering if there's a setting that would do that for me. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
What are you using for designing/generating the gcode? Usually the controller can be run in a "Laser mode" (https://github.com/gnea/grbl/wiki/Grbl-v1.1-Configuration#32---laser-mode-boolean) which will turn off the laser on rapid movements. If you don't have that or enabled that setting your CAM needs to set the spindle speed output to zero between movements. |
Beta Was this translation helpful? Give feedback.
-
The Gcode is an export from UGS; the original "design" was done in UGS using the "Draw text" tool. The controller (FoxAlien XE Pro) has a laser switch which is turned on (it cannot switch the laser on/off without that turned on). The gcode has entries for each path sequence to turn on the laser preceding G0, in form M3 Snnnn followed by a feed speed. In a manual edit appending an M5 to the end of path sequence turned off the laser; then the G0 entry for the next path was moved ahead of the M3 section so the laser moved to the beginning of the next letter while off. Reading the gcode (and taking into account IANAD and this is my first encounter with gcode) it seems that ensuring each G0 was preceded by an M5 and followed by the M3 section would turn off the laser at the appropriate points. I'm happy to test this theory and report back. |
Beta Was this translation helpful? Give feedback.
That will turn off the spindle between rapid moves, so that could have the undesired effect that the spindle would not have time to spin up to the proper speed before it would engage the material. So that I would advice against using a spindle in laser mode.
I could probably add an option to use M3/M5 for lasers.