Thanks to everyone who helped me get this far, I am nearly there
.
I have set up the number pad, using the external buttons and OEM codes, and can now get all the functions you can see in the pic. I have a spare button because the pad I used has a single and a double zero button. So I thought it would be good to use this button to bring out the mach3 pendent thus not having to use the Tab key on the keyboard.
I have tried everything I can think of, but have come to a dead end. Has anyone any ideas for me please?