CNC Software

Home Model Engine Machinist Forum

Help Support Home Model Engine Machinist Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

IDP

Member
Joined
May 12, 2010
Messages
12
Reaction score
0
Greetings all,
I am considering converting one of my mill to CNC, I have the computer / controller / stepper motor side of things sourced. I draw in Autocad but what is the best software to convert Autocad drawings to g code.

I've had a look on the net and am bewildered.

I ought to say I'm going to use the mill for the production of steam loco parts etc.

Regards,

IDP
 
It depends on your budget. I dont have one so i use LazyCam to create alot of my Gcode. It can be tempermental but for $75USD ya cant beat it. Cant speak to any of the others out there because I have no first hand experiance.

 
Yes I agree, Lazycam is very good value for money and will produce g codes for basic 2 dimension parts with functions such as pocketing and drilling etc, I use it regularly, also if you are using mach3 I have found that it has a definition of all g codes and m codes at the bottom l/h part of the screen which helps in the process of learning long hand programming. I have also found that you can use the wizards to produce a basic cycle and study the application of codes within to reproduce your own from scratch.
it is surprising how quickly you can pick up the cnc lingo.

If you save the autocad drawing as a DXF file you can open it into Lazycam directly.
check out the artsoft website.
 
G'day all
I used lazycam for a few years then I came across cambam and I personally have found it to be better than lazycam.
I have imported dxf files from different cad packages (inventor solidworks designcad) and found them all to load without any problems.
Cambam also has some nice features the one I like is you can put holding tabs on so you part won't fall out
Here are some other features it has I pulled the from their web site http://www.cambam.co.uk/

Reading from and writing to 2D DXF files.
2.5D profiling machine operations with auto-tab support
2.5D pocketing operations with auto island detection
Drilling (Normal,Peck,Spiral Milling and Custom Scripts)
Engraving
True Type Font (TTF) text manipulation and outline (glyph) extraction.
Conversion of bitmaps to heightmaps
3D geometry import from STL, 3DS and RAW files
3D surfacing operations
Extendable through user written plugins and scripts

Cheers
Paul




 
IDP said:
Greetings all,
I am considering converting one of my mill to CNC, I have the computer / controller / stepper motor side of things sourced. I draw in Autocad but what is the best software to convert Autocad drawings to g code.

I've had a look on the net and am bewildered.

I ought to say I'm going to use the mill for the production of steam loco parts etc.

Regards,

IDP

If you want to save the money on cam software and your parts are fairly simple 2d machine operations you may find it simple enough to use auto cad to give you the program. Of course you will have to type the program out but once you do one or two you will find it is pretty simple especially if you have a couple sample programs as your guide. All you need to do is simply pick or create a point where ever you like to use as your program zero. Create dimensions or just measure from that point to each of the the end points going around the part. You will need the radius size and center point for any arcs as well. If your controller supports the G2 or G3 circle commands with only an R value you wont need the centers however most use I, J and K to determine arc size and location. K is only used for arcs using the Z axis (quill or head moving up and down) . I and J are what is commonly used in 2d part programs and depending upon the controller there are differences in how they are used but most commonly I refers to the distance from the start point in the X axis to the center point of the arc you are cutting and J is the same start to center distance but in the y axis. These are commonly know as the incremental distance from start to center of the arc. An example would be if you wanted to cut a 1 inch square and on each corner have a radius of .25 cut as you go. disregard for now the cutter size and consider that x0. and y0. for your program will be the center of that square. This means for a square that is 1 inch each side of that square resides at .5 from center in both the positive and negative direction. therefore to cut that square you would need to start the spindle at a selected speed and move to a place safe like .5 in x and 1. in y which is .5 away from your finished side and for our purpose far enough to not hit the rough stock we are cutting this block from. Next you move down to your depth in z that you wish to make this square which for this example lets pick .25 as the thickness. Typically the top of the part will be the program zero point in z to go with the x0. y0. that we set at the center of our square. Now I am not to good at this so bear with my jumping around like that but here is where we are in code form at this point.

we set x0. y0. at the center of our future square
we set z zero at the top of the finished part.
assuming the use of work offsets (G55 for this example) and standard Fanuc style g code here is the code to start our program as discussed above. NOTE the comments in quotes are not part of the program they are only to explain each codes function.


T1 M6 "T1 = select tool #1; M6 = Change the tool in the spindle to the selected tool"
S500 M3 "S500 = set spindle rpm to 500; M3 = spindle rotation right(forward) [M4 = left(reverse)]"
G0 G55 X.5 Y1. "G0 = move at rapid rate; G55 = work offset where we stored our program zero location; X and Y = location to start"
Z-.25 "Z = move at last commanded rate (rapid see above G0) to our selected cut depth"

