CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-08-2005, 08:42 PM
 
Join Date: May 2005
Location: US
Age: 66
Posts: 173
Chunky is on a distinguished road
Chunky's Strategy

Link a dink
Reply With Quote

  #2  
Old 06-08-2005, 09:04 PM
ynneb's Avatar
Moderator
 
Join Date: Feb 2004
Location: Oz
Posts: 2,580
ynneb is on a distinguished road

I think you might be going about it the wrong way.
Most people do not write thier own Gcode. They use programs to do it for them.
These programs are called CAM programs.
You insert the drawing you have into a CAM program and it will automatically concert it into Gcode.

The only reason I introduced you to CNC simulator was because you were asking questions about how to write your own gcode by looking at a picture.

I recomend you download a program called Sheetcam www.sheetcam.com
This program is shareware and will make little gcode file for you without needing to buy it. It costs $150 if you did want to buy it.

Mach2 although it is primarily a program for driving your machine, it also can create basic gcode too. Again it is trial ware and cost 150 bucks.

I feel for you, and wish I could sit beside you for just 1 hour so as to make it all clear for you. When I entered into this all, I was exactly like you. So much to learn and tons of new terms etc. It was a painfull few months. You will get there.

I recommend you just start by making your machine even if you dont know how to use it. When I had finished my first machine I did not know how to use it either. But if you break the whole thing down into small "Chunks" you will get there. Promise.

Last edited by ynneb; 06-08-2005 at 09:20 PM.
Reply With Quote

  #3   Ban this user!
Old 06-09-2005, 06:27 AM
 
Join Date: May 2005
Location: US
Age: 66
Posts: 173
Chunky is on a distinguished road

I think you might be going about it the wrong way.
Most people do not write thier own Gcode.


I know. I wasn't thinking it was something that I would forever be doing. I just figured it would make it easier for me to learn CAM if I knew precisely what it was doing (making g-code-- right?)

The only reason I introduced you to CNC simulator was because you were asking questions about how to write your own gcode by looking at a picture. I recomend you download a program called Sheetcam

Well- It's not like I'm hell-bent on learning G-code. I just thought it was a bitter pill that I had to take and figured I'd get it over with. Nothing would please me more than hearing that I can forego that part. Is that what you're suggesting? (Putting a halt on CNCSimulator learning till I hear from you or someone in the know).

I feel for you, and .....

Don't give me too much sympathy. I'm just a whiner. I'm loving this stuff. It challenges me. There are people out there wondering where they're going to get their next meal. I'll get this thing done.

I recommend you just start by making your machine even if you dont know how to use it. When I had finished my first machine I did not know how to use it either. But if you break the whole thing down into small "Chunks" you will get there. Promise.

I respect your advice. It's all seemed good. On this I must disagree though. Nothing about the physical machine will help me. When you get right down to it there's nothing there but some rails and motors. Won't help me a bit to look at those. I want to draw a part, CAM it (I guess), send the file to you or someone willing to take it, let them run it. I wouldn't want them to even know what the final object is supposed to look like. (Maybe that's impossible since they'd have to check the tool path.) But, when it works, I'll order. Money's burning a hole in my pocket. Like your new avatar. Doesn't make me near as dizzy.
Reply With Quote

  #4   Ban this user!
Old 06-09-2005, 08:37 AM
buscht's Avatar  
Join Date: Nov 2003
Location: United States
Posts: 634
buscht is on a distinguished road

Chunky, very interesting discussion. Obviously, everyone who's doing this has had a learning curve and depending upon our background, various things have stumped us.

I don't understand your last statement here.

I respect your advice. It's all seemed good. On this I must disagree though. Nothing about the physical machine will help me. When you get right down to it there's nothing there but some rails and motors. Won't help me a bit to look at those. I want to draw a part, CAM it (I guess), send the file to you or someone willing to take it, let them run it. I wouldn't want them to even know what the final object is supposed to look like. (Maybe that's impossible since they'd have to check the tool path.) But, when it works, I'll order. Money's burning a hole in my pocket. Like your new avatar. Doesn't make me near as dizzy.

