This is probably going to seem like a ridiculously obvious question, but before I start buying and cutting too much material I wanted to double-check my understanding of how the various parts of a complete system interact.
The project I'm working on is to build a really comprehensive physical interface panel for my milling machine. Namely I want to have dedicated buttons for lots of functions, some with LEDs to indicate current status. For instance, I'd like a button that toggles flood coolant on and off, with an LED that shows whether it's on or off, (in case I don't happen to notice the lube spraying everywhere....) I've gotten the basic HAL-Arduino example from the Axis unpy.net site to work, and I've used the Arduino for other things before, so I feel like I have at least one idea of where to start on the hardware side. Now, my question is what happens with the various GUIs like Axis if there is something like my keypanel in the system. Does Axis (or TkEMC, etc.) actively poll HAL every so often to see if the status of things (like flood coolant) have changed? Ideally, I'd like to see the following sequence of events occur: 1. Flood coolant is off. Both the control panel LED and the Axis UI show flood coolant off. 2. I load and start a G-code program which uses flood. The LED turns on as the flood G-code is executed. 3. I press the flood button on the keypanel which sends a signal to HAL to toggle the flood coolant off. 4. HAL shuts off the flood coolant. The keypanel LED goes out and the Axis UI shows flood coolant as off. Essentially, I think my question boils down to whether I understand HAL correctly as being the source of truth for both my physical keypanel as well as for the GUI, or whether the GUI thinks it's the only thing affecting machine state? ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users