From: Gene H. <ghe...@wd...> - 2015-08-05 02:16:01
|
On Tuesday 04 August 2015 20:51:18 andy pugh wrote: > On 25 July 2015 at 12:35, andy pugh <bod...@gm...> wrote: > > As reported in > > http://psha.org.ru/irc/%23emc/2015-07-22.html#16:59:29 > > > > The G-code re-map in the carousel_demo branch gives the error: > > 9:duplicate O-word label - already defined in line 29: 'O200 IF > > [#<selected_tool> GT 0]' > > I have done some experimenting and I am coming to the conclusion that > the test in line 861 is not a good test for duplicate O-words. > http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/emc/rs274ng >c/interp_o_word.cc;h=084631e898b3ce00a9e5df5316b636fbe8bed1a8;hb=8b989a >180e9e782d02a969da4c32def6c56d2004#l859 > > I have not yet figured out what it is about the O100 if that triggers > a problem in the next IF. (The error actually occurs during > interpretation of the second IF) > I have tried inserting other IF/ENDIF pairs in the code, but need to > actually make some notes of the combinations to figure out the pattern I may have encountered that, a year or more ago, so the exact memory is hazy now, and found that it went away if I quit using a capital O, so I've been using o100 style o-words ever since. So you might want to include that in your pattern tests. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> |