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

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 <e...@aercon.net> 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 <p...@hb9etc.ch> 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
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>>
>
------------------------------------------------------------------------------
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to