Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: CHUFF on August 24, 2008, 02:19:29 PM

Title: BobCAM generating unusable g code...
Post by: CHUFF on August 24, 2008, 02:19:29 PM
I looked through a lot of posts but could not find an answer on this one. I'm just trying to cut a simple circle, and have drawn it up in BobCAD, then creating the gcode with BobCAM.  It all looks fine, and even simulates perfect... IN BOBCAM.

As soon as I load the gcode into Mach 3, it won't run. It gives an error saying "Cannot use two g codes that both use axis valuesLine 17"

Seriously, do I have to just learn to type g code just to run this machine?? I've had TONS of trouble with cam software. LazyCam is just a joke, and BobCAM generates bad g code.  The line it stops on reads:

N02 G00 G91 G28 Z0

I'm REALLY confused here.
Title: Re: BobCAM generating unusable g code...
Post by: ger21 on August 24, 2008, 03:19:07 PM
Don't use BobCAD, but you probably  need to edit your post or use a different one. Try removing the G28 and see if it works.
Title: Re: BobCAM generating unusable g code...
Post by: CHUFF on August 24, 2008, 03:35:05 PM
What do you mean "Don't use BobCAD"? A LOT of people in this forum recommended it for generating gcode! I just PAID FOR IT!

I'm getting a little tired of bad advice. This whole CNC adventure has been VERY frustrating. Why have so many people been able to just make it all work with ease, and I'm not able to cut out a  :'(  :'(  :'( circle!
Title: Re: BobCAM generating unusable g code...
Post by: Hood on August 24, 2008, 03:54:44 PM
Ger means he doesnt use BobCAD, he is not saying not to use it ;)
Hood
Title: Re: BobCAM generating unusable g code...
Post by: Hood on August 24, 2008, 03:58:21 PM
Please attach your code in full.
Hood
Title: Re: BobCAM generating unusable g code...
Post by: CHUFF on August 24, 2008, 04:20:42 PM
This is the WHOLE code generated...

(BEGIN PREDATOR NC HEADER)

(MACH_FILE=3AXVMILL.MCH)

(MTOOL T1 S1 D.25 H5. DIAM_OFFSET 1 = .125)

(MTOOL T2 S1 D.25 H5. DIAM_OFFSET 2 = .125)

(MTOOL T3 S1 D.201 H5. DIAM_OFFSET 3 = .1005)

(MTOOL T4 S1 D.35 H5. DIAM_OFFSET 4 = .175)

(MTOOL T5 S1 D.25 H5. DIAM_OFFSET 5 = .125)

(SBOX X-.375 Y-.375 Z-1. L23.25 W23.25 H1.)

(END PREDATOR NC HEADER)



%

O100

(PROGRAM NUMBER)

(PROGRAM NAME - TIMSDISC.NC)

(POST -  FANUC 0M)

(DATE - SUN. 08/24/2008)

(TIME - 10:34AM)



N01 G90 G80 G40 G20 G17



N02 G00 G91 G28 Z0.

N03 G91 G28 X0. Y0.



(JOB 1  CONTOUR)

