Well after persevering with this thing I now have
some of the commands working. Firstly, I was a fool and finally figured out why the MDI COMMANDS weren't working..... I forgot to put the header [HALUI] in the ini file before them. Once I did that I could do a number of things with the pendant.
However there are some gotchas. PP leaves Linuxcnc in MDI more often than not meaning some part of the UI must be executed to get in into MODE_MANUAL at which time the pendant commands will work. I will attempt to investigate how to overcome this but I suspect it need a recompile of the xhc-hb04 executable, something I not comfortable with.
More investigation ans testing will be needed before I can connect this to my actual machine as I have been testing with PP in sim mode.
Any thoughts on how to keep PP in MANUAL mode would be appreciated, cncbasher maybe?
Cheers