- Configuring LinuxCNC
- Configuration Tools
- StepConf Wizard
- Stepconf HAL: ERROR: duplicate component name 'hal
×
Forum Header
Stepconf HAL: ERROR: duplicate component name 'hal
09 Jan 2016 17:41 #68113
by nicokid
Stepconf HAL: ERROR: duplicate component name 'hal was created by nicokid
Hi,
Stepconf still to put "HALUI = halui" in my ini file. This is my configuration:
Because in my custom.hal file I put this:
loadusr halui -ini custom_halui.ini
when I run linuxcnc I get:
HAL: ERROR: duplicate component name 'halui'
I read several guides on how to customize the configuration of LinuxCNC but unfortunately after that I can no longer launch stepconf because the changes are deleted.
Stepconf still to put "HALUI = halui" in my ini file. This is my configuration:
Because in my custom.hal file I put this:
loadusr halui -ini custom_halui.ini
when I run linuxcnc I get:
HAL: ERROR: duplicate component name 'halui'
I read several guides on how to customize the configuration of LinuxCNC but unfortunately after that I can no longer launch stepconf because the changes are deleted.
Please Log in or Create an account to join the conversation.
09 Jan 2016 20:28 #68120
by andypugh
If you really need to load HALUI with a different INI file than the default (Are you sure you need to do this?) then you will have to
unloadusr halui
first.
Or. better, remove the HALUI=halui from the main INI file and switch to hand editing the HAL and INI.
Just consider that Stepconf has now done its job, and the most effective place to tweak is now directly in the config files.
Replied by andypugh on topic Stepconf HAL: ERROR: duplicate component name 'hal
loadusr halui -ini custom_halui.ini.
If you really need to load HALUI with a different INI file than the default (Are you sure you need to do this?) then you will have to
unloadusr halui
first.
Or. better, remove the HALUI=halui from the main INI file and switch to hand editing the HAL and INI.
Just consider that Stepconf has now done its job, and the most effective place to tweak is now directly in the config files.
Please Log in or Create an account to join the conversation.
09 Jan 2016 20:28 #68121
by cmorley
Replied by cmorley on topic Stepconf HAL: ERROR: duplicate component name 'hal
ok that's a bug. but can you just not add that line in your custom hal file?
Chris M
Chris M
Please Log in or Create an account to join the conversation.
09 Jan 2016 23:52 #68137
by nicokid
Replied by nicokid on topic Stepconf HAL: ERROR: duplicate component name 'hal
I know, but my problem is to be able to edit the files produced by stepconf so that they are not deleted when I run again stepconf.Or. better, remove the HALUI=halui from the main INI file and switch to hand editing the HAL and INI.
Just consider that Stepconf has now done its job, and the most effective place to tweak is now directly in the config files.
Please Log in or Create an account to join the conversation.
09 Jan 2016 23:59 #68138
by andypugh
Replied by andypugh on topic Stepconf HAL: ERROR: duplicate component name 'hal
I am saying it is time to park Stepconf, and not use it again now you have a config that is close.
Please Log in or Create an account to join the conversation.
10 Jan 2016 00:08 #68139
by nicokid
I can try to unload halui in custom.hal before loadusr as suggested andypugh (thanks).
Eventually I want to use this setup that I found online for my stepcraft 840:
Replied by nicokid on topic Stepconf HAL: ERROR: duplicate component name 'hal
Yes, I tried but it seems that LinuxCNC loads halui (but there is no HALUI command in the ini file) before my command loadusr.ok that's a bug. but can you just not add that line in your custom hal file?
I can try to unload halui in custom.hal before loadusr as suggested andypugh (thanks).
Eventually I want to use this setup that I found online for my stepcraft 840:
<pyvcp>
<button>
<halpin>"set-probe-xy"</halpin>
<text>"Längensensorposition merken"</text>
</button>
<button>
<halpin>"goto-probe-xy"</halpin>
<text>"Zur Längensensorposition"</text>
</button>
<button>
<halpin>"do-the-probe"</halpin>
<text>"Werkzeuglänge messen"</text>
</button>
<button>
<halpin>"set-the-toollength"</halpin>
<text>"Werkzeuglänge setzen"</text>
</button>
<button>
<halpin>"set-xy-zero"</halpin>
<text>"X/Y auf 0 setzen"</text>
</button>
</pyvcp>
laengensensor.hal:
net set-probe-xy halui.mdi-command-00 <= pyvcp.set-probe-xy
net goto-probe-xy halui.mdi-command-01 <= pyvcp.goto-probe-xy
net do-the-probe halui.mdi-command-02 <= pyvcp.do-the-probe
net set-the-toollength halui.mdi-command-03 <= pyvcp.set-the-toollength
net set-xy-zero halui.mdi-command-04 <= pyvcp.set-xy-zero
.ini-Datei (Ausschnitt):
[HALUI]
MDI_COMMAND = G30.1
MDI_COMMAND = G30
MDI_COMMAND = G38.2 Z-3 F20
MDI_COMMAND = G92 Z33
MDI_COMMAND = G92 X0 Y0
Please Log in or Create an account to join the conversation.
10 Jan 2016 00:25 #68140
by nicokid
Chris Morley still develops stepconf? I noticed that everything is written in python and should not be too difficult to change. But the author takes far less time
Nicola.
Replied by nicokid on topic Stepconf HAL: ERROR: duplicate component name 'hal
You are right, but I'm a beginner and I need some graphical tool for learning.I am saying it is time to park Stepconf, and not use it again now you have a config that is close.
Chris Morley still develops stepconf? I noticed that everything is written in python and should not be too difficult to change. But the author takes far less time
Nicola.
Please Log in or Create an account to join the conversation.
10 Jan 2016 00:27 #68141
by andypugh
Replied by andypugh on topic Stepconf HAL: ERROR: duplicate component name 'hal
It would be much simpler to just add that [HALUI] section to the normal INI file.
The comes a point when Stepconf stops making things easier and starts to make things harder. I think you are probably at that point.
The comes a point when Stepconf stops making things easier and starts to make things harder. I think you are probably at that point.
Please Log in or Create an account to join the conversation.
10 Jan 2016 00:37 #68142
by nicokid
Replied by nicokid on topic Stepconf HAL: ERROR: duplicate component name 'hal
Ok, but I want to play some more before 'throw in the towel'.
Thanks, Nicola.
Thanks, Nicola.
Please Log in or Create an account to join the conversation.
10 Jan 2016 00:42 #68143
by andypugh
Think of it not so much as "throwing in the towel" as "grasping the nettle"
I don't know how well that translates to your locale.
Replied by andypugh on topic Stepconf HAL: ERROR: duplicate component name 'hal
Ok, but I want to play some more before 'throw in the towel'..
Think of it not so much as "throwing in the towel" as "grasping the nettle"
I don't know how well that translates to your locale.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Configuration Tools
- StepConf Wizard
- Stepconf HAL: ERROR: duplicate component name 'hal
Time to create page: 0.098 seconds