hal functions

  • Z3rni3
  • Away
  • Junior Member
  • Junior Member
More
12 May 2025 06:01 - 12 May 2025 06:18 #328247 by Z3rni3
hal functions was created by Z3rni3
Hey,
I'm currently working on configuring different setups using various Mesa boards (7i96S and 7i95T).
For creating the configurations, I’ve been using either the Stepconf Wizard or Mesact. Unfortunately, neither tool seems to produce fully working configurations for my particular setup.That’s why I’m now trying to better understand which HAL functions are actually necessary.
Specifically, I’d like to learn what the different pins mean and how they should be connected in a way that makes sense.Could you point me toward some resources or documentation that would help me learn these basics?

Thanks a lot for your time!
Last edit: 12 May 2025 06:18 by Z3rni3. Reason: Adjusting text breaks

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
12 May 2025 07:50 #328251 by Aciera
Replied by Aciera on topic hal functions

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

  • Z3rni3
  • Away
  • Junior Member
  • Junior Member
More
12 May 2025 08:13 - 12 May 2025 08:18 #328252 by Z3rni3
Replied by Z3rni3 on topic hal functions
Thank you for your reply!
That's already the right direction, but I'm more interested in the commands like:
"net joint.0-pos-cmd <= joint.0.motor-pos-cmd"
These are the commands I would like to understand!

Next, I would like to understand which pins I can connect to which.
I often get a message like:
"you cannot connect this pin since PinX has already been connected to PinY"
Last edit: 12 May 2025 08:18 by Z3rni3. Reason: Grammar

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
12 May 2025 08:55 #328255 by Aciera
Replied by Aciera on topic hal functions

That's already the right direction, but I'm more interested in the commands like:
"net joint.0-pos-cmd <= joint.0.motor-pos-cmd"
These are the commands I would like to understand!


Have you actually looked at the linked document?
You need to understand the difference between a 'signal-neme' and a 'pin-name' See section 1.4.

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

  • Z3rni3
  • Away
  • Junior Member
  • Junior Member
More
12 May 2025 09:41 #328261 by Z3rni3
Replied by Z3rni3 on topic hal functions
Yes, I’ve had a look at the link.
I’m sorry I didn’t explain my problem clearly before.

My main issue is figuring out how to correctly connect the components to, for example, make a motor turn.
I’d like to understand which signals and pins are needed and what their actual roles are.
Take the position signal, for example — in my setup, I’m using encoders, so they should be providing that signal.
What I’m looking for is a resource that explains where these signals come into play and what their specific purpose is in the system.

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
12 May 2025 10:43 #328265 by Aciera
Replied by Aciera on topic hal functions
To get information about the pin functionality you need to look at the man page of the specific component which can be found here:
linuxcnc.org/docs/html/man/man9/


For example the 'motion' component:
linuxcnc.org/docs/html/man/man9/motion.9.html

or the 'pid' component
linuxcnc.org/docs/html/man/man9/pid.9.html
The following user(s) said Thank You: Z3rni3

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

  • Z3rni3
  • Away
  • Junior Member
  • Junior Member
More
12 May 2025 10:49 #328266 by Z3rni3
Replied by Z3rni3 on topic hal functions
This is perfect! I believe these links cover pretty much everything I was hoping to find.
Thank you very much!
I'll take a closer look at these pages and the related ones.

Hopefully, you'll have some time to answer a few questions if I’m still unclear afterwards.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum