Anyway, since it all works now I am posting the finished code since a pet peeve is when people post "Oh, I figured it out" and dont post their solution, especially when I have the exact same issue, lol.
macropump.m1s, this goes in your profile macro folder:
Code: Select all
'i=i+1
'message "Macro Running #"&I 'this is for debugging if necessary
Increment = GetOEMDRO(828) 'Get Increment
SetOEMDRO(1007, Increment) ' put it in User DRO 7
NotifyPlugins(19007) 'Send it to KFLOP
If (GetOEMLED(59) = True) Then Axis = 0 'X Axis
If (GetOEMLED(60) = True) Then Axis = 1 'Y Axis
If (GetOEMLED(61) = True) Then Axis = 2 'Z Axis
If (GetOEMLED(62) = True) Then Axis = 4 'A Axis
If (GetOEMLED(63) = True) Then Axis = 5 'B Axis
If (GetOEMLED(64) = True) Then Axis = 3 'C Axis (spindle)'
If (GetOEMLED(57) = False) Then Axis = 6 'Jogging mode selcted'
SetOEMDRO(1008, Axis) ' put it in User DRO 8
NotifyPlugins(19008) 'Send it to KFLOP