Dangling net names

More
09 Nov 2020 22:09 #188818 by lrak
Dangling net names was created by lrak
I'm trying to understand the ideas behind the dangling net names in the config?

I'm thinking they could be intended for 'drop-in' hal files?

So, I installed the VistaCNC PS-2 pendant and got a long list of errors - had to comment out a lot of lines in the main hal file.

I'm trying to figure out if I should just comment out the unused nets or change the vista supplied files?

This isn't stopping things - I'm just trying to come up with some best practice policy so making changes down the road won't be a nightmare.

,.,.
An example of a dangling net name for someone following along:

A line from the generated hal file:
net coolant-mist <= iocontrol.0.coolant-mist

$ halcmd show sig |grep coolant-mist

bit FALSE coolant-mist
<== iocontrol.0.coolant-mist

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

More
09 Nov 2020 22:31 #188819 by tommylight
Replied by tommylight on topic Dangling net names
linuxcnc.org/docs/2.8/html/hal/intro.html
This should be easier to get an idea of how that works
net = connect
coolant-mist = some random name that is easy to follow through the hal file, can be used multiple times throughout the hal files
iocontrol.0.coolant-mist = pin that is hard wired in LinuxCNC.
I am not the best to explain this, so i'll stop. :)
The following user(s) said Thank You: lrak

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

More
10 Nov 2020 00:10 #188827 by lrak
Replied by lrak on topic Dangling net names
I understand quite well how it works - net names that are not connected don't do anything. The question is about the best practice to keep things maintainable..

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

More
10 Nov 2020 01:08 #188830 by bevins
Replied by bevins on topic Dangling net names
I use the philosophy that if you don't use it, delete it.

I mean why would you have a coolant signal on a router........ just saying...
The following user(s) said Thank You: lrak

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

More
10 Nov 2020 06:48 #188842 by cmorley
Replied by cmorley on topic Dangling net names
It was so all configs would use the same names for common signals.
It was thought adding external HAL files would be easier/more transferable if the common signals needed used consistent signal names.
In fact some options in pncconf use these signals and it's less hassle to always have the signal present then to add them only if needed.

It's also more difficult to follow peoples HAL files if everyone uses a different name and a solution doesn't need to be adjusted for different signal names for the same function.

Chris
The following user(s) said Thank You: tommylight, Clive S, lrak, Aciera

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

More
11 Nov 2020 23:20 #189066 by lrak
Replied by lrak on topic Dangling net names
@cmorley
Thanks - what I was assuming - and it means I need to fix the VistaCnC hal files.

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

Moderators: cmorley
Time to create page: 0.101 seconds
Powered by Kunena Forum