(TOOL #1  0.2500  ENDMILL ROUGH)



N04 T01 M06

N05 S748 M03

N06 G90 G54 X22.625 Y11.25

N07 G43 H01 Z.1 M08

N08 G01 Z-.5 F1.7968

N09 G03 X22.625 Y11.25 I-11.375 J0. F2.9947

N10 G00 Z.1

N11 M09

N12 M05

N13 G91 G28 Z0.

N14 M01



(JOB 2  TAP  RANDOM POINT PATTERN)

(TOOL #2  0.2500  CENTER DRILL)



N15 T02 M06

N16 S504 M03

N17 G90 G54 X11.25 Y11.25

N18 G43 H02 Z.1 M08

N19 G81 G98 X11.25 Y11.25 Z-.08 R.1 F1.0084

N20 G80

N21 G00 Z.1

N22 M09

N23 M05

N24 G00 G91 G28 Z0.

N25 M01



(JOB 2  TAP  RANDOM POINT PATTERN)

(TOOL #3  0.2010  DRILL)



N26 T03 M06

N27 S874 M03

N28 G90 G54 X11.25 Y11.25

N29 G43 H03 Z.1 M08

N30 G81 G98 X11.25 Y11.25 Z-.6604 R.1 F2.6225

N31 G80

N32 G00 Z.1

N33 M09

N34 M05

N35 G00 G91 G28 Z0.

N36 M01



(JOB 2  TAP  RANDOM POINT PATTERN)

(TOOL #4  0.3500  CHAMFER TOOL)



N37 T04 M06

N38 S425 M03

N39 G90 G54 X11.25 Y11.25

N40 G43 H04 Z.1 M08

N41 G81 G98 X11.25 Y11.25 Z-.058 R.1 F1.2769

N42 G80

N43 G00 Z.1

N44 M09

N45 M05

N46 G00 G91 G28 Z0.

N47 M01



(JOB 2  TAP  RANDOM POINT PATTERN)

(TOOL #5  UNC  1/4-20   SPIRAL TAP)



N48 T05 M06

N49 S595 M03

N50 G90 G54 X11.25 Y11.25

N51 G43 H05 Z.1 M08

N52 G84 G98 X11.25 Y11.25 Z-.7 R.1 P0. F.05

N53 G80

N54 G00 Z.1

N55 M09

N56 M05

N57 G00 G91 G28 Z0.

N58 G91 G28 X0. Y0.

N59 T01 M06



(END OF PROGRAM)



N60 M30

%

Title: Re: BobCAM generating unusable g code...
Post by: Hood on August 24, 2008, 04:29:13 PM
OK what is wrong is the G91 and G28 need to be on seperate lines. You will have to either find a post processor that is suited to Mach (could already be included with BobCAD), edit the one that you are using or as you have paid for it get BobCAD to make a suitable one for you.
Until you get sorted you can edit your code as attached.

Hood
Title: Re: BobCAM generating unusable g code...
Post by: Chip on August 24, 2008, 04:53:49 PM
Hi, CHUFF

I see in your BoBCad post, It's a (POST - " FANUC 0M"), There are several posts for Mach3.

I'm using ver 22 hear, What ver of BoBCad are you using.?

LazyCam should post your DXF, Theres a section hear for LC questions.  http://www.machsupport.com/forum/index.php/board,14.0.html

Post your DXF there with questions.

Chip
Title: Re: BobCAM generating unusable g code...
Post by: CHUFF on August 24, 2008, 05:20:01 PM
What?? 

Ok.. I found a MachMill post processor for BobCAD V.22.  I set it in the preferences, and reposted the gcode. It did the EXACT same thing.

I'm about at the end of my rope here. NOTHING does what it SAYS it will do! WHY?? I created the entire file in BobCAD, so there IS NO DXF.  Besides, LazyCAM is a useless program at present. IF it gets developed further, it may become something, but in it's present state, you can't even generate a tool path offset.

I was under the impression that BobCAM would actually DO what it says it can. I guess I was wrong.
Title: Re: BobCAM generating unusable g code...
Post by: Soft Shell on August 24, 2008, 05:29:48 PM
I sure hope it  works, bobcad ver 22, mach 3 and my machine....  I sure have had frustrations such as you are having, but the folks at bobcad, if you talk to them kindly, would help you resolve the issue, probably dont want bad press.  Call support, Tech Support: 727-489-0003, they can look at you processor on line and adj stuff in your computer to make it work.  they just did mine about 2 days ago.  Good luck and hang in there, life is two short to spend it in a fluff...;)  best to ya!
Title: Re: BobCAM generating unusable g code...
Post by: Chip on August 24, 2008, 05:48:05 PM
Hi, CHUFF

None of this Stuff is Plug and Play, Whether you've spent 500.00 or 500,000.00.

There is a File Save as "DXF" in BobCad, To start with.
 
You've got a total of 9 post now, There isn't enough rope in the World at this Rate.

Take a break, Calm down, Re-Group a little and we'll try to help.

Thanks, Chip

Title: Re: BobCAM generating unusable g code...
Post by: Chip on August 24, 2008, 06:38:02 PM
Hi, CHUFF

Hears a BobCad, Dxf, G-code file and LazyCam G-code file to test.

Chip
Title: Re: BobCAM generating unusable g code...
Post by: CHUFF on August 24, 2008, 06:49:44 PM
Thank you for your efforts... but both those are wrong. See what I mean?

I just need a circle, cut out of 1/2 inch plywood, that is 22.5 inches in diameter, with a 1/4 inch hole in the center.

This SEEMS like a simple thing. Yet, NO cam software can do it.

I suppose what is really bothering me about all this is that it seems that EVERYONE has gotten this stuff to work BUT me. I'm doing everything people tell me, and it doesn't work. Maybe I should just give this up.
Title: Re: BobCAM generating unusable g code...
Post by: Hood on August 24, 2008, 06:55:52 PM
Use the circle wizard in Mach, edit the code and save as another file name then go back in and do your other circle and then edit and copy the code, open your first one you saved and paste the code in remembering to remove the M30 in the middle ;)
Hood
Title: Re: BobCAM generating unusable g code...
Post by: ger21 on August 24, 2008, 07:09:07 PM
This is with a 1/4" bit


M3
G0 Z0.1250
G0 X11.7500 Y11.7500 Z0.1250
F50
G83 X11.7500 Y11.7500 Z-0.4950 R0.0313 Q0.2475
G0 X11.7500 Y11.7500 Z0.1250
G0 X11.7500 Y22.8750 Z0.1250
G1 X11.7500 Y22.8750 Z0.0000 F50
G3 X11.7500 Y22.8750 Z-0.2475 I0.0000 J-11.1250 F150
G3 X11.7500 Y22.8750 Z-0.4950 I0.0000 J-11.1250
G3 X11.7500 Y22.8750 Z-0.4950 I0.0000 J-11.1250
G0 X11.7500 Y22.8750 Z0.1250
G0 X0 Y0
M5
M30
Title: Re: BobCAM generating unusable g code...
Post by: CHUFF on August 24, 2008, 09:44:05 PM
Thank you for the code, but that's not the point. I'm using this simple project in an attempt to understand the procedure from concept to cut, ya know? So far, unless I can read and type raw gcode, Mach 3 doesn't work.

CAM programs seem to be unreliable as well, and I'm running out of options. Sure, for cutting simple shapes such as a circle, or a designing a caster mounting plate, I could likely type raw gcode as it doesn't look THAT complicated... but what about more complex shapes? 3D shapes that require specific points and chamfers? The ideal solution is a CAM program... but I can't seem to make any of them work, and I'm unwilling to continue purchasing one application after another trying to find ONE that works with Mach 3.

I'm rapidly approaching offering what I've built for sale in an attempt to recover SOME of the money I wasted with this silly project.
Title: Re: BobCAM generating unusable g code...
Post by: Chaoticone on August 24, 2008, 10:27:39 PM
Well Chuff, the problem doesn't seem to be the cam programs you have tried or Mach 3. Thousands of other users are doing it. There is a learning curve that comes with both. If your not willing to invest the time it will take for you to learn them (each has their own pace they learn at) then maybe subing out your machine work to those that have will be a good option for ya. Lots of good people here to try to help you see the light but no one can do it for you. One thing is for sure though. If your gonna be here, the attitude has to go.  ;)

Brett
Title: Re: BobCAM generating unusable g code...
Post by: Chip on August 24, 2008, 10:38:25 PM
Hi, CHUFF

My last post wasn't intended to be anything specfic, Just a couple of examples for you.

Hears a 22.5 cir use a 1/4 inch cutter the depth is set to Z-0.6, You may want to change the F10 speed's (cut) to a higher speed.

Jog to the center of your cir, Zero axises to just above work surface, Ctr. hole will be cut first.

This is hand written G-code, Should do what you wanted.

Hears a LazyCam, G-code file also.

Learning, Mach, Cad, Cam and G-code, Takes Some Time.

Hope this Helps, Chip
Title: Re: BobCAM generating unusable g code...
Post by: CHUFF on August 24, 2008, 11:47:36 PM
Chip

Again... thanks for the help, but I need to figure out how to make this work for myself. I can't very well come to this or any other board with a jpeg of what I want and expect someone to write gcode for me. I need to understand what is going wrong.
Title: Re: BobCAM generating unusable g code...
Post by: Sam on August 25, 2008, 12:47:30 AM
Sounds to me like an option you should consider would be some one-on-one personal training. There is only so much a forum can do for you. Lots of us here do this sort of thing for a living, so we have YEARS invested in this craft. You will have to excuse us if we fail to meet your "instant" results for gratification. This is definitely not a "paint by numbers" sort of thing. Walk a mile in our shoes and pay your dues. Anger towards us is definitely uncalled for.
Title: Re: BobCAM generating unusable g code...
Post by: Chip on August 25, 2008, 03:36:49 AM
Hi, CHUFF

This will answer at least 5 questions you haven't asked, But, You've stated that LazyCam is Use-Less, You need to set it up some.

Offset's in your Cad for cutter offset's, Maybe ?

G-Code will answer Questions without them being asked sometimes, Also !!

Thanks, Chip

PS: Sam, Nicely Stated !!
Title: Re: BobCAM generating unusable g code...
Post by: uuccimi on August 25, 2008, 02:18:40 PM
Chip

Again... thanks for the help, but I need to figure out how to make this work for myself. I can't very well come to this or any other board with a jpeg of what I want and expect someone to write gcode for me. I need to understand what is going wrong.

chuff

...out there are many kinds of persons, and one of those many kinds: Ingrate and Thankfull.

Easy to forgived the UNTHANKFULL... but the INGRATES... N E V E R !
Title: Re: BobCAM generating unusable g code...
Post by: RICH on August 25, 2008, 06:01:45 PM
Chuff,
Chill out! Take a breath! If this is a hobby kind of thing for you then find..... joy....... in it.
Lazycam is not a joke, neither is MACH3, or a lot of other software thats around.
It probably took me 20  tries to get a cad file to import into Lazycam and export into MACH the proper code for cutting a handle for a model.  I also learned 20 different things about Lazycam and MACH which made the next one easy and enjoyable. So maybe walk before you run, do some reading, just play around, but most of all ......enjoy!
RICH
Title: Re: BobCAM generating unusable g code...
Post by: Garyv on August 27, 2008, 12:50:49 PM
CHUFF,
 have you gone to the BOB CAD user forum and looked under the video tutorials on setting up the post prosssrs for MACH3?
    I use Bob Cad 21 for a year now and relly have not had that type of problem..BUT the post proccesor needs to be installed and when you send the code to a saved file it will write ..
   Just a note I tried the V22 of Bobcad demo and could get nowhere with it..
    I stayed with my V21  and now the V22 is coming way down as all Bobcad programs do..
  But if you do not post in the right order the program will pick the cutting order for you which really makes a mess..
So when generating code ,,
1> TURN 3D ON
2>RAISE TOOL TO CLEARANCE
3>HIGHLIGHT FIRST CUT YOU WANT TO MAKE (LIKE CENTER HOLE)
4>PICK EACH ENTITY SEPERATLY THE HIT THE MACHINE BUTTON
5>I PLACE A POINT AT MY CLEARANCE HEIGHT AT X0 Y0 Z1 HIGHLIGHT THAT POINT THEN HIT GO TO POINT TO END RUN..
 Give that a shot and see if that helps..
Just my 2 cents here
Gary