Hi Kevin,
It seems to work fine for me using the Dynomotion VB.NET Example in V4.30j:
I configured M100 and M101 actions to toggle Bit 46 (KFLOP LED0) on and off
with:
Public Sub Run()
_Controller.CoordMotion.Interpreter.SetMcodeAction(21, KMotion_dotNet.MCODE_TYPE.M_Action_Setbit, 46, 1, 0, 0, 0, "")
_Controller.CoordMotion.Interpreter.SetMcodeAction(22, KMotion_dotNet.MCODE_TYPE.M_Action_Setbit, 46, 0, 0, 0, 0, "")
_InterpreterStatus = ""
If System.IO.File.Exists(_InterpreterFileName) = True Then
_Controller.CoordMotion.Interpreter.Interpret(_InterpreterFileName)
End If
Then ran GCode of:
G0 X0 Y0 Z0
F40
M100
G1 X0 Y1
M101
G1 X0 Y0
M100
G1 X1 Y0
M101
G1 X0 Y0
M2
And the KFLOP LED toggles on and off
Regards
TK