Posts Tagged ‘cnc programming’
Tuesday, October 7th, 2008
gcode program
Next, we are going to go through an example of cutting out a 2” square with a CNC Plasma Cutter. Then we will look at the G-Code to see what is happening.
2” Square G-Code:
The numbers on the left of the G-Code are the sequence numbers of the code and the order it will be executed in. I have added notes after different actions to let you know what that line of code means. My note starts with a “-“ then continues. A “-“ means nothing in G-Code.
N0000 (Filename: 2INSquare.txt) – Name of File
N0010 (Post processor: Plasma.post) – Name of Post Processor Used
N0020 (Date: 8/1/2007) - Date G-Code was generated
N0030 ᯐ (Units: Inches) – Measurement Units Used
N0040 G53 - Machine co-ordinate system
N0050 G90 – Absolute Programming
N0060 G40 – Tool radius compensation off
N0070 F1 – Feedrate of 1” per min
N0090 (Part: Square) – name of the part
N0100 (Process: Plasma, DEFAULT, Plasma, 0.01 in kerf) – Tool to be used
N0110 ᮼ – Go to Home
N0120 X0.1113 Y-0.0904 – Move to this exact X, Y position
N0130 G04 – Pause for 2 seconds, this is in milliseconds
M03 – Fire the plasma torch
N0150 ᯀ P500 - Pause for .5 seconds, this is in milliseconds
ᮿ X0.0000 Y-0.0050 I-0.1113 J-0.0298 F40.0 – move to this X, Y position in an arcing movement at a feedrate of 40 inches per min
N0180 G01 Y2.0000 – Travel in the Y+ direction for 2 inches to X0, Y2
N0200 G01 X2.0000 – Travel in the X+ direction for 2 inches to X2, ͼ
N0220 G01 Y0.0000 – Travel in the Y- direction for 2 inches to X2, Y0
N0240 G01 X0.0000 – Travel in the X- direction for 2 inches to X0, Y0
N0250 G03 X-0.1113 Y-0.0904 I0.0000 J-0.1152 – move to this X, Y position in an arcing movement
N0260 ḙ – Turn off the plasma torch
N0270 G04 – Pause for 2 seconds, this is in milliseconds
N0280 G00 – Move to Home
N0300 Ḳ – End Program
(more…)
Tags: cnc programming, cnc tutorial, cnc tutorials, g-code, g-code tutorial, gcode, gcode program, gcode programming, learn cnc, learn cnc programs
Posted in Total Cartridges Blog Posts | No Comments »
Sunday, October 5th, 2008
cnc tutorials
G-Code is the common name for the programming language of CNC Machines.Somewhat of a general, catchall term for CNC programming language. Very few machines adhere to this standard today. There are as many varations as there are manufacturers.
This is how I think of G-Code. It is a simple language built off of the Cartesian Coordinate System for motion control. That is a mouthful. I don’t know if that is exactly right, but you will get my meaning in a second when we go through some code line by line. You will remember your High School Geometry soon enough. For the real pros out there, you know there is much more to G-Code then that, but it is a good place to start thinking about it.
You will see many variations of the G-Code name like:
Gcode
gcode
G-Code
g-code
G Code
G-Code
Are there other “Codes?”
In a word…Yes.We will get to that information in just a minute. G-code is also the name of any command in a CNC program that begins with the letter G. G-Codes generally tell the machine to perform an action. G-Codes can tell machines to move a certain distance in the X-Axis for example. Or, make a rapid move to another location. Or, move in an arcing fashion while milling. An on and on and on.
(more…)
Tags: cnc programming, cnc tutorial, cnc tutorials, g-code, g-code tutorial, gcode, gcode program, gcode programming, learn cnc, learn cnc programs
Posted in Total Cartridges Blog Posts | No Comments »
Saturday, October 4th, 2008
cnc programming
One day I knew I had a problem. I just spent 4 hours with my plasma cutter in my right hand. I had been cutting out patterns I had traced onto a sheet of metal.These interesting shapes were going to become my coffee table. Everyone complained to me that I didn’t have a coffee table. I thought, “I’ll show them” and began to build one.
Why make a coffee table out of metal you ask? The quick answer is that I wasn’t much of a woodworker at the time. On the other hand, I used to weld professionally and knew I could make anything out of metal. That is how it all began, making a coffee table out of metal.
Now if you knew me, you know that I can’t just make something normal. My brain is the scheming type that has to do things differently then the norm. I wanted to make a table that would knock people’s socks off. I thought a funky looking table, made out of metal, with casters and lights would do the trick. You know what? It did.
I really had a ball making this table. I mean I had serious fun. So much so that I started to design others. I began showing photos of my work to everyone I knew. On top of that, I was getting good feedback.I just came across a new hobby, it was furniture making. Who would have ever thought I would pick up furniture making as a hobby.
While making this first table a problem arose. It is the one I mentioned above with my right hand.After cutting out all those parts my wrist really began to hurt. While welding professionally there was always the threat of Carpal Tunnel Syndrome.Human welders are continually afflicted by this injury and others because of repetitive motion tasks.
If you repeat something over and over and over and over, your body gives out at some point. After cutting up these table parts, I knew I couldn’t go on doing this for a hobby. I knew something would have to change or the new hobby would break my body.
(more…)
Tags: cad software, cam software, cnc blog, cnc community, cnc diy, cnc forum, cnc machining, cnc plasma cutter, cnc programming, cnc story, cnc web site, diy cnc
Posted in Total Cartridges Blog Posts | No Comments »
Saturday, October 4th, 2008
learn cnc
In a word, no. You will probably need to know how to quickly scan your G-Code if you are having problems during your machining simulation. Other then that G-Code and a CNC program are throwaway programs for the most part. What do I mean by that? Let me explain.
Let’s look at a specific design. Let’s say a 12” by 12” square. You build your model, run it through your CAM Software and create a CNC Program made up of G-Code instructions to your machine. Say tomorrow the job requirements change to a 24” by 24” square. Do you go into your G-Code line by line and change the code? Most people wouldn’t. They would go back into their CAD or CAM program and scale the square up to 24” by 24”.Then postprocess the job to get their new CNC Program.
There are some people that would do this editing line by line because the design is simple. Now think of a complex shape and what scaling it up or down would entail.This would include changes to the G-Code and reviewing it line by line. We are talking thousands of lines here vs. going back and quickly scaling the model and spitting out some new G-Code. And that is why G-Code is throwaway. Use it over and over when you can, but don’t fret over archiving it if something changes. It is much better to make a copy of the design (CAD File) in its original state and save that somewhere. That is much more useful.
Post Processing??? - Now you have me worried. With all the variations in G-Codes and M-Codes, how will I ever keep it straight?
(more…)
Tags: cnc programming, cnc tutorial, cnc tutorials, g-code, g-code tutorial, gcode, gcode program, gcode programming, learn cnc, learn cnc programs
Posted in Total Cartridges Blog Posts | No Comments »
Friday, September 26th, 2008
cnc steps
Any subject that covers working in the shop should begin with safety.Safety should always be at the top of your mind.CNC is not different than any other shop topic that you will encounter. In fact, the highest levels of safety awareness should be maintained when using a CNC machine.
CNC machines don’t have a mind of their own. A computer gives them a command and they execute it. They don’t care if they are cutting steel, aluminum, wood or your hand. They don’t differentiate between materials. You need to be aware of this.
When you are Learning CNC you should take it slow. Do tests on a small scale, then watch and learn what happens. For example, why don’t you let your machine “cut air” for a while when you first get it. You don’t need to put it right to work cutting material. Why not create a simple program, and let the machine cut the air instead of material. Better yet, why even run the spindle during the test.
Every CNC Machine has quirks that you need to learn. Every CNC machine has a different working envelope. Every CNC machine is just a little bit different then the rest of them.CNC safety requires that you learn about your machine before you use it.
(more…)
Tags: cad/cam, cnc, cnc art, cnc community, cnc machine, cnc machining, cnc process, cnc programming, cnc project, cnc steps, g-code, gcode
Posted in Total Cartridges Blog Posts | No Comments »
Friday, September 26th, 2008
cnc overview
Quick Explanation of the Process
This is how I view Computer Numerical Control. I break it down into simple steps that I can remember. Now, they all interact, but it is good to keep them in boxes for simplicity sake. I also like to keep them in a logical, progression type order. Here they are: Design, CAD, CAM, Control and Machine.
Today you are going on a journey. You are going to learn about the basics of CNC. I hope you are as excited as I am about this topic.
I have been using CNC equipment in my home shop for six years now.The CNC technology gets better all the time. The software gets better every year. At one time large companies could only afford this technology.Now there are thousands of CNC machines working in shops like yours and mine.
There are basically five elements to a CNC Project that you need to know:
Design - planning on what you want to build
Computer Aided Design - translating it into the computer
CAM - converting it into machine language
Controlling - controlling your machines movements
Machining - building the part to specifications
(more…)
Tags: cad/cam, cnc, cnc art, cnc community, cnc machine, cnc machining, cnc process, cnc programming, cnc project, cnc steps, g-code, gcode
Posted in Total Cartridges Blog Posts | No Comments »