On 02/23/2017 01:32 PM, Kurt Jacobson wrote: > > I tried to edit Jon's HAL file found here > <http://pico-systems.com/codes/jebport/pendant.hal> to fit my needs but I > never did get it to work. I guess I don't understand how he used select8 > and wsums. So that I could use a single-deck switch, I used a diode matrix to encode the axis selector into binary code. Zero is not implemented, so that an enable switch has to be pushed to select an axis (or whatever) to jog. A schematic is linked to on the bottom of this page : http://pico-systems.com/pendant.html
This ends up creating 3 bits for up to 7 active selections (0 being reserved for nothing selected). So, the 3 bits are then sent into 3 inputs of a weighted sum, which then produces an integer from zero to 5 in the case I had set up. This is then sent to a select 8 as the sel input. The outputs of the select8 are then sent to enable jogging and feedrate overrides. Actually, putting all these things into one HAL component is more efficient. My code used about a dozen, I think. Jon ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users