Hello Guest it is April 26, 2024, 03:13:18 PM

Author Topic: Help Me Delete Unwanted Code.  (Read 3527 times)

0 Members and 1 Guest are viewing this topic.

Help Me Delete Unwanted Code.
« on: October 22, 2007, 07:26:58 PM »
Greetings to you all. I'm pretty new at all this computer numerics stuff. I have a good grasp on the x-y-z system but the offset stuff is still a bit confusing to me. I drew up a part in my CAD software and a friend who uses GibbsCam at his shop created some G-code for me to make my parts. But it doesn't run right in Mach3. He asked me what post processor should be used and I had no idea but Fanuc looked familiar so we went with that. It took him about 2 minutes to load the dxf, create a tool path and post it to G-code but he's a busy guy an I don't want to bother him with my tiny tasks if possible. So basically, my question is this... what do I need to remove from the code below to have just the basic x-y-z movements? I've tried deleting the stuff that I though was causing problems but then the program just blows up. I don't want any tool diameter compensation, tool height compensation, or the table (fixture,jig) compensation. Can someone help me simplify this code? Thanks, gs

Code: [Select]
%
O1( SIERRA BELLCRANK.NCF )
( FORMAT: FANUC 0M [R&S] M565.81.2.PST )
( 10/22/07 AT  6:20 PM )
( OUTPUT IN ABSOLUTE INCHES )
( PARTS PROGRAMMED: 1 )
( FIRST TOOL NOT IN SPINDLE )
N1G17G80G40
N2T1M6
( OPERATION 1: CONTOUR )
( DXF LAYER '0' )
( TOOL 1: .125 FINISH ENDMILL )
N3G54
N4S5200M3
N5G90G0X2.446Y-.3625
N6G43Z0.H0
N7M8
N8Z.5
N9G1Z.25F5.
N10G41Y-.3125F4.D51
N11G3X2.196Y-.0625I-.25
N12G1X0.
N13G2X-.0625Y0.J.0625
N14G1Y.9
N15G2X0.Y.9625I.0625
N16G1X.147
N17G2X.2095Y.9003J-.0625
N18G1X.2109Y.5701
N19Y.2525
N20X.4025
N21Y.9
N22G2X.465Y.9625I.0625
N23G1X.59
N24G2X.6525Y.9J-.0625
N25G1Y.625
N26G3X.7151Y.5625I.0625
N27G1X.7202
N28G2X.7825Y.5I-.0002J-.0625
N29G1Y.315
N30G3X.9075I.0625
N31G1Y.6
N32G2X.97Y.6625I.0625
N33G1X1.095
N34G2X1.1575Y.6J-.0625
N35G1Y.315
N36G3X1.2825I.0625
N37G1Y.6
N38G2X1.345Y.6625I.0625
N39G1X1.47
N40G2X1.5325Y.6J-.0625
N41G1Y.315
N42G3X1.6575I.0625
N43G1Y.6
N44G2X1.72Y.6625I.0625
N45G1X1.845
N46G2X1.9075Y.6J-.0625
N47G1Y.315
N48G3X2.0325I.0625
N49G1Y.6
N50G2X2.095Y.6625I.0625
N51G1X2.25
N52G2X2.3125Y.6J-.0625
N53G1Y0.
N54G2X2.25Y-.0625I-.0625
N55G1X2.196
N56X2.1335
N57G3X1.8835Y-.3125J-.25
N58G1Y-.3625
N59G0G40Z.5
N60M9
N61G91G28Z0.
N62M5
N63G00 X0 Y0
N64M30
%
( FILE LENGTH: 1276 CHARACTERS )
( FILE LENGTH: 10.92 FEET )
( FILE LENGTH: 3.40 METERS )
Re: Help Me Delete Unwanted Code.
« Reply #1 on: October 22, 2007, 07:30:18 PM »
Maybe I should have mentioned...
I'm running Mach3 (demo) on a Taig 2019. I want to position my mill at the start of my workpiece and zero the axes. Maybe I'm going about it the wrong way but I understand it this way.

vmax549

*
Re: Help Me Delete Unwanted Code.
« Reply #2 on: October 22, 2007, 09:08:26 PM »
If the file was created with all the comp corrections included then it will not be accurate without it(;-)

How about posting the original DXF file and we will recreate it in LCAM and see what the difference is. Also include what size tool you will use.

You DO realize that if you do not do COMP in the gcode you have to do the comp when you draw the part or do an offsett in the cam side in order for it to be accurate(;-)

(;-) TP
Re: Help Me Delete Unwanted Code.
« Reply #3 on: October 22, 2007, 09:34:12 PM »
I ended up redrawing the part with my own offsets for a .125 endmill. It really wasn't that hard to do but it was a little time consuming. I used emachineshop's free cad software because it's so easy to use. I have AutoCAD 2007 but it was a little confusing at first so I gave up on it. I have it back out now and I'm trying again on my new computer. Seems a little easier this time but still confusing. Anyway, it seems like I've read somewhere about AutoCAD outputting G-code? Any ideas on that?
Re: Help Me Delete Unwanted Code.
« Reply #4 on: October 22, 2007, 09:36:52 PM »
I attached the original drawing below.

I realize that someone here could regenerate the G-code for me but I wouldn't want to rely on someone doing it every time.

I'll be milling this with a 1/8" endmill. So obviously, then offset should be 1/16" outward.

I'll attach the part that I redrew for tool path in this post.
RESOLVED
« Reply #5 on: October 23, 2007, 01:11:59 AM »
I'm not going to need any help with this after all. It turns out that my eMachineShop software has an offset function already in the program. I just didn't realize that's what it is. They call it contour bit it takes a line (or curve or any continuous shape) and will offset that shape by the amount you specify - either inside or outside. So in addition to being WAY easier than any other CAD software, now I find that it has "tool path generation" built in. Well not really, but I can export the offset drawing into another program that will follow the dxf lines to create G-Code. I'm referring to the FlashCut demo. It makes nice, clean G-Code that even I can understand.