On Tue, 14 Apr 2009, James Reed wrote:
> Date: Tue, 14 Apr 2009 23:13:24 +0000
> From: James Reed <[email protected]>
> Reply-To: "Enhanced Machine Controller (EMC)"
> <[email protected]>
> To: EMC USERS LIST LIST <[email protected]>
> Subject: [Emc-users] EMC2 typed versus scripted commands
>
>
> 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.
My guess is that the watchdog is biting you...
If you are going to manipulate I/O by hand, you will need to disable (or
never enable) the watchdog
Peter Wallace
Mesa Electronics
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.
------------------------------------------------------------------------------
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