Is it required to use LightBurn? Otherwise, it should be simple to write a script that opens the serial port, sends ‘$H’ as a command and then closes the port again.
Thanks for the quick response. It is desirable to use Lightburn, as I have another script built already that will generate a customized Lightburn (xml) file based on some input parameters and start the cut through the LightBurn CLI. So if I can find a solution there, I won’t have to break (and remake) the LightBurn serial port connection to the laser. To tell the truth, I don’t know much about scripting that kind of process. I imagine making the connection to the serial port is easy. I’m not so sure about what happens when I close it, and whether I can direct (via script) LightBurn to remake the connection.
But in the end, you are correct that ‘$H’ over serial will achieve the homing command I am after.
Another thing you could try is to add the homing command to the “start gcode” section of device settings. LightBurn then should add the homing in front of every job. I guess it should do as well when triggered via command line. But then it’s tied to each job and not a single command as you might want to have.