Hey gents,
Here is what Mach can do, Brian wrote a Serial plugin and a PID loop plugin that went to a PLC for THC, I have copies of both, and they could be combined to do the PIC acros the serial if thats what you want.......... BUT..............
I realize people say modbus and other technologies i.e. pokeys/usb is too slow, both Modbus, plugins, run in Machs 10hrtz update loop. so 1/10th of a second. I find it hard to believe that you Z axis can move THAT much in 1/10th of a second, due to acceleration/decelration times, inertia ect.
From what I understand back in the day, when Brian did the THC plugin for analog PLC control, he said it worked ok acxross the modbus. Currently in mach, (that I am aware of), there is no "FAST" analog input stuff, i.e. attached to a Para Port etc. I suspect that if you think Mach is TOO slow for your PID loop then you will need to do a stand alone PID and Z axis hiegth control. Note: this may change in the future with mach version 4, as brian says that updates are running at 50hrtz....... so.......
but at any rate, If you want to use the Modbus with a device like a PLC, or one of Aurturos boards, or Peter Holmans board, or...?? it really doesnt matter, Pokeys on USB......... it all will currently ultimatly run inside machs 10hrts loop, ther e is a 40 hurtz loop available in the plugin but it is only for VERY fast code, other wize you crash mach. So I dont really fool with it much.......
Since I am NOT a THC user, someone else will have to do a Screen Set for it, the plugin can be tied into the screen set or what ever...... you can touch and do all kinds of stuff with mach from a plugin....... Further I use MSI installers on all my plugins now, so when you run one of mine, it installs the plugin, the screen set, the xml, (the modbus config if applicable), Macros, Bitmaps, help file, read me......etc.
it is easy to make the PID loop user adjustable, via dialog boxes........ Personally for industrial applications I prefer a PLC that has a proven track record of reliablity in an industrial enviroment. A Automation Direct DL05, with an Analog module would probably run you around $200-300 so that may be getting OUT of the realm of Cheap.....
I do some "beginner" programming of Pics, but I only have a "learners" PIC board, and no real world experience in using them. But, programming, is programmming.....
scott