On Saturday 10 May 2014 18:09:22 Erik Friesen did opine
And Gene did reply:
> Here is what I have so far
> 
> loadrt comp count=1
> loadrt constant count=1
> addf comp.0 servo-thread
> setp comp.0.in0 25
> 
> #setp comp.0.hyst
> net comp.0.in1 <= hm2_5i25.0.7i76.0.0.analogin0
> net MySignal <= comp.0.out

Put yourself a commented line above where you are constructing a "net" 
statement to help you remember the syntax.

#net    netname         signal_src      target  target  target yadda

And FWIW, "netname" can be reused later in the file to assign more 
targets. 

> Here is the error
> Signal name 'comp.0.in1' must not be the same as a pin.  Did you omit
> the signal name?
> 
> Why?  I obviously have some complete lack of understanding this hal
> scheme.
> 
> On Sat, May 10, 2014 at 6:02 PM, Erik Friesen <[email protected]> wrote:
> > Thanks, I did find it here.  http://linuxcnc.org/docs/html/man/man9/
> > 
> > I find it frustrating though, I still haven't figure out how to
> > compare a float value and make a signal.
> > 
> > This would have taken about a minute in C.  Something like
> > 
> > if(Value>25.0) return 1;
> > 
> > On Sat, May 10, 2014 at 5:49 PM, Philipp Burch <[email protected]> wrote:
> >> Hi Erik!
> >> 
> >> On 10.05.2014 23:30, Erik Friesen wrote:
> >> > Where is one supposed to find information about how to use hal
> >> 
> >> components?
> >> 
> >> > The hal manual has nothing more than a teaser.  I am looking for
> >> > info on comp, one of the arithmetic "functions"
> >> 
> >> Most HAL components have associated manpages, so you can usually
> >> just type
> >> 
> >> man <component>
> >> 
> >> in a terminal. Maybe you need to specify the manual section, if
> >> there is a command with the same name (such as for 'comp'):
> >> 
> >> man 9 comp
> >> 
> >> (It is section 9 if I recall correctly, otherwise there is a hint if
> >> you just type man comp.)
> >> 
> >> Regards,
> >> Philipp


Cheers, Gene
-- 
"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>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to