I purchased a powermate before I read the posts of the plug-in being broken. However, since I had the device, I decided it was a good time to get back into programming and also to try my hand at the Mach SDK. I decided to start from scratch with a new plug-in.
I have written a driver for the device using another project as a template that I located on the web. I have the device working in a test app and movement simulated by progress bars using C and I am now ready to move it into a plug-in enviornment.
I have decided to have the following functions:
Pressing the button down with a quick release cycles the axis.
Rotating the knob jogs the selected axis.
Pushing the knob down and rotating adjusts the Jog%.
The LED will pulse at the jog % rate. i.e.- faster if moving faster.
The question I have is what would be the best way to jog the axis based on the knob rotation? Do I read the DRO and save as the start point, take the knob input, add it to the start point and store it as the end point, then jogon until Mach's DRO reaches the value of my end point variable? At this point simple issue a Jogoff? Is there a better way? Let me know.
Is anyone using this plugin successfuly with their powermate? if so how do you config everything to get it to work? mine is not working and the DLL is enabled in config/plugins