On Monday 12 June 2017 13:45:58 Peter C. Wallace wrote:

> On Mon, 12 Jun 2017, Gene Heskett wrote:
> > Date: Mon, 12 Jun 2017 12:07:15 -0400
> > From: Gene Heskett <ghesk...@shentel.net>
> > Reply-To: "Enhanced Machine Controller (EMC)"
> >     <emc-users@lists.sourceforge.net>
> > To: "Enhanced Machine Controller (EMC)"
> > <emc-users@lists.sourceforge.net> Subject: [Emc-users] Question for
> > Peter C. Wallace
> >
> > Hello Peter;
> >
> > I have a problem trying to run linuxcnc on a pi 3b.
> >
> > I think it could be solved if somehow, I could generate a
> > watchdog.has_bit=false coincident with enabling the machine, but
> > hals parser refuses to allow even a tristate_bit module to access
> > and reset the watchdog.
> >
> > Have you a hal snippet that will do that?
> >
> > Thank you.
> >
> > Cheers, Gene Heskett
>
> I dont see any issue with clearing WD has bit:
>
>   halcmd net clearwd hm2_7i92.0.watchdog.has_bit
>   halcmd setp hm2_7i92.0.watchdog.timeout_ns 1000000 (this causes a WD

This is a 7i90, timeout_ns is not adjustable ANAICT.  Or it wasn't nearly 
a year ago the first time I tried, now it works. Thank you.

> bite) halcmd setp hm2_7i92.0.watchdog.timeout_ns 20000000 (back to a
> value that wont bite) halcmd sets clearwd false  (this clears the WD)

And that works, now to arrange that its done whenever I enable the 
machine.  hal needs an if/then/else/endif command.  Badly.

Thank you Peter.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to