Re: [Emc-users] turning cycle
On Mon, 19 Nov 2018 at 17:44, Tage Johansson wrote: > I have read something on the web, and I understood that I should put > something in the RS274NG section and some python files at some location > to get it to work. Can you just explain better? Look at the sample config here: https://github.com/LinuxCNC/linuxcnc/tree/andypugh/g71type2remap/configs/sim/axis/g71 copy the entire "python" folder into your own config folder. Then from the INI file copy the entire [PYTHON] and [RS274NGC] sections in to your own config. That _should_ do it. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] turning cycle
I've some experience in tool path programming, and also some experience in c. So I wonder if I can help you with this? If you want to, that would be great. You would need to check with mozmck if this would be acceptable for introduction in to 2.8 at this point. (I think probably it would, a new G-code shouldn't affect existing behaviour) I will probably do that if I get time. Just be aware that if all you want to do is make things on your lathe then you can simply install the remap on your current LinuxCNC installation and you will have G71 and G72 available (no coding, no compiling) I think that would be the choice until G71 get implemented in the interpreter, either by me or by anyone else. I have no experience in GCode-remapping, so I wonder if you can help me a bit. I have read something on the web, and I understood that I should put something in the RS274NG section and some python files at some location to get it to work. Can you just explain better? (Note, I don't think the docs is bad, I just think it will take less time to ask some smart people than try to figure it out myself.) Best regards, Tage ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] turning cycle
On Sat, 17 Nov 2018 at 10:26, Tage Johansson wrote: > > So, if I understand everything correctly, there is a g71 in a > development branch, but it doesn't support pockets. Yes. > How ever, you've > made a python remap that does pockets, and the goal was to convert it to > c and build it in to the interpreter. Yes, that was the plan. Just be aware that if all you want to do is make things on your lathe then you can simply install the remap on your current LinuxCNC installation and you will have G71 and G72 available (no coding, no compiling) > According to my understanding, the last thing that has to be done before > g71 and g72 can be merged in to the master branch, is to make that > pocket support. Right? It _could_ be merged as it is now, without pocket support, but pockets would be better. > I've some experience in tool path programming, and also some experience > in c. So I wonder if I can help you with this? If you want to, that would be great. You would need to check with mozmck if this would be acceptable for introduction in to 2.8 at this point. (I think probably it would, a new G-code shouldn't affect existing behaviour) You can see the changes made, and the files changed, here: https://github.com/LinuxCNC/linuxcnc/commits/BenPotter/G71 The first 4 commits in that list. (There is probably a way to see them as a unified diff too) The version-with-pockets is here, in Python: https://github.com/LinuxCNC/linuxcnc/blob/andypugh/g71type2remap/configs/sim/axis/g71/python/remap.py If you need me to explain anything about it to you, then I can try to remember how it works. The key to the algorithm, as I recall, is splitting arcs at the "cardinal points" to get their maximum extents in X and Z. That makes it easier to determine if a straight X or Z cut intercepts any given arc segment. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] turning cycle
So, if I understand everything correctly, there is a g71 in a development branch, but it doesn't support pockets. How ever, you've made a python remap that does pockets, and the goal was to convert it to c and build it in to the interpreter. According to my understanding, the last thing that has to be done before g71 and g72 can be merged in to the master branch, is to make that pocket support. Right? I've some experience in tool path programming, and also some experience in c. So I wonder if I can help you with this? Unfortunately, I've no experience in development of linuxcnc, so I may need some help to get started. But I think it would be really great with support for some rough turning cycles in linuxcnc. So if someone would like to help me getting started, I would be glad to implement it! Best regards, Tage ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] turning cycle
On Fri, 16 Nov 2018 at 23:12, Tage Johansson wrote: > Is there a G71 rough turning cycle, and if so, why isn't it included in > the reference_ It's slightly complicated. There is a basic G71 and G72 available in a development branch of LinuxCNC. https://github.com/LinuxCNC/linuxcnc/tree/BenPotter/G71 Then while working on that branch I made a proof-of-concept version of G71 with pockets, but that exists as a G-code remap in Python. The disadvantage of this remap is that it doesn't do radius compensation properly. The one written in C inside the inerpreter does. Docs here: https://github.com/LinuxCNC/linuxcnc/blob/andypugh/g71type2remap/docs/src/gcode/g-code.txt#g71-lathe-roughing-cycle-turning The plan was to convert the Python remap into C and build it in to the interpreter, but I rather ran out of steam with that project. It remains on my list, but I don;t anticipate having it in before the 2.8 release. But if you want it, you can add it via remapping, you need the Python files here in your linuxcnc config directory, and the remap lines from the [RS274NGC] section of the sample INI in your own INI. https://github.com/LinuxCNC/linuxcnc/tree/andypugh/g71type2remap/configs/sim/axis/g71 -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users