Before writing to mail list, I had posted this same question in forum. According to Dewey Garrett, there was some bug about expanding the subroutines and a fix has been committed to 2.8 branch for the next release. I managed to get it to work without expanding it, so all is good now.
Viesturs pirmd., 2021. g. 6. sept., plkst. 08:15 — lietotājs Chris Kelley (<tensait...@gmail.com>) rakstīja: > > I'm not good enough with python to be sure, but it might have something to > do with how the loops and conditionals are named in the original subroutine. > > I would try changing o<y100> and o<y1100> to o100 and o1100, respectively. > Maybe pyngcgui.py is getting confused by the named o-labels. > > On Sun, Sep 5, 2021 at 8:32 AM Viesturs Lācis <viesturs.la...@gmail.com> > wrote: > > > Hello! > > > > I would like to create a subroutine for horizontal drilling. I do not > > know, if canned cycles, like G81 work in XZ and YZ plane, but I feel > > pretty sure that they would not work both directions - the drill tool > > head holds two drill bits, facing opposite directions, as shown in the > > picture in this thread: > > https://forum.linuxcnc.org/20-g-code/29162-horizontal-drilling-using-g81 > > So I am playing with G0 and G1 moves. > > > > Error message during loading g-code file: > > Near line 57 of > > /home/cnc/linuxcnc/nc_files/0.auto.ngc: > > 57:duplicate O-word label: 'o<001y1100> > > while [#<remain_depth>]' - defined in line 52 > > > > Subroutine is here: > > https://pastebin.com/VMGbyhKP > > > > I did find this thread: > > > > https://forum.linuxcnc.org/20-g-code/27728-duplicate-o-word-label-error-in-version-2-6?start=0 > > > > Since I have 2.8.2 version, I would like to think that this is not > > relevant. And there is a difference that I get the error even after > > 5th or whatever attempt of trying. Restarting LinuxCNC does not change > > anything - I still get the same error. > > > > Subroutine from this thread also does not work: > > > > https://forum.linuxcnc.org/subroutine-library/27029-rectangle3-for-mill-router > > > > This is expanded subroutine that is loaded from ngcgui: > > https://pastebin.com/xvPPeSAM > > > > I am not sure that those "while" statements are correct in the expanded > > file. > > I would appreciate any hints or ideas, what am I doing wrong? > > > > Viesturs > > > > > > _______________________________________________ > > Emc-users mailing list > > Emc-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/emc-users > > > > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users