On 05/17/2013 08:46 AM, Maximilian H wrote:
> I have prepared a pc with a 7i43+7i33+custom pcb to interface the mill.

Which version of LinuxCNC are you using?


> That pc with the interface I have both tested with the latency test and
> also with 7i43+7i33+pcb and the output for EstopWrite connected to the
> input of EstopSense in the lab for over *two weeks*, not days, with no
> latencies at all to speak of. Max. latency with huge load of IO was in
> the order of a few tens of microsecs, so I expected no problems. I use a
> servo loop of one millisecond.

Sounds good.


> Now when I connect the setup to the mill I get bitten by the 7i43's
> watchdog within maybe an hour, often much earlier, and I have already
> increased the watchdog timeout from 5 milliseconds to 0.5 seconds, i.e.
> 500 milliseconds.
>
> I am a bit out of ideas of what could be the cause for the watchdog
> biting. The lab setup runs fine with latency test, the pc+7i43+7i33 on
> the lab bench with the servo calculations running also makes no
> problems. I am getting no message of "unexpected realtime delays" in
> axis or in dmesg when the watchdog bites - which I would also expect
> when the watchdog is not pet for 0.5 seconds.

When .has-bit goes high, does the .io-error pin also go high?

Where in your servo thread do you call the pet_watchdog function?

Can you show us 'halcmd show funct' and 'halcmd show thread' before and 
after the watchdog bites?


> Finally is there an IO pin in the motion module to which I can connect
> the 7i43 watchdog's has-bit pin ? Both to use the message to generate an
> estop and to be able to reset it ? I looked at the pins of motion at
> http://linuxcnc.org/docs/html/man/man9/motion.9.html, but could not see
> something suiteable. Because right now I have to manually halcmd setp
> hm2_7i43.0.watchdog.has_bit 0 in a terminal, and I would like to be able
> to reset that when I get out of estop.

You could use the .has-bit pin as another input into your classic ladder 
estop chain, and that would probably make sense.

You could also add some other logic to reset the watchdog when you leave 
estop, but i don't think you should.  The watchdog should never, ever 
bite, and it shouldn't be a routine matter to reset it.  Let's figure 
out why it's biting, and fix that problem.


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to