Connection solution for Sculpfun S9 laser to Mach3 MKV-4 board

i have a xhc-v card and a lunyee 10w laser similliar to yours but @24v
i used power out (lower left in picture) to power the laser and pwm pin to control it
i needed to add a dpdt switch to stop the spindle when using the laser and vice versa