Now we can cut our square and lets assume that arcs using R is available and continue to disregard cutter size for now. We know that each side is located at .5 in each direction and we want a corner radius of .25 on each corner so to do that we must stop the tool at the beginning and end of each arc. We must travel from our start point at y1. and x.5 down a straight line to the start of our first arc. to do this we subtract the radius size from the location of the next wall to be cut. because we are at y positive and x positive to start and we want to travel in a direction creating a climb cut condition we will need to proceed down y to -.5 to get to the next side wall cut which will be going to the left along the y minus side wall to the x minus .5 side then up to the y positive wall and back across to the right to the x positive .5 location we are starting at. Now that we know the direction and location we need to end up at the rest is easy. subtract .25 from each of the end points and you have your arc start points and add/subtract .25 to eather the x or y values depending on the direction of the next straight line to be commanded. This sounds harder then it is. starting at y.1 and x.5 your at the upper right corner but .5 inch away from the finished side you will cut last. to make a square you nee to travel around the center point going from upper right to lower right a move in y axis leaving x at .5 where you started. next you need to move from right to left along the bottom of the square which is x leaving y where you ended your last cut. then up the left side to the top of the square moving y and leaving x. Last you need to go across the top in x from left to right leaving y where it is to finish your square. Now just add the corner radius keeping the direction in mind. Your code will look like this in standard Fanuc style g code. Also I am assuming absolute programming for this example if you use incremental the commands would remain but the x and y numbers would change so this example would not produce a square for those using incremental.

G1 Y-.25 F2. "G1 = move at the rate specified by the current or last F commanded; Y= final end of .5 minus .25 for (arc start point)."
G3 X.25 Y-.5 R.25 "G3 = counter clockwise arc; x=the next move axis current location less the radius; y=finial side location(arc end point)"
G1 X-.25
G3 X-.5 Y-.25 R.25
G1 Y.25
G3 X-.25 Y.5 R.25
G1 X.25
G3 X.5 Y.25 R.25

Now that x.5 looks similar to where we started and that y.25 is between the y1. we started at and the y-.25 that our first line traveled to which means we have already cut the side we are currently sitting on and we are done all that is left is to move off the part and stop the machine so here we go.

G1 x.75 "feed off the part away from the part in x positive direction. "
G91G28Z0. "G91 = incremental command used here to tell the machine to go to machine reference return rather then a program reference point that can be used on some machines this is the safest way to send z home on almost every control but check your manual first. the G28 means "return to reference point at rapid rate of travel. and the z0 defines the axis and reference point to return to.
add an M5 to stop the spindle and M30 program end and your done except for accounting for tool length and diameter which are controlled by offsets both in z which is the TLO or tool length offset and the cutter comp or R value offset which I will add later but I have a feeling this has all been a waist of time and it will likely either bore people to tears as useless already long know info or picked apart by those with different controls or who know more after there year doing CNC programming then I know after 30+ years of doing it but hey I hope it helps someone because that's all its meant to do. by the way if you pick you center in auto cad and find your end points and move around the part as i just did this square you will have a program for your part just by getting the start and end points and travel from one to the next in a single direction around the part. Use your cutter comp G41 and in your offset place the full cutter radius or diameter which ever your control requires IE a half inch end mill use .25 for the radius offset or .5 if your control requires diameter inputs. This is called part profile programming and it is the simplest way to produce a part using any size cutter you choose or have available at the moment capable of making the necessary cuts. It requires no cam package or importing and exporting of DXF files which can be problematic if you are not careful about your scale and paperspace (older autocads). Auto cad is a great design tool for civil engineers and a useless pain in the but for manufacturing (sorry all you autocad lovers, take heart thou, none of the manufacturing software can touch autocad for civil engineering not even close).

P.S. note to IDP, I have a 2-8-0 1/8 scale late 1800's style built by my father and I over about a 5 year span. I am still working out the bugs on my 800 feet of track I reciently put in the yard. Hoping to be steaming along soon here in the arizona desert.
 
IDP said:
Greetings all,
I am considering converting one of my mill to CNC, I have the computer / controller / stepper motor side of things sourced. I draw in Autocad but what is the best software to convert Autocad drawings to g code.

I've had a look on the net and am bewildered.

I ought to say I'm going to use the mill for the production of steam loco parts etc.

Regards,

IDP

There is no shortcutting good CAD/CAM software. Your efforts building the NC mill are sort-of worthless without it. A way around the CAM portion is to have someone generate the code for you with their software provided you have good CAD drawings of your part. This would get you by for a while until you sort out what software will suffice for your purposes. The operating software is of importance since whoever may do this for you would need a post processor for it.