If you want other people to run your parts, you don't need your own machine nor do you need CAM software. All you have to do is draw the part in CAD. If you are just making a point about having someone check your G code for correctness, then you can do that yourself by using a G code simulator program.

Anyway, let me chime in with my 2 cents.

I see learning G code is like when you learn how to drive a car, women just learn how to drive, guys feel like they need to know how to fix and tweak the engine, change the oil, etc, etc. Sure, women can drive. but if they have a problem they have to call for help.

If you learn G code you know what to do if something goes wrong. There are thousands of people who program without knowing G code. That is what a CAM program is for. I am of the opinion that knowing G code is important and will make you more successful, but if you are overwhelmed with the whole process, put this lower down on your list of things to do.

Chunky, I understand your intention of being able to run a part within a couple of hours after tightening the last bolt. That's a good plan, but don't get too caught up in that.

There are alot of things to know about running a CNC and its impossible to anticipate all the problems.

Benny has good advice about breaking things down into "chunks". That will help you meet your goal.

1. Software
A. CAD
B. CAM
C. Machine controller
2. Electronics
A. Computer
B. Motors
C. Motor drivers
D. switches and relays
3.Physical Machine
A. lead screw or timing belt drive
b. linear bearing
C. Structure
D. router spindle
E. Router bits
F. Style of machine
G Work Envelope
4. Set up
A. Motor tuneup
B. Binding
C. lead screw/motor step setting
D. current settings
5. Operation
A. part holddown
B. Router RPM's
C. proper router bit
d. Proper feed speed

This list is not complete. You should make your own and use it as a check off list.

I've been pretty impressed with your thoroughness, but if you waited until every stop light was green before you left home, you'd never go anywhere.

Good luck.
Trent
Reply With Quote

  #5  
Old 06-09-2005, 09:10 AM
mxtras's Avatar
Silver Member
 
Join Date: May 2005
Location: USA
Age: 45
Posts: 1,810
mxtras is on a distinguished road

Learning can be frustrating - I commend you for trying this new adventure and I urge you not to let it get the best of you!!!

Sounds to me like choosing a direction presents the biggest challenge - once you gain enough insight into make decisions, the journey is fun!

I like Buscht's list - break the huge project into smaller buckets - all at once is overwhelming.

Hang in there, Mr. Chunky!!

Scott
__________________
Consistency is a good thing....unless you're consistently an idiot.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-09-2005, 10:47 AM
 
Join Date: May 2005
Location: US
Age: 66
Posts: 173
Chunky is on a distinguished road
Talking

In response to Buscht:

I don't understand your last statement here.

I respect your advice. It's all seemed good. On this I must disagree though. Nothing about the physical machine will help me. When you get right down to it there's nothing there but some rails and motors. Won't help me a bit to look at those. I want to draw a part, CAM it (I guess), send the file to you or someone willing to take it, let them run it. I wouldn't want them to even know what the final object is supposed to look like. (Maybe that's impossible since they'd have to check the tool path.)

I know. I don't communicate worth a damn. Especially in text where you cannot hear tone. What I was saying was that I wanted someone to take my ready-to-run file, or at least what I think is my ready-to-run file, tell me if it would work or they can even run it to see if it makes a pine door stop or whatever I've drawn. That would prove to me that I'm capable of going from idea to software to CNC machine to doorstop in my hot little hand. And... I don't want to diminish the marvel that is the homebuilt CNC. I know there's a lot to it in terms of evolution of the components, the electronics and so forth. But in day to day usage I don't need to know how to make a linear bearing and I don't need to know whether that signal went from a capacitor to a diode or vice versa (proably neither). But I do need to know how to communicate with my router and I'm assuming ones and zeros is all it will understand. I don't speak a word of it.

women can drive. but if they have a problem they have to call for help. Honey, the green text is what someone else said. I didn't say that. Honest honey!

If you learn G code you know what to do if something goes wrong. Well.... say no more. I'll have to know it. Something goes wrong with everything I do. Looks like g-code will be an absolute necessity for me-- based on what you just said.

There are thousands of people who program without knowing G code. Are you among them? I mean no sarcasm. I just want to know if you're able to CNC without ever having learned it. As I said before I'd love to forego that part. If you have I probably can to.

