Near
- jensor
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 84
- Thank you received: 3
25 Mar 2018 22:07 #107854
by jensor
Near was created by jensor
Where do I find detailed instructions on using the "near" component of hal. I see it used in examples but unable to find how to use it.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18011
- Thank you received: 4847
25 Mar 2018 22:24 #107857
by PCW
Replied by PCW on topic Near
Have you read the (rather terse) manual page?
man near
man near
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4866
25 Mar 2018 23:49 - 26 Mar 2018 10:22 #107862
by andypugh
Replied by andypugh on topic Near
Terse is the word, isn't it?
linuxcnc.org/docs/2.7/html/man/man9/near.9.html
You need to load the componentthen add it to a thread so that it gets updated every servo cycleThen connect the inputs and outputsand set the tolerance and comparison value
The comparison value can be supplied by another HAL pin if required.
linuxcnc.org/docs/2.7/html/man/man9/near.9.html
You need to load the component
loadrt near count=1
addf near.0 servo-thread
net some_signal_name one.of-the.hal.pins near.0.in
net another_signal_name near.0.out another.hal.pin
setp near.0.in2 100
setp near.0.difference 1
The comparison value can be supplied by another HAL pin if required.
Last edit: 26 Mar 2018 10:22 by andypugh. Reason: formatting error
Please Log in or Create an account to join the conversation.
- jensor
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 84
- Thank you received: 3
25 Mar 2018 23:52 #107863
by jensor
Replied by jensor on topic Near
Thanks for that info. That does work however it is more convenient in my situation to be able to access it on line. Is that possible. My linux machine is on the bridgeport in my shop, while I'm sitting here in my kitchen on my laptop.
Is there a way of getting to this information online?
Is there a way of getting to this information online?
Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
Less
More
- Posts: 567
- Thank you received: 323
25 Mar 2018 23:55 - 25 Mar 2018 23:59 #107865
by dgarrett
Replied by dgarrett on topic Near
Docs (current branch): linuxcnc.org/docs/2.7/html/
Scroll down for the man pages
Example: linuxcnc.org/docs/2.7/html/man/man9/near.9.html
On a machine with LinuxCNC installed, you can always use the command line:
Scroll down for the man pages
Example: linuxcnc.org/docs/2.7/html/man/man9/near.9.html
On a machine with LinuxCNC installed, you can always use the command line:
$ man near
Last edit: 25 Mar 2018 23:59 by dgarrett.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18011
- Thank you received: 4847
26 Mar 2018 00:52 #107871
by PCW
Replied by PCW on topic Near
If you are lazy and forgetful like me you can also goggle:
man linuxcnc near
man linuxcnc near
Please Log in or Create an account to join the conversation.
- jensor
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 84
- Thank you received: 3
26 Mar 2018 11:02 #107895
by jensor
Replied by jensor on topic Near
Yes, that finds it, however
linuxcnc haui near
doesn't find it for me.
It seems like you need man in the search data.
Now I have bookmarked
linuxcnc.org/docs/2.7/html/
linuxcnc haui near
doesn't find it for me.
It seems like you need man in the search data.
Now I have bookmarked
linuxcnc.org/docs/2.7/html/
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
26 Mar 2018 14:30 #107902
by Todd Zuercher
Replied by Todd Zuercher on topic Near
You don't need "man" in the google search "linuxcnc near" or 'linuxcnc near.9" are enough to bring up the man page as the first couple hits. (At least for me, but maybe Google knows me too well.)
Please Log in or Create an account to join the conversation.
Time to create page: 0.080 seconds