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! > MetalWorking Machines > Milltronics


Milltronics Discuss Milltronics Machines


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #13  
Old 04-07-2006, 09:02 AM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

I bet I had you all missed up yesterday with F(it was a typo)
Reply With Quote

  #14   Ban this user!
Old 04-07-2006, 01:44 PM
AMCjeepCJ's Avatar  
Join Date: Aug 2005
Location: US
Age: 36
Posts: 371
AMCjeepCJ is on a distinguished road

Oh, lol, you can use multiple variables instead of F, F is in seconds on mine, P might work on yours, ummm, there are at least two more in the manual you could use. F10 on Cent 7 goes 10 seconds without a decimal, not sure what happened on yours

Ok, A, P, X or F on Cent 7... (Range: .01 - 9999.99 seconds)

P on Cent 5... (Range: .01 - 9999.99 seconds)

Cent 6 ?? I'm guessing just P from your response... (Range: .01 - 9999.99 seconds probably??? Not sure, just guessing)


later
__________________
Gimpy aka 313 (three thirteen)

The early bird may get the worm, but the second mouse gets the cheese.
Reply With Quote

  #15  
Old 04-07-2006, 01:49 PM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

codes can mean on thing here and another thing there. It best to try EIA format first and your right.... this Is that and that is this
Reply With Quote

Sponsored Links
  #16   Ban this user!
Old 04-07-2006, 01:53 PM
AMCjeepCJ's Avatar  
Join Date: Aug 2005
Location: US
Age: 36
Posts: 371
AMCjeepCJ is on a distinguished road

What's EAI?? I found the stuff for the last posts in those manuals I detest so passionately.
__________________
Gimpy aka 313 (three thirteen)

The early bird may get the worm, but the second mouse gets the cheese.
Reply With Quote

  #17  
Old 04-07-2006, 02:19 PM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

EIA=Electronic Industrial Association Format 1968 stander G and M codes for machine communication before then code could be anything.... G01 might be @4 before 1968 format
Reply With Quote

  #18  
Old 04-07-2006, 02:44 PM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

almost every machine controller made today will read EIA format and 9-10 times the person does not even know this
Reply With Quote

  #19  
Old 04-07-2006, 03:32 PM
*Registered*
 
Join Date: Mar 2006
Location: Boston
Posts: 1,628
lakeside is on a distinguished road

G-code
From Wikipedia, the free encyclopedia
Jump to: navigation, search
This article is about the machine tool programming language. For the video recorder programming system, see Video recorder scheduling code.
G-code is a common name for the programming language that is used for NC and CNC machine tools. It is defined in EIA RS-274-D.

G-code is also the name of any word in a CNC program that begins with the letter G, and generally is a code telling the machine tool what type of action to perform, such as:

rapid move
controlled feed move in straight line or arc
series of controlled feed moves that would result in a hole being bored, a workpiece cut (routed) to a specific dimension, or a decorative profile shape added to the edge of a workpiece.
change a pallet
Set tool information such as offset.
There are other codes; the type codes can be thought of like registers in a computer

X position
Y position
Z position
M code (another "action" register or Machine code(*))
F feed rate
S spindle speed
N line number
R Radius
T Tool selection
I Arc data X axis
J Arc data Y axis.
K Arc data Z axis.
(*) M Codes control the overall machine, causing it to stop, start, turn on coolant, etc. Whereas other codes pertain to the path traversed by cutting tools.

Different machine tools, however, may use the same code to perform different functions: even machines that use the same CNC control. Some may have said that "Fanuc" G-code is standard, but that is a myth.




Common Fanuc G Codes G00 Fast positioning
G01 Linear interpolation
G02 CW circular interpolation
G03 CCW circular interpolation
G17 X-Y plan selection
G18 X-Z plan selection
G19 Y-Z plan selection
G20 Programming in inches
G21 Programming in mm
G33 Constant pitch threading
G34 Variable pitch threading
G40/G41/G42 Tool radius compensation
G90 Absolute programming
G91 Incremental programming
G94/G95 Feed
G96/G97 Constant cutting speed/Constant rotation speed

