Jon, I actually got the idea for using diodes to multiplex my single pole
switches form that page you linked. I simplified it a bit by soldering the
diodes directly to the switch. See attached schematic.
Thanks for explaining your hal file, makes sense now. I do like having it
all in one component though as I have multiple machines I will be using it
on and trouble shooting should be easier with only one component name to
spell wrong. Its hard to mess up MPG, but I did spell it as MPJ once and
could not figure out what the errors were about!
On Thu, Feb 23, 2017 at 10:34 PM, Jon Elson <el...@pico-systems.com> wrote:
> 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
>
------------------------------------------------------------------------------
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