Stuart Stevenson wrote:
> Gentlemen,
>     I may be overlooking something obvious.
>     On my G&L machine I have two pulse generators to move the axes.
> One mpg on the control cabinet and one mpg on a handheld box on the
> end of a retractile coil (think telephone) cord. I have a momentary
> push button beside each pulse generator to toggle the control input
> between the control cabinet and the handheld box. When the control
> focus is on the cabinet the axis selection will be from the EMC AXIS
> screen. When the control focus is on the handheld box the axis
> selection will be from a four position switch mounted on the handheld
> box.
>     How would I configure HAL to allow this? I am using a HAL encoder
> and bringing the mpg A and B channels through the I/O board. Is it
> possible to change the axis selection in AXIS using the four position
> switch? I would also need to disable the axis selection from the
> remote switch when the focus is on the main control box.
You need to use the mux2 hal component to select between the two 
MPG encoders.  The two momentary buttons could be connected to 
the "set" and "reset" inputs of the flipflop HAL component.  The 
output of the flipflop would feed the select input of the mux2.

Now, for the selected axis, that might be a little more 
complicated.  The easiest thing I can think of (which might not 
be easy to DO at all) would be to have the selector switch 
change the selected axis in Axis.  But, there might not be an 
interface to control that from HAL.  There is a jog input to the 
  axis motion function.  What you need is a complement to the 
mux4 component, that would be a numerical (not binary) decode4 
component, that could take the output of the mux2 and send it to
one, and only one, of the axes' jog input.  You could make a 
crude hack using 4 instances of the mult2 component, multiplying 
the output from the mux2 by either zero or one.  You'd probably 
need some mess of ands and ors to make that one or zero from the 
selector switch.

>      I read all the manuals and documentation I could find. If this is
> just a mental block would someone unblock my mind?
No, it takes a couple HAL components that don't appear to exist, 
although they shouldn't be hard to code.  I'm sure some of the 
guys who have created a new HAL component would know a little 
more about it.

Jon

Jon

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to