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-02-2005, 12:35 AM
 
Join Date: Jul 2004
Posts: 9
HighOctane is on a distinguished road
Help teach G-code for rookie

Guys, would you by any chance teach rookie how to understand G-code. I would like to learn and understand what those terms are. I obviously understood:

X2.5 (from top view of cnc machine moving X-Axis {up/down} at 2.5")
Y2.5 (from top view of cnc machine moving Y-Axis at {L/R} 2.5")
Z6 (from side view of cnc machine moving Z- at{up/down} 6")


But the only thing I don't understand is what G0, G1, G90, or whatever the letter and number that comes in first of each line. Perhaps, there are some websites that clearly explain that. Care to help or paste website that you would encourage a rookie to read?

Your help is appreicated.
__________________
Arthur Prather
Pratec Copyright © 2004
Reply With Quote

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

Mr. Octane -

The "G" represents a function - to get started, think of it as "Go". Once it is entered in a line of code, it will remain the modal code until another G-code is commanded. For example, if you write:

G00 x0y0
x5 y0.25

- the machine will execute the second line in "G00" mode (rapid).

G00 positioning (rapid traverse) (M,T)
G01 linear interpolation (feed) (M,T)
G02 circular Interpolation CW (M,T)
G03 circular Interpolation CCW (M,T)
G04 dwell, a programmed time delay (M,T)
G05 unassigned
G06 parabolic interpretation (M,T)
G07 cylindrical diameter values (T)
G08 programmed acceleration (M,T)
G09 exact stop check (M,T)
G10 - G12 unassigned or lock and unlock devices
G13 computing line and circle intersect (M,T)
G14 - G14.1 used for scaling (M,T)
G15 - G16 polar coordinate programming (M)
G15 - G16.1 cylindrical interpolation - c axis (T)
G16.2 end face milling - c axis (T)
G17 XY plane selection (M,T)
G18 ZX plane selection (M,T)
G19 YZ plane selection (M,T)
G20 input in inch
G21 input in mm
G22 - G23 machine axis off limit area (M,T)
G22.1 - G23.1 cutting tool off limit area (M,T)
G24 single-pass rough facing cycle (T)
G28 return to reference point (M,T)
G29 return from reference point (M,T)
G30 return to alternate home position (M,T)
G31.1 - G31.4 external skip function (M,T)
G33 thread cutting, constant lead (T)
G34 thread cutting, increasing lead (T)
G35 thread cutting, decreasing lead (T)
G36 automatic accel. and deccel. (M,T)
G37 used for tool gaging (M,T)
G38 measure dia. and center of hole (M)
G40 cutter compensation cancel (M)
G41 cutter compensation left (M)
G42 cutter compensation right (M)
G43 cutter offset, inside corner (M,T)
G44 cutter offset, outside corner (M,T)
G45 tool offset decrease
G46 tool offset double increase
G47 tool offset double decrease
G48 scaling off
G49 tool length compensation cancel
G50 tool offset increase
G50.1 cancel mirror image (M,T)
G51.1 program mirror image (M,T)
G52 offset axis w/ respect to 0 point (M,T)
G53 motion in machine coordinates (M,T)
G54 work coordinate system 1 select
G55 work coordinate system 2 select
G56 work coordinate system 3 select
G57 work coordinate system 4 select
G58 work coordinate system 5 select
G59 work coordinate system 6 select
G60 single direction positioning
G61 exact stop check mode (M,T)
G62 reduce feed rate on inside corner (M,T)
G64 cutting mode (M,T)
G65 custom parametric macro (M,T)
G66 custom macro for motion blocks (M,T)
G66.1 custom macro for all blocks (M,T)
G67 stops custom macro (M,T)
G68 coordinate syslaim rotation ON (M)
G69 coordinate syslaim rotation OFF (M)
G70 inch programming (M,T)
G71 metric programming (M,T)
G72 circular interpolation CW (M)
G72 finished cut along z-axis (T)
G73 peck drilling cycle (T)
G74 counter tapping cycle (M)
G74 rough facing cycle (T)
G74 cancel circular interpolation (M,T)
G75 circular interpolation (M,T)
G76 fine boring
G80 canned cycle cancel
G81 drilling cycle, no dwell (M,T)
G82 drilling cycle, dwell (M,T)
G83 deep hole, peck drilling cycle (M,T)
G84 right hand tapping cycle (M,T)
G84.1 left hand tapping cycle (M,T)
G85 boring, no dwell, feed out (M,T)
G86 boring, spindle stop, rapid out (M,T)
G87 boring, manual retraction (M,T)
G88 boring, spindle stop, manual ret. (M,T)
G89 boring, dwell and feed out (M,T)
G90 absolute dimension input (M,T)
G91 incremental dimension input (M,T)
G92 set absolute zero point (M,T)
G93 inverse time feed rate (M,T)
G94 per minute feed (M,T)
G95 per revolution feed (M,T)
G96 constant surface speed control (T)
G97 stop constant surface speed control (T)
G98 return to initial point in canned cycle
G99 return to R point in canned cycle

Also - follow this link for more info:
http://prl.stanford.edu/documents/pdf/Gcodes.pdf

This should get you started - and it sounds like you might already be familiar with the Cartesian coordinate plane. It really is a pretty easy thing once you practice.

Have fun!!

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

  #3   Ban this user!
Old 06-02-2005, 08:54 AM
WayneHill's Avatar  
Join Date: Mar 2004
Location: Michigan
Posts: 777
WayneHill is on a distinguished road

Try this cool web site. It shows a graphic display of the commands as you move the mouse over the CNC code.

http://www.cncezpro.com/gcodes.cfm
__________________
Wayne Hill
www.codemangler.com
Reply With Quote

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

Wayne -

Nice! I've never seen that site.

Where's Chunky?? - he might like that as a tutorial.

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

  #5   Ban this user!
Old 06-02-2005, 03:17 PM
 
Join Date: Jul 2004
Posts: 9
HighOctane is on a distinguished road

Thank you all guys for great help...

Let me understand this
G0 X0 Y0 (Home position)
G1 Y5.0 (First line)
G1 X5.0 (Second Line)
G1 Y-5.0 (Third Line)
G1 X-5.0 (4th Line)
Z6 (Spindle get off the material)

This code would have make a square? is that right?

Okay here's situation... running AutoCAD 2000, I drew a square, then attach a printed letter inside the square. and convert it to G code. And my objective is for a machine to cut a wood in square shape, and then engrave the letter above the square shape how can I be able to identify that machine is going to cut square and engrave letter above when looking at G Code? Because as matter of fact, I tried that... and run it on CNC simulator It cuts square shape but not engrave it.

Let me know
Arthur
__________________
Arthur Prather
Pratec Copyright © 2004
Reply With Quote

Sponsored Links
  #6  
Old 06-02-2005, 03:37 PM
mxtras's Avatar
Silver Member
 
Join Date: May 2005
Location: USA
Age: 45
Posts: 1,810
mxtras is on a distinguished road

The letter will not be recogized. It has to be in basic entities to process.

More info this evening...sorry to be short.

Your code needs a just a little bit of work. A simplified program to cut a square:

G0 Z6 get Z out of the way!!!! - - make this a habit!!!!!
X0.0 Y0.0 rapid to a starting point (G90)
G1 Z0.0 F8
Y5.0 F12
X5.0
Y0.0
X0.0
G0 Z6

Oh - no need to repeat the G1 command for each line, but you can to keep it clear to yourself.

G90 and G91 are not to be forgotten!

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

  #7   Ban this user!
Old 06-02-2005, 07:17 PM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Download the FREE CNC Simulator and see what your codes will do. The site is http://www.cncsimulator.com/
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #8   Ban this user!
Old 06-02-2005, 07:58 PM
 
Join Date: Jul 2004
Posts: 9
HighOctane is on a distinguished road

Thanks man, this is fun! could use it to learn ton of stuffs

Arthur
__________________
Arthur Prather
Pratec Copyright © 2004
Reply With Quote

  #9   Ban this user!
Old 06-20-2005, 11:12 PM
oldjohn's Avatar  
Join Date: Feb 2005
Location: Sydney Australia
Posts: 71
oldjohn is on a distinguished road
Smile

G'day
Guys, those tips are the best I've seen in a long time.
Thank you
John
Reply With Quote

  #10   Ban this user!
Old 06-24-2005, 04:44 AM
oldjohn's Avatar  
Join Date: Feb 2005
Location: Sydney Australia
Posts: 71
oldjohn is on a distinguished road
Smile

G'day
I found this CNC editor Here
AutoEditNC is a 32-bit Windows program to assist in the creation and testing of Numerical Control (NC) programs in the Fanuc/G&M-Code format. AutoEditNC is a specialized text editor with NC code creation tools. AutoEditNC will also simulate the movements of the machine tool so that the student can test his or her program for accuracy and reliablility.
John
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-24-2005, 05:58 AM
BlueChip's Avatar  
Join Date: Jun 2003
Location: Massachusetts
Posts: 130
BlueChip is on a distinguished road
CNC Training

Hi ... take a look at Protalk ... www.KentechInc.com ... you can learn G code using either in-depth text explanations or code animations that show you the code in use. Protalk also comes with a learning Wizard that tests your programming skills using on-screen examples ... comes with an Operator Panel trainer that explains the "bells and whistles" of a CNC's operator panel ... also comes with a simple toolpath plotting software to use to test your G code programs which you can use for both milling or turning programs.

One good aspect of Protalk is that it is not only a good training tool but it's design makes for a great reference tool anytime down the road and the toolpath plotting package can be used for some real programming on the job.

Protalk comes in either turning or milling versions ... www.KentechInc.com

Thanks to CNC Zone for the opportunity to post.
Reply With Quote

  #12   Ban this user!
Old 06-27-2005, 10:25 PM
 
Join Date: Jun 2004
Location: India
Posts: 4
sevulu is on a distinguished road
It's a boon to newcomers!!

Very good!!
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
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 09:21 PM
parametric programming Karl_T CamSoft Products 21 05-24-2005 02:58 PM
Regarding G Code Interpreter aran.nav General CNC (Mill and Lathe) Control Software (NC) 2 01-07-2005 05:10 PM
I need sample G code program bunalmis G-Code Programing 1 08-24-2004 03:50 AM
Getting The Most Out of CNCzone's Posting Features CNCadmin CNCzone.com FAQ 0 03-01-2003 11:08 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