I am trying to use a Mesa Electronics' m7i43 FPGA card, one of their 4 servo 
accessory cards, and their input/output card.  I had previously wired this 
combination up to my BTC-1 mill to drive the servos and the Estop logic.  I 
used Ted Hyde's article on bringing up the 7i43 as a starting place.  

For me, in such an endeavor, I realize I have a lot to learn, so I started out 
just try to pull the Estop relay to ground.  I found the correct set of 
functions to do this (setp hm2_7i43.0.gpio.P3.041.is_output 1 , setp 
hm2_7i43.0.gpio.P3.041.is_inverted 1, setp hm2_7i43.0.gpio.P3.041.out 1).  Then 
I confidently added them as 3 lines of code to the .hal file.  I then stopped 
the EMC code (using the upper right hand "X") and restarted it by clickong on 
the icon on my desktop.  I was really suprised when the I/O didn't work.  I 
tried re-tying the commands in as I had before, and that didn't work, either.  
Then I tried every combination of instruction I could, and only occasionally 
could get the relay to be pulled to ground.

The 3 instructions and a change in the number of PWMs coming put of the FPGA 
are the only changes I made to Ted's files.

Well, I seem to remember now that some components of EMC remain when you kill 
the program as I had.  So I shut the computer completely down, started it back 
up, and tried the new hal script.  The changes in the script didn't seem to do 
anything.  I could type in the changes, and then they would work.  Fearing I 
was trying to ask EMC to do something it was not ready to do, I added a call to 
a separate file at the bottom the the ini file, and loaded the commands in the 
new file.  After totaly rebooting, the changes still did not work.  Does anyone 
have any suggestions?

I am running 2.2.8, hostmot2 V 0.15, and 7i43 v0.2.

_________________________________________________________________
Windows Liveā„¢: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_042009
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to