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 05-04-2005, 04:46 PM
 
Join Date: May 2005
Location: USA
Posts: 3
crashwg is on a distinguished road
Where do I start?

Ok, so I'm quite intrigued by the whole concept of CNC routers and I'm hoping to build one in the next year or two.

When I do get arround to building one I want to be a seasoned profesional when it comes to G-Code though which is pretty much the purpose of this post.

I have autocad 2000 installed on my computer currently and I have 2004 & 2005 I believe somewhere arround my house, I would just have to find them.

I downloaded MicroTech CncSimulator the other day also so I should be able to test anything I can actually get converted into G-Code once I figgure out how that program works!

So that's pretty much where I'm at now. I'd like to start of small, maybe just simulating 2D designs and working from there.

Now what? Are there any tutorials out there that would be helpful to someone with no experience like myself? Maybe some examples that the author has documented start to finish so I can see what goes into the whole deal?

Thanks in advance!
Reply With Quote

  #2   Ban this user!
Old 05-04-2005, 06:03 PM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

Crashwg,
Personally, I think you are jumping ahead of the cart! If you want to LEARN g-code, I think you need to HAND CODE simple shapes first. Cad is fine, and you can plot out the shapes and then figure out how to do the code by hand.
Then, when you finally enter into the world of using a Cam program (converts the drawing file into G-code), you will be able to look at the coding to see where problems are if they occur.
Its kind of like learning to drive. If you learn on a standard shift, the move to an automatic is easy; however, I have seen cases of people who have learned to drive on an automatic that no matter how hard they tried could not master a standard transmission!
__________________
Art
AKA Country Bubba (Older Than Dirt)
Reply With Quote

  #3  
Old 05-04-2005, 06:29 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,538
Al_The_Man is on a distinguished road
Buy me a Beer?

I agree, if you hand code some shapes and run them in the simulator, you can see the results. There are plenty of turorials on the web as in http://www.jjjtrain.com/vms/cnc_intro_code.html
I would suggest starting with simple linear and circular interpolated moves first and then include M codes such as spindle etc. Then progress from centreline programming to tool dia and length offset, followed by fixture offsets where the part zero is re-positioned.
Next canned routines such as peck drilling or threading.
For maximum flexibility, study macro and parametric programming which makes G code programming very powerfull.
I have two references I use which I find excellent, first is 'Computer Numerical Control Programming' by Michael Sava and Joseph Pusztai, try and get it if it is still in print.
The second which complements the first is 'Computer Numerical Control' by Warren S. Seames, published by SME.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #4   Ban this user!
Old 05-06-2005, 01:19 PM
 
Join Date: Apr 2004
Location: canada ontario
Posts: 278
corrie is on a distinguished road

Hello all I,ve got a ?Lets say I,m cutting out a square for example and my initial Z plunge is .25 into my material,after completing the four sides and coming back to the initial place where I first did my .25 plunge,do I have to add another .25 onto the initial .25 in order to plunge down .25 extra?Or do I write a new line of code with the addition.Cheers.
Reply With Quote

  #5  
Old 05-06-2005, 02:10 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,448
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by corrie
Hello all I,ve got a ?Lets say I,m cutting out a square for example and my initial Z plunge is .25 into my material,after completing the four sides and coming back to the initial place where I first did my .25 plunge,do I have to add another .25 onto the initial .25 in order to plunge down .25 extra?Or do I write a new line of code with the addition.Cheers.
It depends what you want to do. Are you asking how to mill the part? Tell us what you want the tool to do, or give us some sample code.

It's a good idea to start a new thread for a new question, rather than posting in a thread with a different (although similar) topic .
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-06-2005, 04:24 PM
 
Join Date: Apr 2004
Location: canada ontario
Posts: 278
corrie is on a distinguished road

Hey ger21 sorry about that,what I want to do, is to have the router keep going along at different Z levels but from the start point each time.Somewhat spiral cuting along the same path.Was just wondering if a new z level was to be given from the start plunge or would that # take over from the other,thanks.
Reply With Quote

  #7  
Old 05-06-2005, 05:36 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,448
ger21 is on a distinguished road
Buy me a Beer?

Ideally, with a router, I try to never plunge straight down. It will burn up bits quicker and put a load on the router it wasn't designed for. (Assuming a standard handheld router). Try this:

