On 11/29/2013 04:46 PM, Charles Steinkuehler wrote:
> On 11/29/2013 3:30 PM, Jon Elson wrote:
>> Charles Steinkuehler wrote:
>>> I'm wanting to create modular LinuxCNC configurations to allow for easy
>>> modification by folks new to LinuxCNC.  I can do fancy tricks with tcl
>>> for HAL files, but that doesn't let me update anything in the [TRAJ] or
>>> [AXIS <num>] *.ini file sections.
>>>
>>> So is there a way to do similar tricks with the actual *.ini file, or at
>>> least an #INCLUDE directive or similar?  If not, any suggestions on a
>>> possible work-around, or does the *.ini file need to be one big chunk?
>>>
>> You can easily set up multiple hal files, I use that in my configs.  (In
>> fact, I have it split up into TOO many files.)
>>
>> In the [HAL] section, just list as many hal files as you need, with
>> HALFILE = xyz.hal
>>
>> Note that they are loaded in in the order listed, so that you have to be
>> careful to have the loadrt line come before any commands that reference
>> exported pins, and if you add input pins to existing signals, those would
>> have to come later, too.
>
> I know about the HAL options, I was wondering if there's any way to do
> something similar with the INI file itself.

There's not.

I know because i wanted the same thing when i was writing all the 
hostmot2 sample configs, and I couldn't find it.

I think a #include-like directive would be both useful and easy to 
implement, but i'm not volunteering to do it.  ;-)


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to