Snapmaker Laser will not turn on

The laser will not turn on. The head moves but no burn. Enclosure doors are closed. Laser works with Luban generated file. Gcode is transfered using USB Toggle.

Problem solved. Wrong power control codes were being used. Change was made in the device setting window to use m03/M05.