if you are overwhelmed with the whole process, put this lower down on your list of things to do. Nothing I'd rather do than take it off the list all together. Somehow I felt starting at that phase of the works and working backward to CAD would be easier for me. That way- if I couldn't catch on to CAD I'd still be able to write simple g and get by. Yes? No?

if you waited until every stop light was green before you left home, you'd never go anywhere. I know what you mean by that and I appreciate your kind words. I just don't want to start ordering from a position of ignorance. AFter I get the software figured out, then I'll start driving you guys crazy with component questions. Maybe I'll be less obsessive about that, just order what most folks order and let it go.
Reply With Quote

  #7   Ban this user!
Old 06-09-2005, 11:29 AM
buscht's Avatar  
Join Date: Nov 2003
Location: United States
Posts: 634
buscht is on a distinguished road

Chunky, that last post was very clear.

Yes, I can program manually with G code very well. I have been in this field for almost 30 years. Before CNC was NC, we typed G code manually into a teletype machine and out came a paper tape full of holes that the NC machine read to make the parts.

Keep in mind that my statement is like saying I can read and write English. I still don't know every word in the dictionary, nor do I know everything about G code, but I can still write a program.

You can post your G code here as a Zip file or .TXT and lots of people will look at it for you. Its pretty simple. I would just run it through my G code simulator and see what it is. You would have to tell us the size of tools and blank though.

When learning G code. I recommend just learning the simple stuff to start.
1. What are G code versus M codes
2. Absolute versus incremental
3. Rapid travel versus feedrate controlled travel
4. Linear moves
5. Circular move, clockwise and counterclockwise.
6. Program start and stop.
7. Modal versus Non Modal commands

With that, you can write just about any program. There are lots more commands
Cutter comp, right, left, on, off may or may not be useful
sub programs and sub routines are more advanced and you don't need to worry about them right away.
Tool and fixture offsets and tool and fixture tables are important.
Drill cycles, helical interpolation, etc. are probably not worth your time unless you have a specific need.

Think of writing a program just like witing a story. You need a opening, body, and conclusion.

The opening consists of commands that guarantee you have the software in the condition you want it. For example, you want to make sure that the machine is always in Absolute mode, spindles turned off, etc. you would put the appropriate commands at the beginnig of the program.

Then you would write the body. This consists of the machine motions to produce your part.

The conclusion is just like program stop, move to home, etc.

That's plenty to start with.
Trent
Reply With Quote

  #8   Ban this user!
Old 06-09-2005, 04:44 PM
 
Join Date: May 2005
Location: US
Age: 66
Posts: 173
Chunky is on a distinguished road

