Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Ricky Lee on May 12, 2013, 05:33:08 PM

Title: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Ricky Lee on May 12, 2013, 05:33:08 PM
Hi,
Complete newbe, first post.
 I am trying to build a table that passes the outer edge of a rectangular flange with rounded corners past a MiG torch max size 1000x650mm
It's a bit like holding a paintbrush out in front of you to paint a stripe around the outside of a biscuit tin as it passes by.
I think I need X,Y and C rotation. The only way I can work out to do this is to have the job centered on a turntable that is driven X,Y.
I think I have worked out a tool path that would work but it looks like a capital "D" on it's back with a Parallel line inside the "D"
I could move X until I get to a corner then rotate the job around the center of the corner radius by rotating the table 90 deg and moving the center of the job in an opposite arc to the corner at the same time.
This all seems a bit messy, is there a better way of passing the edge of your job past a tool like a grindwheel for example.

Im finding this a bit tough for my intro into CNC, If only I could have started with a 3 axis mill.

Ricky
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: gpfly28 on May 29, 2013, 09:06:56 AM
Hi there

I think the main reason nobody has responded to your post yet is because the discription is all messy and can't figure out by what you mean ???. Maybe if you make some sort of a drawing by hand or Cad and attach it here, people can understand you and help you setup as there are quite a few clever guys around on this site.

Cheers
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Ricky Lee on May 30, 2013, 12:18:23 PM
Thanks for your reply, I was very tired and frustrated when I posted.
I have learned more about G- Code and using Mach3. I have started building the system now.
I am building a moving x,y table with a turntable. I have a fixed base 2000mm X 1300mm. On top is my X table 800 x 1300, on that my Y table 800x800 and on that a 1100 x 1100 square turntable.
Mach3 mill would expect me to move my table under a fixed cutter, but I trying to offer the edge of a work piece  centered on the turntable to a fixed welding torch, fixed to the front of my base frame.
I have written G code that looks like it will work, but the toolpath shown is for the centre of my turntable and looks nothing like my workpiece.
I will upload pics and my attempt at G code soon.
Thanks
Ricky
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: gpfly28 on May 30, 2013, 05:08:11 PM
Hi Ricky
Sounds good. Will be able to give you some hints when I see the pics. Thats the wonders of cnc as well as Mach. Mach is flexible in so many ways, you can mix and match various tools axis etc. and make it do what you want it to do without too much effort.
I will be waiting for your pics.
Cheers
Gordon
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Ricky Lee on June 03, 2013, 03:54:58 PM
I have tried to upload pics a couple of times but nothing happening.

This is a 10% size g-code the toolpath looks nothing like my 850x600 rectangle with 100mm radius corners.

G54 G90
G00 X0 Y0 A0
G01 X-65 Y0 F1000.
G02 X-15 Y15 I32.5 J-17.5 A90 F6000
G1 X-50 F1000
G02 X0 Y0 I17.5 J-32.5 A180 F6000
G01 X-65 Y0 F1000
G02 X-15 Y15 I32.5 J-17.5 A270 F6000
G1 X-50 F1000
G02 X0 Y0 I17.5 J-32.5 A360 F6000
M30

Regards
Ricky
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: gpfly28 on June 03, 2013, 05:34:00 PM
Hi Ricky

I'm still not to sure what your setup looks like but from what I understand you're g-code is not going to work. When working with rotary axis in Mach, your toolpath won't look like the profile as suppose to 2 or 3 axis linear moves where the toolpath basically simulates the profile you want to cut, instead you will get a toolpath on the screen, then another after the A axis has rotated but on the same xy plane
 The toolpath window will not rotate the plane after each rotary movement. What will happen with your toolpath is that you will have the same xyz movements copied and pasted, it sounds a bit confusing I know. I need to draw this to give you exact movements, say you start x0 y0, then you will go to where you want to plunge. Z comes down then you do a cut like in your case -65 on x, now remember, with your turntable being square, after a 90 degree turn, where you have stopped at x-65 will now change to x0 y-65. This will not give you 100mm rad corners though but hopefulle you can see how much changes after the 90 degree turn. Give me a day or two then I will send you a sample g-code you can try.

