Hi,
Seems like it should be very simple to call for the laser to turn on at a certain percentage of power.
It is, you call Snnn in Gcode and your nominated PWM output pin will assume a voltage proportional to nnn. This is how a spindle
is controlled and can be used also to modulate a laser.
M10/M11 are to synchronize the laser output to axis movement, a refinement if you like. You might choose not to use M10/M11
in the first instance just the normal M3/M4/M5 commands. The reason for M10/M11 will become clear then.
Craig