I have a mounted laser on cnc, which I control with the TTL controller. The laser turns on when the g code is minus (-) and goes out when it goes to the plus (+), so the Z axle motor is also off. So far, I've only run lasers on flat surfaces, but now I would like to burn with a laser on a surface other than planes but wavy. Because of the height difference, the focus of the laser is changing. The command M3 and M5 do not run the laser because they should probably manually enter the commands and the code is quite long. I work with the laser code with the artcam2008 software. Is there any other way to light the laser?