Hello Guest it is May 13, 2021, 02:10:24 AM

Author Topic: Mach Motion Lathe Wizards Bug? Help.  (Read 3010 times)

0 Members and 1 Guest are viewing this topic.

Mach Motion Lathe Wizards Bug? Help.
« on: January 17, 2018, 06:35:08 PM »
So when generating a threading procedure in Mach Motion Wizards I get an error when running the program.

I get a K0 in my code that Mach doesn't recognize. When I remove the K0 the program works just fine.

So my question is what is the K0 supposed to be doing? Is there a way to correct this so I don't have to edit the Gcode every-time I generate a new threading procedure?


I also had a problem with the depth of the threads. I was cutting 1/2-13 threads. I set the Xi at .5" and it starts the threading procedure at .6" so it's .1" off so I can't input the correct thread depth or else it's too shallow of a cut.

I have a feeling that it's cutting .1 too high because the Clearances of Xc are set to .1. If that is correct then what does the clearance number actually do. If I set Xc to 0 will that not retract the tool away from the work piece?

Here is the code I was using.

N0000 (Machine type - MachMotion Lathe Canned Cycles)
N0005 (Filename: C:\Mach4Hobby\GcodeFiles\Temporary.tap)
N0010 (Generated on 01/17/18 at 12:39:40)

N0015 %
N0020 G00 G40 G18 G54 G64 G80 G90.1 G99 G20 (Safe Start Block)
N0025 %

N0030 (Starting Gcode for Threading Cycle: ThreadingCycle-0)
N0035 G50 S4100 (Spindle Speed Cap)

N0040 %
N0045 G00 G40 G18 G54 G64 G80 G90.1 G99 G20 (Safe Start Block)
N0050 %

N0055 T0808 (Tool Change)
N0060 G99 (Feed per Revolution)
N0065 G97 S500 (Constant Speed)
N0070 M04 (Spindle Reverse)
N0075 M08 (Flood)
N0080 G00 X0.6950 Z0.1000  (Rapid move to Clearance Height)
N0085 G76 P030060 Q0.02 R0.005 K0
N0090 G76 X0.36 Z-0.75 R0 P0.135 Q0.02 F0.0769
N0095 G80
N0100 G00 X0.6950 Z0.1000  (Rapid move to Clearance Height)
N0105 (End Gcode for Threading Cycle: ThreadingCycle-0)

N0110 %
N0115 (Custom Footer Block)
N0120 G00G53X0Z0
N0125 %

N0130 %
N0135 M09
N0140 M05
N0145 M30
N0150 %
N0155 (End Gcode file)
N0160 %

Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #1 on: January 18, 2018, 10:35:54 AM »
Yes, it is a bug.  You need to select one of the infeed options each time you use the threading wizard.  Even though it appears that to have defaulted to 'Flank Infeed, Constant Volume' it really hasn't and wont until you select it from the drop down list.

HTH

RT
Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #2 on: January 18, 2018, 11:49:10 AM »
Thanks. What about it starting at .6" instead of .5"?

Also what is Retract (Rev) for?
Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #3 on: January 18, 2018, 12:30:58 PM »
unfortunately I am not aware of any manual, papers or other write-ups for the turn wizards.  Would be nice wouldn't it?

here is a link that I found useful in interpreting the output from the wizard: http://www.helmancnc.com/cnc-fanuc-g76-threading-cycle/

I have only used the threading wizard a couple of times so I am unsure of all of the possibilities.  I believe the clearance values are the retract distance from the start values. 

regarding the retract value: http://www.cnc1.com/newsItem/fanuc-tool-retract-recover-retrace

HTH

RT


Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #4 on: January 18, 2018, 01:27:31 PM »
Hey all, I did some digging and found these tutorial videos by MachMotion regarding the Lathe Canned Cycles. The one I linked is the overview and there are more in-depth videos for each function: https://youtu.be/mIPQJgzdX_I
These canned cycles were graciously donated for use in Mach4 by MachMotion and these videos are what was created by them to help users. As I work on creating and improving learning materials for Mach4, I will keep the canned cycles in mind and try to address them in the future.


Newfangled Solutions Helpdesk: http://support.machsupport.com
YouTube Support Channel: https://www.youtube.com/c/MachSupportOfficial
Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #5 on: January 18, 2018, 03:33:36 PM »
Thanks Bryanna!  I will post the link in the videos section of Mach4.
Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #6 on: January 18, 2018, 04:08:01 PM »
Hey all, I did some digging and found these tutorial videos by MachMotion regarding the Lathe Canned Cycles. The one I linked is the overview and there are more in-depth videos for each function: https://youtu.be/mIPQJgzdX_I
These canned cycles were graciously donated for use in Mach4 by MachMotion and these videos are what was created by them to help users. As I work on creating and improving learning materials for Mach4, I will keep the canned cycles in mind and try to address them in the future.

I looked through every video they offer ( I think) and there are only 2 of the cycles explained in detail.
The Drilling and the Custom G-Code.
Nothing comprehensive regarding the Threading dialog or any of the others.

I may have overlooked it, but am pretty sure there are only the 2 mentioned above.

https://www.youtube.com/user/MachMotionVideo/videos

Regards,
Russ
Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #7 on: January 19, 2018, 02:27:06 AM »
I confirmed the same things.

I also figured out a way to figure out some of the functions. I'm going to put large numbers in some of the fields I'm unsure of and then generate the code and look at it that way.

Yeah kind of funny, I mean the people who wrote the wizards would only have to spend like an hour to write a cursory tutorial. At lease one describing what each filed does. I would write it, but I don't know what everything does. But maybe I will to give back to the community.
Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #8 on: January 19, 2018, 07:28:09 AM »
Hi Cartierusm.
Comparing your earlier posted code to the descriptions of the G76 Two block type, page 30 in the manual, the "Retract (Rev) entry appears to be the no. of revolutions programmed to pull the tool out of the thread. "Leadout"
It posts in the Gcode as the 2nd pair of digits in the P word. You can enter from 00 (straight pullout) up to 99 (9.9 revolutions) If I understand it correctly. I'm in demo so cant see any code created.
The manual is pretty clear on this tho.
Russ
Re: Mach Motion Lathe Wizards Bug? Help.
« Reply #9 on: January 25, 2018, 03:12:09 PM »
Correct. The lead out appears to lead out of the thread cutting at a taper. So instead of straight pulling out it pulls out going at a taper. The diagram on page 32 shows it.