I got to spend some quality time today pulling together a bunch of code revisions to my Arduino-based pendant design, which has a 25-position keypad, MPG, and 4x20-character LCD that talks to HAL over the Arduino's serial-over-USB connection. I made a quick video showing the current state of the project:
http://www.youtube.com/watch?v=ONxVoAXadTk On the pendant side, I (think) I fixed a major bug that caused the pendant to freeze or behave weirdly when the MPG encoder was spun too rapidly. At the very least, I can't seem to replicate the problem anymore, and the fix (clipping the encoder output over 200 pulses per second) doesn't seem to have created any new behavioral anomalies. This was the one real showstopper problem so solving it makes me feel a lot better about this being a truly usable solution and not just a flaky prototype/toy. On the PC side, the Python interface now handshakes most of the modal changes (axis-to-jog selection, jog rates, etc.) with the pendant, and now supports multiple display pages appropriate to the machine's state (e.g E-Stop, machine off, manual mode, auto mode). While I have a lot more individual signals to wire up, they'll just be more of the same. So in software terms, I think all of the major challenges are solved. One thing I couldn't quite figure out though, is where I could find a pin that gives me the current velocity of the machine? Everything else I've needed has been right in halui, but I can't find anything. The motmod module has a pin motion.current-vel which looked promising, but I'm not really familiar with anything outside halui.... Anyway, I've had to kick over a lot of rocks getting this working, so if anyone is trying to get anything Arduino-based to work with EMC, feel free to toss questions my way :) ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users