hal functions

More
12 May 2025 06:01 - 13 May 2025 10:45 #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 pncconf 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: 13 May 2025 10:45 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.

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.

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.

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.

More
12 May 2025 18:28 #328299 by PCW
Replied by PCW on topic hal functions
Either pncconf or MesaCT can make working configurations for a 7I96S
(and MesaCT can make working configurations for the 7I95T AFAIK)


What actual issue do you have?

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

More
13 May 2025 05:58 - 13 May 2025 06:04 #328346 by Z3rni3
Replied by Z3rni3 on topic hal functions
I'm currently using PNCconf to set up my 7i96S board. So far, everything works fine when using stepgen for motor control. However, I'm running into an issue when switching to encoder-based feedback in a closed-loop setup. Specifically, whenever I try to home the joint using the encoder, I encounter a following error (the traveled distance until Error increases when i enlarge the "FERROR"). The stepgen setup homes without any problems, so it seems the issue is related to the encoder configuration. I'll upload my config in case anyone wants to take a look. I'd really appreciate any help or suggestions!
Attachments:
Last edit: 13 May 2025 06:04 by Z3rni3.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
13 May 2025 07:01 #328351 by tommylight

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

Time to create page: 0.078 seconds
Powered by Kunena Forum