Author Topic: Derived Gcode is incorrect  (Read 5798 times)

Offline edelec

  • Ewok
  • *
  • Posts: 11
    • View Profile
Derived Gcode is incorrect
« on: October 01, 2019, 13:12:32 pm »
Just started trying Cambam on the lathe. Developed the attached file. The Toolpaths look great but the Gcode does not. Not at all sure where my error is, I would be obliged with some ideas.
Richard

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8182
    • View Profile
Re: Derived Gcode is incorrect
« Reply #1 on: October 01, 2019, 14:44:16 pm »
Richard,
Can you fill us in on what about the G-code looks bad?  Since you didn't provide it, we can only produce it with our own post-processors for our own machines.

Could it be you have the wrong post-processor selected?

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

Offline edelec

  • Ewok
  • *
  • Posts: 11
    • View Profile
Re: Derived Gcode is incorrect
« Reply #2 on: October 01, 2019, 15:37:27 pm »
Thanks for the quick response. I used LinuxCNC-turn. Though in fact Linux and Mach both produce very similar Gcode. I have not tried to run the code as it does not produce the required product.
I have attached the code which I believe you will see does not generate the required profile.
Richard

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8182
    • View Profile
Re: Derived Gcode is incorrect
« Reply #3 on: October 01, 2019, 16:04:36 pm »
Richard,
I don't currently have a lathe simulator, but it looks to me like the 'polarity' of X is wrong.

You say +X is 'down' on the drawing, but the PP is creating those moves as negative X.  Z _seems_ OK to me.

There are regular CB lathe users here who can be lots more help.

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

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8182
    • View Profile
Re: Derived Gcode is incorrect
« Reply #4 on: October 01, 2019, 16:30:19 pm »
Oh, BTW... just 'flipping' your drawing along the DRAWING's Y axis (your lathe X), thus putting the profile above the drawing's X axis would probably correct the bad numbers.  But I doubt that's the proper solution.

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

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1294
    • View Profile
Re: Derived Gcode is incorrect
« Reply #5 on: October 02, 2019, 00:13:09 am »
HI Richard
Have a look at the Lathe Sample file here:
http://www.cambam.info/doc/plus/cam/Lathe.htm
and my answer regarding the capabilities of the lathe mop's here:
http://www.cambam.co.uk/forum/index.php?topic=7913.0
your drawing should look like this screen shot
Dave

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 5866
    • View Profile
    • Cambam French Doc
Re: Derived Gcode is incorrect
« Reply #6 on: October 02, 2019, 00:47:25 am »
Hello

On your example file (ball.cb), the selected post processor is wrong ; you selected "default" instead "LinuxCNC-turn" (in the machining folder)

If I use Mach3-turn as post processor and simulate on Mach3, your file is OK .... except:

-  for the lathe2 ; the clearance plane value is wrong (must be > to stock surface)

- the tool are <> in the 2 machining operation (mop) but the same tool number is used for both .. wrong.

++
David

« Last Edit: October 02, 2019, 00:58:58 am by dh42 »

Offline edelec

  • Ewok
  • *
  • Posts: 11
    • View Profile
Re: Derived Gcode is incorrect
« Reply #7 on: October 02, 2019, 05:55:41 am »
Thank you gentlemen. Unfortunately I am now away for a couple of weeks so will be unable to action any changes, but will sign in again on my return.
Richard