A standardized version of G-code known as BCL is used, but only on very few machines.

G-code is understood by Gerber photoplotters, machine tool controls, and some machinists.

G-code files are output by CAM software such as Smartcam, Gibbscam, Featurecam, Edgecam, Mastercam, etc. G-code is also output by specialized CAD systems used to design printed circuit boards. Such software must be customized for each type of machine tool that it will be used to program.

Some CNC machines use "Conversational" programming, which is a wizard-like programming mode that either hides G-code or completely bypasses the use of G-code.




[edit]
Example
This is a generic program that demonstrates the use of G-Code to turn a 1" diameter X 1" long part. Assume that a bar of material is in the machine and that the bar is slightly oversized in length and diameter and that the bar protrudes by more than 1" from the face of the chuck. (Caution: This is generic, it might not work on any real machine! Pay particular attention to point 5 below.)


Tool Path for programSample N01 M216 (Turn on load monitor)
N02 G00 X20 Z20 (Rapid move away from the part, to ensure the starting position of the tool)
N03 G50 S2000 (Set Maximum spindle speed)
N04 T03 (Choose tool #3 from the carousel)
N05 G96 S854 M42 M03 M08 (Variable speed cutting, 854 ft/min, High spindle gear, Start spindle CW rotation, Turn the coolant on)
N06 G00 X1.1 Z1.1 T0303 (Rapid feed to a point 0.1" from the end of the bar and 0.05" from the side, Use offset values for tool #3)
N07 M01 (Optional Stop)
N08 G01 Z1.0 F.05 (Feed in horizontally until the tool is standing 1" from the datum)
N09 X0.0 (Feed down until the tool is on center - Face the end of the bar)
N10 G00 Z1.1 (Rapid feed 0.1" away from the end of the bar)
N11 X1.0 (Rapid feed up until the tool is standing at the finished OD)
N12 G01 Z0.0 (Feed in horizontally cutting the bar to 1" diameter all the way to the datum)
N13 G00 X1.1 (Rapid feed 0.05" away from the surface of the part)
N14 G00 X20 Z20 (Rapid feed back out away from the work)
N15 M05 M09 (Stop the spindle, Turn off the coolant)
N16 M215 (Turn the load monitor off)
N17 M02 (End of program)


Several points to note:

There is room for some programming style, even in this short program. The grouping of codes in line N05 could have been put on multiple lines. Doing so may have made it easier to follow program execution.
Many codes are "Modal" meaning that they stay in effect until they are cancelled or replaced by a contradictory code. For example, once variable speed cutting had been selected (G97), it stayed in effect until the end of the program. In operation, the spindle speed would increase as the tool neared the center of the work in order to maintain a constant cutting speed. Similarly, once rapid feed was selected (G00) all tool movements would be rapid until a feed rate code (G01, G02, G03) was selected.
It is common practice to use a load monitor with CNC machinery. The load monitor will stop the machine if the spindle or feed loads exceed a preset value that is set during the set-up operation. The job of the load monitor is to prevent damage in the event of tool breakage. Furthermore, to some extent it can warn of a tool that that is becoming dull and needs to be replaced or sharpened.
It is common practice to bring the tool in rapidly to a "safe" point that is close to the part - in this case 0.01" away - and then start feeding the tool. How close that "safe" distance is, depends on the skill and comfort level of the programmer.
If the program is wrong, there is a high probability that the machine will crash! That can be very costly. It is wise to intersperse the program with optional stops (M01 code) which allow the program to be run piecemeal. This gives the programmer a better view of the overall progress of the cutting cycle. The optional stops remain in the program but they are skipped during the normal running of the machine.
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





All times are GMT -5. The time now is 10:20 AM.





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