On 23 January 2010 00:18, Dustin Monroe <[email protected]> wrote:
> How do I set the IO so that the home is shared with the limit switch as > this is how my machine was previously setup? You need to connect the limit switch to axis.N.home-sw-in, axis.N.pos-lim-sw-in and axis.N.neg-lim-sw-in in the HAL file. This is what my HAL file says as I have a debounce function on the switches and I am using a Mesa card. net xlimunfilt debounce.0.0.in <= hm2_7i43.0.gpio.017.in_not net both-home-x <= debounce.0.0.out net both-home-x => axis.0.home-sw-in net both-home-x => axis.0.neg-lim-sw-in net both-home-x => axis.0.pos-lim-sw-in Note that the signal name (both-home-x) is completely arbitrary. Without the filter (which also needs to be declared, attached to a thread and have its delay set elsewhere in the HAL) you could use: net lets_call_it_Fred <= hm2_7i43.0.gpio.017.in_not net lets_call_it_Fred => axis.0.home-sw-in net lets_call_it_Fred => axis.0.neg-lim-sw-in net lets_call_it_Fred => axis.0.pos-lim-sw-in Or if you want, it can all go on one line. Note that the arrows are optional and just to help human readers. net both-home-x <= hm2_7i43.0.gpio.017.in_not => axis.0.home-sw-in axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in -- atp ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