G1 X0 Y2 Z0 (lower tool to top of workpiece)
G1 X0 Y0 Z-.25 (move to bootom left corner while ramping down)
G1 X2 Y0
G1 X2 Y2
G1 X0 Y2
G1 X0 Y0 Z-.5 (ramp down for the next pass)
G1 X2 Y0
G1 X2 Y2
G1 X0 Y2
G1 X0 Y0 (clean up the ramp)
Lift the tool.

This is just 1 way to do it. I think this is what you're asking, but I'm not completely clear. The above example uses absolute coordinates. You can also program in incremental coordinates, which would be relative from the previous positions.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #8   Ban this user!
Old 05-06-2005, 06:30 PM
 
Join Date: Apr 2004
Location: canada ontario
Posts: 278
corrie is on a distinguished road

Thanks Ger21 I,m going to give that a go.By what you stated you should give the Z a little more -Z to get the required depth that one is after.Cheers.
Reply With Quote

  #9  
Old 05-06-2005, 07:27 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,448
ger21 is on a distinguished road
Buy me a Beer?

Whatever depth you want, is the depth you set in the code.? The example I posted was making 2 passes to get to a depth of .5. That's what I thought you wanted to do.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #10   Ban this user!
Old 05-07-2005, 09:46 AM
 
Join Date: Apr 2004
Location: canada ontario
Posts: 278
corrie is on a distinguished road

g92 x0 y0 z0
g00 z0.1
g00 x.25 y6
g01 x14 y1 z-.125 f10
g01 x16.50 y2.50
g01 x14.25 y6.25
go1 y8.25
g01 x16.50 y12
g01 x14.50 y13.50
g01 x.25 y8.50
g01 y6 z-.125 f10
g01 x14.50 y1
g01 x16.50 y2.50
g01 x14.25 y6.25
g01 y8.25
g01 x16.50 y12
g01 x14.50 y13.50
g01 x.25 y8.50
g01 y6 z-.125 f10........g00 z0.1 Call me thick .So in a g1 lineal move you can include a -Z move?And if the line feed rate is lets say 10 does the Z feed become the same?Or does it not matter due to the fact that X and Y are in motion.does this code make sence.
Reply With Quote

Sponsored Links
  #11  
Old 05-07-2005, 10:29 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,448
ger21 is on a distinguished road
Buy me a Beer?

How deep do you want to cut? I think all your X14.xx should be the same.

A g1 move is a straight line from the current location to the position specified on the line. If the Z is a different depth, then the cut will ramp up or down. The tool will move at the specified feed rate along that path.

g00 z0.1
g00 x.25 y6
g01 x14 y1 z-.125 f10 (This should be X 14.25, or 14.5, not sure)

From this point on, everything will be at F10

g01 x16.50 y2.50
g01 x14.25 y6.25
go1 y8.25 (this line won't work, should be G zero. You have G (letter "O"))
g01 x16.50 y12
g01 x14.50 y13.50
g01 x.25 y8.50
g01 y6 z-.125 f10
g01 x14.50 y1
From this point on, you are repeating what you already did.
g01 x16.50 y2.50
g01 x14.25 y6.25
g01 y8.25
g01 x16.50 y12
g01 x14.50 y13.50
g01 x.25 y8.50
g01 y6 z-.125 f10
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #12   Ban this user!
Old 05-07-2005, 10:53 AM
 
Join Date: Apr 2004
Location: canada ontario
Posts: 278
corrie is on a distinguished road

Thanks,the material is 3/4 inch thick and I only want to cut down to about 7/8 of that.According to my drawing and the points that are plotted out there are two different X14,s one being x14.25 and x14.50.I,ll have to run it and see what becomes,thanks for your help.
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
Tools advice needed for start pigifly General Metal Working Machines 5 12-10-2009 03:18 PM
Cycle Start button kaleem1 Mach Software (ArtSoft software) 7 12-24-2005 02:05 PM
Cap start motor wiring kong General Electronics Discussion 8 05-25-2005 12:40 PM
Would like to built a twinn... need help to start. CrazyRonny I.C. Engines 5 03-09-2005 12:09 AM
Where is a good place to start? Binow DIY-CNC Router Table Machines 1 07-16-2004 02:52 PM




All times are GMT -5. The time now is 02:07 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