× Forum Header

Stepconf HAL: ERROR: duplicate component name 'hal

More
09 Jan 2016 17:41 #68113 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.
Attachments:

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

More
09 Jan 2016 20:28 #68120 by andypugh

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.

More
09 Jan 2016 20:28 #68121 by cmorley
ok that's a bug. but can you just not add that line in your custom hal file?

Chris M

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

More
09 Jan 2016 23:52 #68137 by nicokid

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.

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.

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

More
09 Jan 2016 23:59 #68138 by andypugh
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.

More
10 Jan 2016 00:08 #68139 by nicokid

ok that's a bug. but can you just not add that line in your custom hal file?

Yes, I tried but it seems that LinuxCNC loads halui (but there is no HALUI command in the ini file) before my command loadusr.
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.

More
10 Jan 2016 00:25 #68140 by nicokid

I am saying it is time to park Stepconf, and not use it again now you have a config that is close.

You are right, but I'm a beginner and I need some graphical tool for learning.
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 :laugh:

Nicola.

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

More
10 Jan 2016 00:27 #68141 by andypugh
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.

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

More
10 Jan 2016 00:37 #68142 by nicokid
Ok, but I want to play some more before 'throw in the towel'.
Thanks, Nicola.

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

More
10 Jan 2016 00:42 #68143 by andypugh

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.

Time to create page: 0.093 seconds
Powered by Kunena Forum