I use FeatureCam and KeyCreator and have written post processors for Mach3 for them. They both are very good and easy to use packages but as has been said; very expensive. A seat with FeatureCam, depending on the specific package, can be around $15,000 and KeyCreator with the CAM package is about $5000 which is considered a bargain for this type of software. If you are not doing any contouring or three dimensional work, some of the lower cost software packages will suffice or you can generate your own 2D code....

Programming the part is equally as important as the machine to make the part, they are inseparable.
 
BillC said:
There is no shortcutting good CAD/CAM software. Your efforts building the NC mill are sort-of worthless without it. A way around the CAM portion is to have someone generate the code for you with their software provided you have good CAD drawings of your part. This would get you by for a while until you sort out what software will suffice for your purposes. The operating software is of importance since whoever may do this for you would need a post processor for it.

I use FeatureCam and KeyCreator and have written post processors for Mach3 for them.
_________

While I would agree were we talking about professional aerospace manufacturing which I have done for the past 30 years. Back when I started the only cam software was called a calculator. I have used just about every cam software there is and written post for Mastercam, Surfcam, Gibbscam, EZ-Cam (wrote a lathe post for the mill package because the lathe package didn't understand cutter comp.), Unigraphics and others. I can tell you that if your using featurecam your not actually writting a program you have a limited cam software that has set routines for the manufacture of simple features based on tools Preselected or Predefined for that feature. It is nearly imposable to create code to do a cut that is not within the creators understanding of basic shapes and predefined features.

As you said there is no substitute for a good cam package but if you wish to learn how to program a machine rather then how to let something that may do it differently then you wish it done after placing a model created by another software that you can not manipulate when needed to reinforce weak areas for specific cuts or modify areas for clamping tabs or holes that can be removed later you not only are limiting your possibilities but restricting your ability to learn and be better at CNC Machining.

Again as I said I have only been doing this sense our programs were holes on a paper tape that we typed in on a flexwriter which is a typewriter like machine that punches holes in the paper rather then letters in ink. When you made a mistake you read the tape which was a series of 7 columns each row being one letter or number represented by various combinations of holes along the 7 columns 7 holes was a blank any other number in any order represented something. Anyway you read that tape back Through a reader up to the point of the error then continued typing until complete. short tapes were glued together and looped on the reader. long tapes were spooled and ran from spool to spool then rewound. I have contoured 3d profiles on manual machines with a calculator and written 5 axis position programs (not full motion) with a calculator and 100% of every program I have ever seen from any cam software has manual edits in it even from posts I've written and modified over the course of 10 years.

I knew a person once who worked for 20 years as a CNC machinist and he came to me with a question about a program one time. I asked him do you know what G1 means he said no. I soon realized that for 20 years he has stood watching the machine move and things happen and watched the code go by on the screen and never even put M6 and tool change together or M3 with the spindle forward or even knew that S and the number following it represented the RPM the spindle was going to turn on at. 20 years spent loading parts and measuring them with out any effort to learn or grow beyond that. To me that seems such a waist. What is the point of living if not to learn and advance ones self with understanding and stronger abilities.

Yes good cam software is a good tool but hardly as useful as a mind full of ideas and imagination. Take a look at some of the builds and the way people get the parts they want to make done on this very site then show me the cam software that can do those things and I will show you the day man is no longer needed here.

Good luck in the future and may your measurements always be precise.
 
These toolpaths are of a dome shaped part so is considered contouring or 3D machining - using your Z axis.....These were generated in less than ten minutes. The manual method to generate these would be close to impossible and your time could be better spent actually manufacturing the part....

As I was saying, there are folks who do not mind spending a few minutes helping a fellow modeler generate these types of code.....

RadialToolpaths.jpg


Planer.jpg
 
There is no substitution.... Once you have an understanding of the written program, then if your machine has the forth and fifth axis, you can add them yourself. The machine shop at Jefferson Lab uses FeatureCam to generate six axis code for their Haas machining center for high accuracy parts - FeatureCam is an entire package CAD/CAM and if you make the CAD in FeatureCam you can be sure that it will also generate the CAM code. I use KeyCreator to generate basic 2D code then add three and sometimes four more axis for the extravagant welds performed in the Sciaky EBW chamber.

This part is another example of how impossible it would be to make a program the old fashioned way....

Completed Drive SideHD.jpg
 
A 'simple' profile....

If you build an NC mill, watching it do its work on a complex part is a joy to behold. The very act of building the machine will introduce you to the use of G codes and M codes that you will necessarily use in its very basic operation. Drilling holes with an NC mill will soon get old and you'll wish to see it really work.

Profile.jpg
 
Free CNC Cam Software: HeeksCNC

It's 100% free, open source, works well. Perfect for newbies. Dan Heeks has tutorial vids on youtube too.

http://www.heeks.net/

HeeksCNC.png



He also has HeeksCADD that looks very similar to the CNC program.


And also a program called Voxelcut that simulates material being cut.
 

Latest posts

Back
Top