Donnie Timmons wrote:
> I'm having some problems getting EMC to see the I/o on port P3 of m 5i23 I 
> have P2 connect to a 7i33 and it seams to be work as I can run my motors and 
> the display show movement. I have at this time six limit switch and four 
> output wired up. The output are wired to a Opto 22 quad pack that is sink 5 
> volts to the OBIT+ pin of the 7i37 with the OBIT- tied to ground. I can 
> ground the OBIT+ side of any channel and the opto units turn on and drives 
> the AC Loads. So I know the Opto unit is good.

I'm glad your motors are working.  :-)

If the .hal file that you posted loads without error, it looks to me 
like EMC2 is seeing the P3 I/O port correctly (otherwise there would be 
no GPIO output pins).

For the outputs to work, you need to set the relevant .is_output HAL 
parameter to TRUE.  Otherwise the pin remains an input.  The mechanism 
for doing this is documented in the GPIO section of the hostmot2 manpage.

<http://www.linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#General%20Purpose%20I/O>

Do the limit switches work?  Try using halmeter to monitor the pins as 
you activate the limit switches.


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to