On 27 June 2011 15:34, Karl Cunningham <ka...@keckec.com> wrote:
> If I have a program that gets executed via a user-defined M100 command,
> can that program get the INI file data somehow?

There might be an elegant way, but you you could:
1) Create constants in the HAL file, and use setp to store data from
the INI file in it.
http://www.linuxcnc.org/docview/html/man/man9/constant.9.html
eg
loadrt constant names=ratio1,ratio2,ratio3
setp ratio1.value [GEAR_RATIOS]ratio1


Then in the  shell script
halcmd getp ratio1.out

should return the value (but I have not tested this)

Wait for a better way to do it to be suggested before trying this though.

I am not sure why you need the gear ratios, does this HAL component
for up to 16 gears help?
http://thread.gmane.org/gmane.linux.distributions.emc.devel/4043/focus=4235

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to