Excellent Jeff, that's it, thanks.

I just had to change the line to "setp m5i20.0.out-03-invert 0" instead of
"invert 1".  I thought "invert 1" just toggled the default state - hadn't
understood how it worked.

Regards
Steve Corboy



> Message: 3
> Date: Tue, 22 Dec 2009 10:54:37 -0600
> From: Jeff Epler <jep...@unpythonic.net>
> Subject: Re: [Emc-users] How to invert pin connected to signal?
> To: "Enhanced Machine Controller (EMC)"
>        <emc-users@lists.sourceforge.net>
> Message-ID: <20091222165437.gb4...@unpythonic.net>
> Content-Type: text/plain; charset=us-ascii
>
> I would expect what you described (setp ...-invert) to work.  It's true
> that you can't setp a pin that is connected to a signal, but -invert is
> not connected to any signal.
>
> When emc is running, open a terminal, run 'halcmd', then 'show param
> m5i20.0.out-03-invert'.  This will show whether the pin is supposed to
> be inverted or not.
>
> Hm, looking at the source code, it appears that in the m5i20 driver the
> default value of -invert is TRUE.  Perhaps you actually need to set it
> to FALSE to get the opposite polarity?  The 7i37 isolation daughtercard
> has active-low outputs; this may have been done so that the default is
> compatible with the 7i37.
>
> Jeff
>
>
>
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to