HURCO KMB-1 Control Update
- NT4Boy
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 5
25 Jan 2025 16:32 #319826
by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
I guess that's the bit I am missing.
In the hal file, there are no "input-a" anything for the X,Y and Z encoders so I don't get how lcnc knows what anything is connected to.
Sorry.
In the hal file, there are no "input-a" anything for the X,Y and Z encoders so I don't get how lcnc knows what anything is connected to.
Sorry.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18011
- Thank you received: 4847
25 Jan 2025 16:47 - 25 Jan 2025 16:49 #319828
by PCW
Replied by PCW on topic HURCO KMB-1 Control Update
The hal file is what connects things (it does not show all possible pins) ,
so to use an encoder input, you would do something like this:
net min-x <= hm2_7i92.0.encoder.01.input-a
You can use halshow to browse pins and parameters:
or list all pins/parameters by running this command:
halcmd show all
from a terminal window when LinuxCNC is running.
You can also
halcmd show all > all.txt
to create a copy/paste donor file when editing hal files
if you just want hardware pins/parameters
halcmd show all hm2
will do
If you just want encoder pins/parameters.
halcmd show all *encoder*
or
halcmd show pin *encoder*
if you just want to see encoder pins.
so to use an encoder input, you would do something like this:
net min-x <= hm2_7i92.0.encoder.01.input-a
You can use halshow to browse pins and parameters:
or list all pins/parameters by running this command:
halcmd show all
from a terminal window when LinuxCNC is running.
You can also
halcmd show all > all.txt
to create a copy/paste donor file when editing hal files
if you just want hardware pins/parameters
halcmd show all hm2
will do
If you just want encoder pins/parameters.
halcmd show all *encoder*
or
halcmd show pin *encoder*
if you just want to see encoder pins.
Attachments:
Last edit: 25 Jan 2025 16:49 by PCW.
Please Log in or Create an account to join the conversation.
- NT4Boy
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 5
25 Jan 2025 17:11 - 25 Jan 2025 17:18 #319829
by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Thanks for your patience.
I get that I can find all the available pins using the methods above.
What I don't get is that when I use mesaCT or PNCConf to create ini and .hal files and have selected say channel 0 for the X encoder, The physical pins that will be used don't show up the hal file.
Its to me like when you make the selection in the gui, some things are automatically known like the pins, and the hal file doesn't need to show all of them, just ones you might need to edit.
So the hal file isn't the place to look for the full details of a setup right back to pins.
I will learn this system...
I get that I can find all the available pins using the methods above.
What I don't get is that when I use mesaCT or PNCConf to create ini and .hal files and have selected say channel 0 for the X encoder, The physical pins that will be used don't show up the hal file.
Its to me like when you make the selection in the gui, some things are automatically known like the pins, and the hal file doesn't need to show all of them, just ones you might need to edit.
So the hal file isn't the place to look for the full details of a setup right back to pins.
I will learn this system...
Last edit: 25 Jan 2025 17:18 by NT4Boy.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18011
- Thank you received: 4847
25 Jan 2025 17:19 #319830
by PCW
Replied by PCW on topic HURCO KMB-1 Control Update
Yeah, the GUIs don't list all possible connections so you
need to connect these by directly editing the hal files.
need to connect these by directly editing the hal files.
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.085 seconds