Responding to Buscht:
You can post your G code here as a Zip file or .TXT and lots of people will look at it for you. Its pretty simple. I would just run it through my G code simulator and see what it is. You would have to tell us the size of tools and blank though. Ah Hah! Well, that's exactly what I want to do. I'm not sure how well I can execute my plan. I'll just give it a go. I will attach two pictures. It's the same "part", just two views. And... I'll post a file. Here's where it gets complicated: I have drawn the part in SketchUp. That program allows you to export in four different formats that MIGHT be compatible with CAM software (so I'm told). But... it offers both 2d and 3d and if offers two versions of each. Bottom line-- there will be four files. I have no way of knowing which one would work for any particular person interested in participating in this exercise. If I can get some good feedback more people than just me can benefit. I will now try to attach the pics and files. (The start point is 1/4" hole, end point is 1/2" hole). The blank is 6" x 6" x 3/4" MDF.
Attached Thumbnails
Click image for larger version

Name:	1.JPG‎
Views:	93
Size:	24.2 KB
ID:	8125   Click image for larger version

Name:	2.JPG‎
Views:	69
Size:	23.8 KB
ID:	8126  
Attached Files
File Type: dwg A.dwg‎ (60.0 KB, 46 views)
File Type: dxf B.dxf‎ (216.0 KB, 45 views)
File Type: dwg C.dwg‎ (14.3 KB, 37 views)
File Type: dxf D.dxf‎ (38.4 KB, 39 views)

Last edited by Chunky; 06-09-2005 at 04:50 PM. Reason: Clarification2
Reply With Quote

  #9   Ban this user!
Old 06-09-2005, 04:55 PM
buscht's Avatar  
Join Date: Nov 2003
Location: United States
Posts: 634
buscht is on a distinguished road

Chunky, The files show up on Autocad Ok, The 2D files are worthless for going to a CAM program because they came across as a weird perspective projection.

If you could output 2D in a top down (plan) view it would work fine.

I'm not sure what else you want done with these.

PS, I'm going on a business trip for 2 weeks, so I won't be able to reply for awhile.
Trent
Reply With Quote

  #10   Ban this user!
Old 06-09-2005, 08:12 PM
 
Join Date: May 2005
Location: US
Age: 66
Posts: 173
Chunky is on a distinguished road

Chunky, The files show up on Autocad Ok, The 2D files are worthless for going to a CAM program because they came across as a weird perspective projection. Okay.That tells me that. That narrows it down from four files to two files. I guess the only other consideration would be DXF versus DWG (I think that's right). Do you recall if one of those was preferable to the other?

If you could output 2D in a top down (plan) view it would work fine. Good.

I'm not sure what else you want done with these. I would like for someone to see if they can be processed (for lack of a better word) as if they were files that you, yourself had generated. I'd like to know if you can put them into a CAM program and generate toolpaths and g-code. The ultimate test (as I see it) would be for someone to machine the MDF with a CNC router and see if it produces the part I have drawn. It may well be-- with your level of experience-- that you know very well that the part would machine without actually having to do it. If that's the case- let me know. Then I'd know that my SketchUp would suffice for a CAD. From there I'd select and master a suitable CAM. Then I'd order parts. Or... Have I overlooked something?

PS, I'm going on a business trip for 2 weeks, so I won't be able to reply for awhile. Trent Bummer. Maybe someone else will pick it up. You've been a huge help getting me this far. I really appreciate it. Chunk
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-09-2005, 08:38 PM
 
Join Date: May 2005
Location: US
Age: 66
Posts: 173
Chunky is on a distinguished road
Follow up question........

I better ask you this before quitting for the night: You said the files opened okay in AutoCAD.

(1)Would I be correct in assuming that pretty much any CAM program would take the files and use them to make paths and gcode?

(2)For that matter am I even correct in believing that that's what I need (tool paths and gcode)?

(3)Would a simulator actually take the place of a CAM program for my purposes?
Reply With Quote

  #12  
Old 06-09-2005, 11:01 PM
chuckknigh's Avatar
Gold Member
 
Join Date: Apr 2003
Location: United States
Posts: 598
chuckknigh is on a distinguished road

Most CAM programs take the files, and convert them based on the way (and the order) in which they were drawn. This involves 2 things...gcode and toolpaths.

Gcode is a description of the movements a machine is supposed to make. It says things like move the X axis +1.00 inches. Move the Z axis -3.05 inches. That sort of thing.

The toolpath is the path your tool is going to take. I know it seems silly, but it's am important distinction. If you've ever seen a graphics program render a graphic, you'll understand why this is important. Often it draws a line on the left side, then a circle on the right side, then a few other things in the middle, then zooms across the screen to put a single dot in the corner. If that was your toolpath, it would take forever to cut your part! It matters, to take time and make sure your toolpath makes some sense.

SOME CAM programs can optimize your toolpaths...simpler ones can't.

A simulator is just that...it's a "pretend" CNC machine that works in software. It lets you view the results of your gcode, and see your toolpath and machine movements, virtually, before you cut a giant swath through that irreplacable piece of walnut, or that expensive piece of aircraft aluminum alloy.

-- Chuck Knight
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chunky's Double Digit Club Chunky CNCzone Club House 2 06-10-2005 02:21 PM
CAD CAM Demo strategy questions? Idle hands General CAM Discussion 6 05-24-2005 01:45 PM
Strategy Pierre Phe General Electronics Discussion 4 06-06-2003 01:14 PM




All times are GMT -5. The time now is 07:46 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361