Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2023-02-01 Thread lcnc
Am 06.01.23 um 11:52 schrieb andy pugh: On Fri, 6 Jan 2023 at 09:52, wrote: Because the nurbs code results in straight lines and arcs it must be possible to add cutter radius compensation. Indeed. I wonder why it was excluded? A other method would be to calculate an offset nurbs. See for

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2023-01-22 Thread lcnc
Am 20.01.23 um 15:08 schrieb andy pugh: On Fri, 20 Jan 2023 at 13:10, wrote: I hope to have this ready now. I think it would be useful to rebase the patch, at the moment your repo says: "This branch is 9 commits ahead, 916 commits behind LinuxCNC:master." "git pull --rebase" If the

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2023-01-06 Thread andy pugh
On Fri, 6 Jan 2023 at 09:52, wrote: > I found values with negative exponent, but not with positive. > How to proceed? > - 1/CART_FUZZ (#define CART_FUZZ (1.0e-8)) > - a new constant in posemath.h > - a define in emccanon.c Probably 1/CART_FUZZ. The compiler will replace that with a constant

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2023-01-06 Thread lcnc
First thanks Andy. Am 06.01.23 um 02:21 schrieb andy pugh: 1. "|| beta > 1e10" There was a small error in the function biarc in file: src/emc/task/emccanon.cc. I added the condition "beta > 1e10" because without the file "Ruota_dentata #1=1.ngc" is not working. The value of 1E10 is only

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2023-01-05 Thread andy pugh
On Wed, 28 Dec 2022 at 16:44, wrote: > I have integrated the code from Lo Valvo and Drago > and extended it to planes yz and zx. Great, thanks. > 1. "|| beta > 1e10" > There was a small error in the function biarc in > file: src/emc/task/emccanon.cc. > I added the condition "beta > 1e10"

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-28 Thread lcnc
I have integrated the code from Lo Valvo and Drago and extended it to planes yz and zx. Please see the repository https://github.com/jf/linuxcnc Branch: nurbs_G5_G6_xyz. Some notes: 1. "|| beta > 1e10" There was a small error in the function biarc in file: src/emc/task/emccanon.cc. I

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-23 Thread Nicklas SB Karlsson
ons 2022-12-21 klockan 19:59 + skrev andy pugh: > On Wed, 21 Dec 2022 at 19:54, Nicklas SB Karlsson wrote: > > > Specify three points in 2D or 3D space: start, centre and end > > points as > > you suggest I think is a good idea that will work for an arc. > > That defines two possible arcs

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread andy pugh
On Wed, 21 Dec 2022 at 20:09, Nicklas SB Karlsson wrote: > A floating point number have the same number significant digits > wherever the decimal point is put so maybe not a big problem. In principle, not, but in practice, it's a lot of zeros to type and most CAM tools don't go to that many

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread Nicklas SB Karlsson
ons 2022-12-21 klockan 19:59 + skrev andy pugh: > On Wed, 21 Dec 2022 at 19:54, Nicklas SB Karlsson wrote: > > > Specify three points in 2D or 3D space: start, centre and end > > points as > > you suggest I think is a good idea that will work for an arc. > > That defines two possible arcs

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread andy pugh
On Wed, 21 Dec 2022 at 19:54, Nicklas SB Karlsson wrote: > Specify three points in 2D or 3D space: start, centre and end points as > you suggest I think is a good idea that will work for an arc. That defines two possible arcs (simplistically, the short one and the long one) > If I think

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread Nicklas SB Karlsson
ons 2022-12-21 klockan 13:23 + skrev andy pugh: > On Wed, 21 Dec 2022 at 12:12, Stuart Stevenson > wrote: > > > > A point and a vector fully describe a plane in 3D space. > > Indeed, and you could certainly have a command to set a generic > plane. > But you don't need the point. G17 and

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread Stuart Stevenson
On the Fanuc 15MB control G68/G69 allowed the rotation of the XY/YZ/ZX planes. G68 would rotate one plane. Another G68 line would then rotate a second plane combining the two rotations. Tool motion would then be coordinated to the new plane locations. On the bridge mill with the BC head you would

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread andy pugh
On Tue, 20 Dec 2022 at 09:47, Joachim Franek wrote: > BTW: > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?NURBS > Here is a link to a pdf from Leto: but I do only > get a pdf with 0 file length. I got the original papers from Ernesto Lo Valvo and have uploaded them to that page. In the email that he

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread andy pugh
On Wed, 21 Dec 2022 at 12:12, Stuart Stevenson wrote: > > A point and a vector fully describe a plane in 3D space. Indeed, and you could certainly have a command to set a generic plane. But you don't need the point. G17 and friends do not define a plane, they define a continuum of planes (for

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread Nicklas SB Karlsson
ons 2022-12-21 klockan 06:08 -0600 skrev Stuart Stevenson: > A point and a vector fully describe a plane in 3D space. Yes there that's another option. If three points are given to define an arc in a three dimensional space it will be in a "flat" plane. > > On Wed, Dec 21, 2022 at 2:40 AM

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread Stuart Stevenson
A point and a vector fully describe a plane in 3D space. On Wed, Dec 21, 2022 at 2:40 AM Nicklas SB Karlsson wrote: > ons 2022-12-21 klockan 00:47 + skrev andy pugh: > > On Tue, 20 Dec 2022 at 21:27, Nicklas SB Karlsson wrote: > > > > > Three points with three in the (x,y,z) space will

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-21 Thread Nicklas SB Karlsson
ons 2022-12-21 klockan 00:47 + skrev andy pugh: > On Tue, 20 Dec 2022 at 21:27, Nicklas SB Karlsson wrote: > > > Three points with three in the (x,y,z) space will define an arc in > > three dimensions. Then there is three degrees of freedom for the > > tool > > direction at each point or two

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-20 Thread andy pugh
On Tue, 20 Dec 2022 at 21:27, Nicklas SB Karlsson wrote: > Three points with three in the (x,y,z) space will define an arc in > three dimensions. Then there is three degrees of freedom for the tool > direction at each point or two for a rotating/"round" tool if I think > correct. We have been

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-20 Thread Nicklas SB Karlsson
mån 2022-12-19 klockan 13:04 + skrev andy pugh: > On Mon, 19 Dec 2022 at 11:27, wrote: > > > I do not know what seicanon.cc is for! > > saicanon is related to the "stand alone interpreter" which I think > is, > in turn, related to the G-code preview and (maybe) some of the tests. >

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-20 Thread andy pugh
On Tue, 20 Dec 2022 at 09:47, Joachim Franek wrote: > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?NURBS > Here is a link to a pdf from Leto: but I do only > get a pdf with 0 file length. That's because the file has zero length... -rw-r--r-- 1 emcboard pg167418 21037 Jan 28 2013 'Latching Shift

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-20 Thread lcnc
To function ARC_FEED(...) in emc/task/emccanon.cc ( about line 1540): there is 2 times a special treatment of plane XY: 1.if( canon.activePlane == CANON_PLANE_XY && canon.motionMode == CANON_CONTINUOUS) 2.if(canon.xy_rotation && canon.activePlane != CANON_PLANE_XY) { I expect, that all

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-19 Thread andy pugh
On Mon, 19 Dec 2022 at 11:27, wrote: > I do not know what seicanon.cc is for! saicanon is related to the "stand alone interpreter" which I think is, in turn, related to the G-code preview and (maybe) some of the tests. https://linuxcnc.org/docs/stable/html/code/rs274.html (The manpage above

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-19 Thread lcnc
Am 19.12.22 um 02:23 schrieb andy pugh: On Thu, 15 Dec 2022 at 19:04, wrote: Hi, here is my little christmas present for you: nurbs in xy, yz and zx plane is working for me. I suspect that NURBS isn't used very much (none of the CAM packages know how to use it) so the risk of putting

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-18 Thread andy pugh
On Thu, 15 Dec 2022 at 19:04, wrote: > > Hi, > here is my little christmas present for you: > nurbs in xy, yz and zx plane is working for me. I suspect that NURBS isn't used very much (none of the CAM packages know how to use it) so the risk of putting this straight into master is small. It

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-12-15 Thread lcnc
Hi, here is my little christmas present for you: nurbs in xy, yz and zx plane is working for me. Please see the repository https://github.com/jf/linuxcnc branch: nurbs-xyz. Maybe someone can test it. The code needs little polishing. BTW: Is someone using astyle for formatting?

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-09-26 Thread gene heskett
On 9/26/22 11:26, l...@pibf.de wrote: I can report little progress: preview in Axis is working, see attached picture. For those interested: I have cloned the repository to https://github.com/jf/linuxcnc and created a branch nurbs-xyz. There is a new subdirectory nc_files/nurbs/ with the

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-09-26 Thread lcnc
I can report little progress: preview in Axis is working, see attached picture. For those interested: I have cloned the repository to https://github.com/jf/linuxcnc and created a branch nurbs-xyz. There is a new subdirectory nc_files/nurbs/ with the gcode files.

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-15 Thread Bob Bond
-Original Message- From: l...@pibf.de [mailto:l...@pibf.de] Sent: Monday, August 15, 2022 8:09 AM To: emc-developers@lists.sourceforge.net Subject: Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane The next decision is about the code to change. I would be glad to read your opinions. My

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-15 Thread Joachim Franek
Am 14.08.22 um 14:08 schrieb andy pugh: On Sun, 14 Aug 2022 at 11:33, wrote: 2. in src/emc/rs274ngc/gcodemodule.cc which is used for example by AXIS. There are two parallel interpreters, in effect. One is used to control the machine, the other to create a graphical preview. It appears

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-15 Thread andy pugh
On Mon, 15 Aug 2022 at 16:13, wrote: > My suggestion - the easy way - is to keep the code for nurbs calculations. > Only change the wording to nubs_plane with coordinates nurbs_X and nurbs_Y > to be clear this is still a 2d nurbs (and not machine axes). When I was a physics student I seem to

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-15 Thread lcnc
The next decision is about the code to change. I would be glad to read your opinions. My suggestion - the easy way - is to keep the code for nurbs calculations. Only change the wording to nubs_plane with coordinates nurbs_X and nurbs_Y to be clear this is still a 2d nurbs (and not machine

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread Steffen Moeller
Am 14.08.2022 um 20:16 schrieb Nicklas SB Karlsson: Do not feel there is a need for more gun barrels or increased accuracy in world, there are already more than needed in the world. ;)  I am confident there are also applications for those who just build some sensors with an interest to control

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread Nicklas SB Karlsson
Do not feel there is a need for more gun barrels or increased accuracy in world, there are already more than needed in the world. Den 2022-08-14 kl. 18:24, skrev gene heskett: On 8/14/22 08:04, andy pugh wrote: On Sun, 14 Aug 2022 at 09:56, wrote: Hello, it is worth to spend my time to do

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread gene heskett
On 8/14/22 08:04, andy pugh wrote: On Sun, 14 Aug 2022 at 09:56, wrote: Hello, it is worth to spend my time to do this? I looked to the code and it seems doable. I think that it is a pity that it only works in XY. However I have never used the feature and don't know how often it is used. I

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread andy pugh
On Sun, 14 Aug 2022 at 16:35, wrote: > How to initialize canon? Sorry, at this point you know as much as I do. -- 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

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread lcnc
Am 14.08.22 um 14:08 schrieb andy pugh: On Sun, 14 Aug 2022 at 11:33, wrote: 2. in src/emc/rs274ngc/gcodemodule.cc which is used for example by AXIS. There are two parallel interpreters, in effect. One is used to control the machine, the other to create a graphical preview. It appears

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread andy pugh
On Sun, 14 Aug 2022 at 11:33, wrote: > 2. in src/emc/rs274ngc/gcodemodule.cc which is used for example by AXIS. There are two parallel interpreters, in effect. One is used to control the machine, the other to create a graphical preview. It appears that the way to determine the active plane in

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread andy pugh
On Sun, 14 Aug 2022 at 09:56, wrote: > > Hello, > > it is worth to spend my time to do this? > I looked to the code and it seems doable. I think that it is a pity that it only works in XY. However I have never used the feature and don't know how often it is used. I don't believe that any CAM

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread gene heskett
On 8/14/22 06:32, l...@pibf.de wrote: Excuse me, I have messed up the other thread. Thanks Gene for your encouragement. There are 2 function NURBS_FEED. 1. in src/emc/task/emccanon.cc, which is used for machine movements. 2. in src/emc/rs274ngc/gcodemodule.cc which is used for example by

[Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread lcnc
Excuse me, I have messed up the other thread. Thanks Gene for your encouragement. There are 2 function NURBS_FEED. 1. in src/emc/task/emccanon.cc, which is used for machine movements. 2. in src/emc/rs274ngc/gcodemodule.cc which is used for example by AXIS. In src/emc/rs274ngc/gcodemodule.cc

Re: [Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread gene heskett
On 8/14/22 04:56, l...@pibf.de wrote: Hello, it is worth to spend my time to do this? I looked to the code and it seems doable. Joachim I would thank you, it is something I'd like my lathes to do. ___ Emc-developers mailing list

[Emc-developers] NURBS in XY, XZ(lathe) and YZ plane

2022-08-14 Thread lcnc
Hello, it is worth to spend my time to do this? I looked to the code and it seems doable. Joachim ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers