Author Topic: Turning.. but not all the way...  (Read 47318 times)

Offline Arie kabaalstra

  • CNC Jedi
  • *****
  • Posts: 641
  • why buy one, if you can build one?
    • View Profile
    • DUMET Watches
Turning.. but not all the way...
« on: July 25, 2025, 15:05:33 pm »
Guys... i started Trying with CamBam to machine a watchpart.

it took some Fiddling to get my paths to start just in front of the work, but now, instead of only doing the Concave Fillet on the edge of this Ring.. it goes all the way to the Center..I just want to machine the arc that runs from X 34 Z0 to X40 Z-6..

Is there a way to Set a minimum diameter?..

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5322
  • Made in England
    • View Profile
Re: Turning.. but not all the way...
« Reply #1 on: July 25, 2025, 15:14:55 pm »
What about using an Engrave mop to follow a polyline ?

Edit: just realised you are talking about turning on a lathe.
Filmed in Supermarionation

Offline Arie kabaalstra

  • CNC Jedi
  • *****
  • Posts: 641
  • why buy one, if you can build one?
    • View Profile
    • DUMET Watches
Re: Turning.. but not all the way...
« Reply #2 on: July 25, 2025, 15:46:50 pm »
Yes... and now i've got another issue...

I did manage to get CamBam to behave like i want it.. by adding a line to the Polyline i want to machine.. all the way to the Stock Surface (0.25 mm).. that works..

But now.. When doing internal Turning.. the toolpaths are at the wrong side of the Polyline...

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3376
    • View Profile
Re: Turning.. but not all the way...
« Reply #3 on: July 25, 2025, 16:19:56 pm »
But now.. When doing internal Turning.. the toolpaths are at the wrong side of the Polyline...
*********************
Arie, did you try Reverse Polyline option? It may help.
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline Arie kabaalstra

  • CNC Jedi
  • *****
  • Posts: 641
  • why buy one, if you can build one?
    • View Profile
    • DUMET Watches
Re: Turning.. but not all the way...
« Reply #4 on: July 25, 2025, 17:21:32 pm »
Tried.. Nope.. doesn't work..

there is still a lot of work to do on this routine..

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9075
    • View Profile
Re: Turning.. but not all the way...
« Reply #5 on: July 25, 2025, 20:19:11 pm »
Arie,
What about just the ONE added polyline.  Can you detach, reverse, and re-attach just that one piece?

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7565
    • View Profile
    • Cambam V1.0 French Doc
Re: Turning.. but not all the way...
« Reply #6 on: July 25, 2025, 20:29:42 pm »
Hello

Unfortunately CamBam lathe plugin do not handle internal turning. I tried a lot of things with no chance ! the first thing I tried is to use the toolpath transformation matrix, but unfortunately the transformation act only on the display, but no change on the GCode itself.

++
David

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4563
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Turning.. but not all the way...
« Reply #7 on: July 25, 2025, 21:48:27 pm »
At the risk of drawing my own ire about work arounds... 

Can you just generate code to follow the line and edit the code by hand for your clearance moves? 

It's not something I would want to do very often, but if it's for a repeat part it might be worth the effort. 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7565
    • View Profile
    • Cambam V1.0 French Doc
Re: Turning.. but not all the way...
« Reply #8 on: July 25, 2025, 23:23:25 pm »
Quote
Can you just generate code to follow the line and edit the code by hand for your clearance moves? 

Not only for the clearance moves, all value must be changed. (moved and reverted)

CamBam generate only toolpaths from Stock Surface to 0.

ex, the pink line is used to define the mop



If I set Stock Surface to 15 the path is Ok for the last pass but not for roughing.



to solve that, I move the polyline so the max diameter is at 0, then I add a toolpath transformation to move the toolpath at the right position.(in Y)



And now a scale -1 (invert) to revert the toolpath to the right side.



That looks OK on the display, but unfortunately all the matrix transformations are ignored when the Gcode is generated.



++
David
« Last Edit: July 25, 2025, 23:27:55 pm by dh42 »

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7565
    • View Profile
    • Cambam V1.0 French Doc
Re: Turning.. but not all the way...
« Reply #9 on: July 26, 2025, 00:07:18 am »
re

Currently the only working way I find is:

- Use only finish mode, with no matrix transformations and on the opposite side.

- On the lathe, reverse the rotation and machine on the opposite side with the tool mounted upside down.

... but how to do the roughing ... I don't know. We can try multiple finish mops with roughing clearance, as on the picture.



the result is OK in Mach3



I don't have try, but maybe we can revert the machined side with the post pro by replacing the $_x statement by $xneg ...

++
David

« Last Edit: July 26, 2025, 00:13:33 am by dh42 »

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7565
    • View Profile
    • Cambam V1.0 French Doc
Re: Turning.. but not all the way...
« Reply #10 on: July 26, 2025, 00:35:45 am »
Quote
I don't have try, but maybe we can revert the machined side with the post pro by replacing the $_x statement by $xneg ...

Ok, tested ... not perfect  ::) .. the toolpaths are reverted on the right side with $xneg ... but the arcs are in the wrong direction no matter if I change the arc direction in CamBam or in Mach3.



But it is ok if I set the arc output to "convert to lines"


(PS: on the last picture, the setting for radius/diameter is wrong in my PP, so the toolpath appears wrong, set to diameter in CB and to radius in Mach3)

++
David
« Last Edit: July 26, 2025, 00:47:51 am by dh42 »

Offline Arie kabaalstra

  • CNC Jedi
  • *****
  • Posts: 641
  • why buy one, if you can build one?
    • View Profile
    • DUMET Watches
Re: Turning.. but not all the way...
« Reply #11 on: July 26, 2025, 09:22:12 am »
All i see here are a bunch of workarounds.. but these are no Solution.. the Lathe Mop needs to be thoroughly worked on.. that is the solution here...

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5322
  • Made in England
    • View Profile
Re: Turning.. but not all the way...
« Reply #12 on: July 26, 2025, 12:03:56 pm »
"... the Lathe Mop needs to be thoroughly worked on.. that is the solution here...

In that case, considering the lack of interest from Andy Payne and taking into account your programming skills mentioned in another thread, may I suggest the following;

1. Download ILSpy here, https://github.com/icsharpcode/ILSpy/releases/tag/v9.1
2. using ILSpy, open the dll in CamBam plugins folder called "CamBamLathe.dll", this will decompile the plugin.
3. export it to a C# project
4. fix the Lathe Mop.

That woul be an excellent job and benefit everyone.
« Last Edit: July 26, 2025, 12:13:42 pm by EddyCurrent »
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7565
    • View Profile
    • Cambam V1.0 French Doc
Re: Turning.. but not all the way...
« Reply #13 on: July 26, 2025, 19:57:49 pm »
 ;D
++
David

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3376
    • View Profile
Re: Turning.. but not all the way...
« Reply #14 on: July 27, 2025, 11:00:29 am »
"... the Lathe Mop needs to be thoroughly worked on.. that is the solution here...

In that case, considering the lack of interest from Andy Payne and taking into account your programming skills mentioned in another thread, may I suggest the following;

1. Download ILSpy here, https://github.com/icsharpcode/ILSpy/releases/tag/v9.1
2. using ILSpy, open the dll in CamBam plugins folder called "CamBamLathe.dll", this will decompile the plugin.
3. export it to a C# project
4. fix the Lathe Mop.

That woul be an excellent job and benefit everyone.

Yep.. 8)
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.