On Thursday 07 February 2013 14:33:57 Dewey Garrett did opine: Message additions Copyright Thursday 07 February 2013 by Gene Heskett
> For consideration: > > http://www.panix.com/~dgarrett/stuff/names_in_halfiles.patch > > The link is to a patch that modifies halfiles (used in sim) to > use loadrt with the names= option instead of count= (or > with no option) > > I offer in the following spirit: > > 1) Many users (especially new users) learn by examples > and are not aware of the names= option > 2) using the names= option increases readability of > the hal files by showing some intent with mnemonic > names > 3) the changes are transparent with respect to existing > configurations (at least that is the intention) > 4) using the names= option facilitates the use of > the the little-known TWOPASS capability: > > http://linuxcnc.org/docs/html/common/starting-emc.html#_twopass > > that allows users to add (remove/change) instances of existing > components by adding new loadrt lines. It is often > helpful in making modular hal files with less interdependence. > > I realize this may be too big a change for a pending update > but I hope it can be considered for the 2.5.x branch at some point. > > I have tried runtests successfully (lucid,rtai): > Runtest: 83 tests run, 83 successful, 0 failed + 0 expected > > And I have tried to test the configurations in the sim directory > that use the affected halfiles. +10 from Gene. It would make hal files lots more readable. Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) My web page: <http://coyoteden.dyndns-free.com:85/gene> is up! My views <http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml> Oatmeal raisin. I was taught to respect my elders, but its getting harder and harder to find any... ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers