I would start by opening KMotionCNC then pressing "Tool Setup". Under the "User Buttons" and "M" Code tabs are several options to set what happens when you click on a button or initiate an M code.
I would check that the setting are correct... set bits, execute code, set DACs...
Hope this helps