On Saturday 30 June 2018 06:23:04 Gene Heskett wrote:

> On Friday 29 June 2018 20:06:44 andy pugh wrote:
> > On 30 June 2018 at 00:52, Gene Heskett <ghesk...@shentel.net> wrote:
> > > Looks good Andrew, thanks. But checking the man page, its under
> > > DEBUGGING and subject to going away at any time. Not good when
> > > this code might be legacy code someday.
> >
> > I don't think that one will be removed. It's too useful. Far more
> > likely to be promoted to permanent.
> >
> > > A bitslice to change that 5 into 3 setup pins for a lut5, so 2
> > > additional modules get loaded by hal.  Or is there a simpler way?
> >
> > It's awkward as it is S32.
>
> That indicates the select8 might be the correct module to detect
> motion.motion-type=5.
>
> So:
> loadrt        select8 count=1
> addf  select8.0 servo-thread
>
> later in .hal file:
> net probe-ctl <= motion.motion-type => select8.0.sel # disable out5 if
> not probeing move net probe-sense <= hm2_5i25.0.gpio.003.in_not =>
> select8.0.enable # edit "not" for correct action net probe-hit <=
> select8.0.out5 =>  motion.probe-input # signal source is p3-15,
> gpio.003
>
> But that gets an error exit:
> twopass: Error in file ./GO704fast.hal:
>     Pin 'select8.0.enable' does not exist
>
> ??? read man 9 select8, several times, can't see error. Lost mind? man
> page error??? comment that line out, its runs. halmeter says its not a
> pin, but a parameter?
>
> 'scuse me but what good is a parameter, which the manpage says it is:
> PARAMETERS
>        select8.N.enable
>               bit rw (default: TRUE) Set enable to FALSE to cause all
> outputs to be set FALSE Note the rw...
>
> Crazy, it was a Wurlitzer.  Can it be made into a pin? Many times more
> usefull. How many previous users would that break?
>
> me goes wandering off & back to bed.
>
> I'll have to add an and2 I guess.  Send select8.0.out5 >and2.N,in0,
> probe-hit to and2.N.in1, and2.N.out => motion.probe-in

And that worked.  And it totally ignores swarf or tool induced shorts 
when not actually doing a g38.x. Now all I have to add is the last 2 of 
the 3 operations to install the keying cap screw in the side of the 
slug. The 2mm deep slot is being cut right now.


-- 
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-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to