How to start multiple limit3 instances, syntax question

More
05 Jan 2019 17:21 #123560 by cogzoid
For my project I'm going to need multiple limit3 instances to add to the thread, and each limit3 will control a different axis.

Here's how I got one to work:
loadrt limit3
addf limit3.0 servo-thread

However, I'm not sure how to add limit3.1, limit3.2, etc. Using more "addf" commands didn't work.

linuxcnc.org/docs/2.7/html/man/man9/limit3.9.html doesn't explain this very well.

I'm sure this is a simple syntax fix, but I'm not sure where to look up the answer.

Please Log in or Create an account to join the conversation.

More
05 Jan 2019 18:52 #123563 by islander261
Use the count= or names= option on the loadrt line. I like the names options because it gives me a clue about the use of each instance.

loadrt limit3 count=3

addf limit3.0 servo-thread
...
or

loadrt limit3 names=limit3.xaxis,limit3.yaxis,limit3.zaxis

addf limit3.xaxis servo-thread
addf limit3.yaxis servo-thread
addf limit3.zaxis servo-thread

John
The following user(s) said Thank You: cogzoid

Please Log in or Create an account to join the conversation.

Time to create page: 0.146 seconds
Powered by Kunena Forum