Cheers
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: alenz on June 03, 2013, 08:48:29 PM
Ricky, See if this is what you had in mind.
The first attached file is the Gcode for an 850 X 600 rectangle with 100 radius corners.
The second is the same drawing with all lines broken into short segments.
The third is the second file converted to Polar coordinates for use with a C-axis rotary table.
Will provide details if it looks like you can use this method.
Al
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Ricky Lee on June 04, 2013, 04:25:16 PM
Thanks for your replies guys, much appreciated.
I think my biggest problem at the moment is not having my table built so I can see the results. I should be up and running in the next two weeks.

I will try to explain my thinking as clearly as possible. 850x600 rectangle with 100mm radius corners centered on square turntable.
So starting with the first 850 side I move X 650 (850 - two corner radius).
Now I get to the first corner, I need to rotate my job 90 deg on the  100mm corner radius centre.
The turntable must rotate 90 deg every corner to present the next side to me.
I cut out a cardboard shape of my work and pushed a pin in one corner radius, when I rotated 90deg around the pin, I could see this was the correct motion I require, the center of my work was following a large opposite arc, as mach 3 thinks the center of my work is my cutting tool I guessed this was the path to plot.
As the length of the center arc is about 6 times greater than the circumference of the 100mm corner radius, I need to increase feed rate on the corners to match the speed of going along the sides.

Forgive me if this sounds silly but if you put a credit card flat on a piece of paper, draw an arrow on the paper, now pass the entire edge of the card past the arrow tip until your back to where you started. The center of the card being my toolpath.

Regards
Ricky

Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: zarzul on June 05, 2013, 05:33:18 PM
the last 2 sentences I understood,   I don't understand why you would build it with a rotating table in the center.
Why not just fix your part stationary and move around it with your x & y?
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: stirling on June 06, 2013, 04:59:20 AM
If I understand your requirements, this sounds very much like a plasma system I once did for cutting square section tube. The torch could move in X and Z and the tube rotated (in A) with the rotational axis parallel to Y.

I think you understand the code needed but aren't getting the display you'd expect in the toolpath window - is that correct?

If this is the case, because you're using X,Y and A (presumably with the axis of A parallel to Z) then make sure you have Config/Toolpath - rotations set to "Z Axis" and "A rotations enabled" ticked.

Without those settings you'll get the "D" on its back type display you've described. A bit like this..

http://www.youtube.com/v/LmrzaSeGaM8?hl=en_US&version=3

But with these settings you should get something like this...

http://www.youtube.com/v/ZyjOvQV5aaI?hl=en_US&version=3

Ian
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Ricky Lee on June 06, 2013, 03:22:05 PM
Hi Stirling, thanks for your reply. Yes your right on the money!
The first video you posted is exactly what I got just using X,Y for a square, with a rectangle I got a parallel line inside the "D"
I have the Z A rotations enabled and the tool path rotates on the screen.
I will try to attach toolpath pic yet again.

Thanks
Ricky
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Ricky Lee on June 06, 2013, 03:30:45 PM
Toolpath shown about half way round the first corner.
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: stirling on June 08, 2013, 05:43:04 AM
Ricky - I think your code is the problem. Try this... not sure I got a couple of the arcs exactly right but you get the idea.

Code: [Select]
G54 G90 G91.1
G00 X32.5 Y-30 A0
G01 X-32.5 Y-30 F1000
G03 X20 Y-42.5 I30.5972 J16.2747 A90 F6000
G01 X-20 Y-42.5 F1000
G03 X32.5 Y-30 I19.9794 J32.3716 A180 F6000
G01 X-32.5 Y-30 F1000
G03 X20 Y-42.5 I30.5972 J16.2747 A270 F6000
G01 X-20 Y-42.5 F1000
G03 X32.5 Y-30 I19.9794 J32.3716 A360 F6000
M30

http://www.youtube.com/v/__VUE6ov0oU?hl=en_US&version=3


Ian
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Ricky Lee on June 09, 2013, 09:10:13 AM
Thanks for your help Ian. I will give your code a try when I get my table up and running.
Trying to find time to build so I can see the results

cheers
Ricky
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Ya-Nvr-No on June 09, 2013, 08:02:56 PM
Sweet Job... Ian
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: stirling on June 10, 2013, 04:04:53 AM
Thanks Craig - Handy code btw if you want to open a corned beef tin and you lost the key  ;D
Title: Re: Will Mach3 let me pass the edge of a job past a fixed welding torch
Post by: Overloaded on June 10, 2013, 06:56:04 AM
 :D
..... nice one, thanks  ;D