Hello Guest it is April 19, 2024, 02:24:17 AM

Author Topic: Lathe Canned Cycles Wizard problem (reverse cut)  (Read 1462 times)

0 Members and 1 Guest are viewing this topic.

Offline Shaom

*
  •  13 13
    • View Profile
Lathe Canned Cycles Wizard problem (reverse cut)
« on: March 06, 2020, 03:53:06 AM »
In "Lathe Canned Cycles". Wizard generated G-code is wrong for CNC machine type we use (Gildemeister N.E.F. CT60).
Of course we can correct g-code manually, but it takes some time.
Is it possible to reverse knife like in attached picture? Directly in wizard (editing wizard files?) or maybe to add a button script to screen to reverse position?
(Default configuration in wizard - knife is in bottom position, we need top position).

THANK YOU FOR HELP!

Offline Shaom

*
  •  13 13
    • View Profile
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #1 on: March 06, 2020, 06:34:46 AM »
Directly in wizard (editing wizard files?)
- Ok it is impossible, becouse files are compiled - i just read about it.

Offline Shaom

*
  •  13 13
    • View Profile
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #2 on: March 06, 2020, 07:16:55 AM »
UPDATE!

Mach3 lathe wizard is working 100% correct - becouse there is an option "REAR AND FRONT".
It is missing in Mach4 lathe Wizards!
G-code imported from mach3 wizard is working very well after REAR option tapped on.
How to do this is mach4? Is it possible to import mach3 wizard to mach4?
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #3 on: March 06, 2020, 07:52:52 AM »
Hi,

Quote
How to do this is mach4? Is it possible to import mach3 wizard to mach4?

No, Mach3 and Mach4 are sufficiently different internally that a Mach3 wizard will not operate in Mach4.

NFS did not write the Mach4 Lathe Wizard or canned cycles. They were contributed by Mach Motion and the intellectual
property rights remain with Mach Motion. The source code of the wizard/canned cycles is not available, unless you approach
Mach Motion.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Shaom

*
  •  13 13
    • View Profile
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #4 on: March 06, 2020, 09:28:35 AM »
So in Mach4 there is no such setting as rear / front for lathe?
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #5 on: March 06, 2020, 11:15:02 AM »
Hi,
I am not familiar with the term...what exactly do you mean?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #6 on: March 06, 2020, 12:44:05 PM »
CNC lathes often have a single cross slide with tools in front of and behind the workpiece. X axis motion needs to be in the opposite direction for tools on the back side.
Steve Stallings
www.PMDX.com
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #7 on: March 06, 2020, 01:47:41 PM »
Hi,
thanks Steve, yes that makes sense....our manual lathe has two tool posts on the one cross slide for that purpose.

When I was experimenting with the lathe cycles I found I could generate good tool paths
for a 'rear' tool by specifying the start position of Xi=-nnn. The gcode generated
has all its X cords as negative numbers but otherwise OK.

Do you suppose that is what OP was concerned about....the need to go through the generated code and
reverse (un-negate) all the X coordinates?

If that is the case it would be a simple matter to have a Lua script that automated that procedure.

I have a similar script on my mill where I wish a percentage correction applied to the Gcode and so I have a
script, m100, that reads the Gcode file line by line, decomposes the line, applies the correction to the x coord
then recomposes the line and adds it to a new 'corrected file'. It applies a percentage correction to the x coord
and does a complete Gcode file of 10,000 lines in a couple of seconds.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Shaom

*
  •  13 13
    • View Profile
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #8 on: March 09, 2020, 04:31:53 AM »
Thank You! I will check today / tommorow how it works.
Can you please share this lua script for me?
I will appreciate it :)
Re: Lathe Canned Cycles Wizard problem (reverse cut)
« Reply #9 on: March 09, 2020, 04:38:54 AM »
Hi,
I wrote this script for a specific correction I wished to apply....it would not suit what you are trying to do but the
idea is similar.

Please post some code excerpts, first some code as it comes from the wizard, and then the same code once you have manually corrected
it. Then we can see if there is a process that can be automated.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'