INI and HAL files
- Twitchy88
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 2
11 Oct 2025 23:26 #336303
by Twitchy88
INI and HAL files was created by Twitchy88
Hello
Can someone give me a quick run down of the INI and HAL files. I successfully got an axis on my Fadal mill moving today with mesa 7i96s and DMM Dyn4 servos using axis. I used PNCCONF and it still wouldn't work, then I realised the files needed to be put somewhere but for the life of me I couldn't figure out what files needed to go where. After watching a video I saw the button to "create desktop launcher to start linux with this configuration".
I would like to learn how to modify the files manually and put them where they need to go. If I were to start from scratch without PNCCONF what files need to be modified and put where?
Thanks
Can someone give me a quick run down of the INI and HAL files. I successfully got an axis on my Fadal mill moving today with mesa 7i96s and DMM Dyn4 servos using axis. I used PNCCONF and it still wouldn't work, then I realised the files needed to be put somewhere but for the life of me I couldn't figure out what files needed to go where. After watching a video I saw the button to "create desktop launcher to start linux with this configuration".
I would like to learn how to modify the files manually and put them where they need to go. If I were to start from scratch without PNCCONF what files need to be modified and put where?
Thanks
Please Log in or Create an account to join the conversation.
- tommylight
-
- Online
- Moderator
-
Less
More
- Posts: 20746
- Thank you received: 7066
11 Oct 2025 23:50 #336305
by tommylight
Replied by tommylight on topic INI and HAL files
/home/cnc/linuxcnc/configs/
Notice cnc is the user name so it will be whatever user name you have on that PC.
And it does not matter at all where the config files are, as long as they are readable and have no spaces in the name (this was an issue way way before, no idea if still true).
You can have configuration files on a USB stick or network share or ... and still they can be run and used to control the machine.
For editing the config files, never ever use windows or office suits, use only simple text editors like xed or gedit or geany or nano or vim.
Use the PncConf wizard, it can do pretty much everything needed, and it can also edit the created configs.
Another thing, you can have multiple configs for the same machine with different setups, so make as much as you like till you get things working as you like them to.
Notice cnc is the user name so it will be whatever user name you have on that PC.
And it does not matter at all where the config files are, as long as they are readable and have no spaces in the name (this was an issue way way before, no idea if still true).
You can have configuration files on a USB stick or network share or ... and still they can be run and used to control the machine.
For editing the config files, never ever use windows or office suits, use only simple text editors like xed or gedit or geany or nano or vim.
Use the PncConf wizard, it can do pretty much everything needed, and it can also edit the created configs.
Another thing, you can have multiple configs for the same machine with different setups, so make as much as you like till you get things working as you like them to.
The following user(s) said Thank You: Twitchy88
Please Log in or Create an account to join the conversation.
- Twitchy88
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 2
12 Oct 2025 13:32 #336323
by Twitchy88
Replied by Twitchy88 on topic INI and HAL files
I feel like I am going to have to modify the files manually, to get the automatic tool changer working, and setting up things like servo drive enable, alarm input, estop, high and low speed on the spindle.
I could be wrong, very new to this.
I could be wrong, very new to this.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 19620
- Thank you received: 4526
12 Oct 2025 17:01 #336337
by andypugh
Replied by andypugh on topic INI and HAL files
Yes, all those things will need manual HAL edits.
You don;'t have to put everything in the same file, the [HAL] section of the INI can pull in as many .hal files as you need. It may make sense to have the toolchanger in a separate file, for example.
You can also have several INI files in the same config folder, sharing HAL files, tool table, etc. This can be handy if, for example, you have a part-time rotary axis, or an alternative geaometry. (for example my mill has a horizontal spindle that I sometimes use, and that means swapping the Z and Y axes.)
I might be worth skim-reading the list of available HAL components to get a feel for what is available. You are likely to need the "carousel" component, for example.
linuxcnc.org/docs/stable/html/
Scroll down to (and expand if necessary):
Commands and userspace components
Realtime components and kernel modules
You don;'t have to put everything in the same file, the [HAL] section of the INI can pull in as many .hal files as you need. It may make sense to have the toolchanger in a separate file, for example.
You can also have several INI files in the same config folder, sharing HAL files, tool table, etc. This can be handy if, for example, you have a part-time rotary axis, or an alternative geaometry. (for example my mill has a horizontal spindle that I sometimes use, and that means swapping the Z and Y axes.)
I might be worth skim-reading the list of available HAL components to get a feel for what is available. You are likely to need the "carousel" component, for example.
linuxcnc.org/docs/stable/html/
Scroll down to (and expand if necessary):
Commands and userspace components
Realtime components and kernel modules
The following user(s) said Thank You: Twitchy88
Please Log in or Create an account to join the conversation.
- Twitchy88
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 2
13 Oct 2025 11:45 - 13 Oct 2025 11:46 #336373
by Twitchy88
Replied by Twitchy88 on topic INI and HAL files
Thank you!
I got carousel and looked through it quick.
So my understanding is the machine has a main INI file and HAL file. The INI file pulls in the HAL files that are to be used. HAL files connect real world things to hardware, hardware to hardware and anything virtual?
What file actually dictates how the machine moves for carousel, and what language would it be programmed with? Im an industrial electrician that programs with ladder.
I got carousel and looked through it quick.
So my understanding is the machine has a main INI file and HAL file. The INI file pulls in the HAL files that are to be used. HAL files connect real world things to hardware, hardware to hardware and anything virtual?
What file actually dictates how the machine moves for carousel, and what language would it be programmed with? Im an industrial electrician that programs with ladder.
Last edit: 13 Oct 2025 11:46 by Twitchy88.
Please Log in or Create an account to join the conversation.
Time to create page: 0.133 seconds