Eric H. Johnson | 5 Dec 04:56

Re: Write error with hostmot2 and 7i43 board

Peter,

>> What EPP mode are you using and what type and length of cable do you have
between the 7I43 and Parallel port? <<

The available parallel port modes in the BIOS are Output only,
Bi-directional, EPP and ECP. It is set to EPP, but I do not see a further
selection for mode of EPP. I think we determined previously that it was
version 1.9. 

The cable was fairly hard to find, I got it here:
http://www.sealevel.com/product_detail.asp?product_id=732&26%2DPin%5FIDC%5Ft
o%5FDB25%5FCable%5F

It is 8" long and I previously rang it out.

>> What type of paralle port do you have (motherboard/PCI add-in) <<

The parallel port is straight from the mother board. This is the motherboard
I am using:
http://www.mini-box.com/Intel-D945GCLF2-Mini-ITX-Motherboard?sc=8&category=1
00

>> Is the iteration count always the same? <<

No. Running it again I got an iteration count of 30865.

>> I dont know if it would be caught by software checking but ISTR the 7I43
cannot use a base thread (EPP operations need to be atomic) so a 7I43 HAL
should only normally only use a Servo thread <<
(Continue reading)

Peter C. Wallace | 5 Dec 05:18

Re: Write error with hostmot2 and 7i43 board

On Thu, 4 Dec 2008, Eric H. Johnson wrote:

> Date: Thu, 4 Dec 2008 22:56:04 -0500
> From: Eric H. Johnson <ejohnson@...>
> Reply-To: "Enhanced Machine Controller (EMC)"
>     <emc-users@...>
> To: "'Enhanced Machine Controller (EMC)'" <emc-users@...>
> Subject: Re: [Emc-users] Write error with hostmot2 and 7i43 board
> 
> Peter,
>
>>> What EPP mode are you using and what type and length of cable do you have
> between the 7I43 and Parallel port? <<
>
> The available parallel port modes in the BIOS are Output only,
> Bi-directional, EPP and ECP. It is set to EPP, but I do not see a further
> selection for mode of EPP. I think we determined previously that it was
> version 1.9.

Newer bitfiles will only work with 1.9 so that seems correct

>
> The cable was fairly hard to find, I got it here:
> http://www.sealevel.com/product_detail.asp?product_id=732&26%2DPin%5FIDC%5Ft
> o%5FDB25%5FCable%5F
>
> It is 8" long and I previously rang it out.
>
>>> What type of paralle port do you have (motherboard/PCI add-in) <<
>
(Continue reading)

Re: Write error with hostmot2 and 7i43 board

Peter C. Wallace wrote:
> On Thu, 4 Dec 2008, Eric H. Johnson wrote:
> 
>> I am using the servo-thread for read and write. I also tried slowing down
>> the servo thread, although I could try slowing it down more. I was using 1ms
>> (1000000).
> 
> 1 ms should be fine (I think 100Usec is the approximate read+write time)

These figures are correct.  hm2_7i43.read() and hm2_7i43.write() 
together take about 100 us, so any servo period above about 200 us 
should work well with the 7i43.  1 ms is a great number to use.

--

-- 
Sebastian Kuzminsky
One of my most productive days was throwing away 1000 lines of code.
     -- Ken Thompson

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

Gmane