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 07-24-2007, 10:12 PM
goodplastics's Avatar  
Join Date: Apr 2006
Location: usa
Posts: 39
goodplastics is on a distinguished road
please help me fix my code! PLEASE

I am trying to make a sample file for scanvec amiable so they can make a post for the fanuc 0mb control so common to CNC mills. My mill is a 1991 Fanuc drillmate T - model 10 with a 0Mb Fanuc control, anyone with the same machine would be able to help, but most 0mb controls are the same I figure. I have created a simple 5" x 5" square with 1/2" radius corners and a 1/2" hole in the center. The toolpathing is conventional milling around the outside of the square, 2 passes with a 1/2" end mill. Then with the same tool, peck drill a hole with 4 passes and a peck lift of .1"... The g-code it spits out is very wrong! I expected to see g83 instead of all the z movement. Could someone please correct this code so I can send it back to scanvec amiable as a comparison to their wrong code? I do know that the % sign at the begining needs to be removed, but it seems like lots of other stuff is missing, I'm not well versed enough in g-code to know what's wrong. Any help would be greatly appreciated!
Thanks,
Jason


%
O1234
N10 G90 G54 G17 G40
N20 la la l a100
N30 / (1/2" end mill )
N40 T6 M6
N50 S5000 M3
N60 G0 X7.66 Y6.979
N70 Z0.1
N80 G1 Z-0.5 F50
N90 G3 X6.91 Y7.729 R0.75 F100
N100 G1 X2.91
N110 G3 X2.16 Y6.979 R0.75
N120 G1 Y2.979
N130 G3 X2.91 Y2.229 R0.75
N140 G1 X6.91
N150 G3 X7.66 Y2.979 R0.75
N160 G1 Y6.979
N170 G0 Z0.1
N180
N190 G1 Z-1. F50
N200 G3 X6.91 Y7.729 R0.75 F100
N210 G1 X2.91
N220 G3 X2.16 Y6.979 R0.75
N230 G1 Y2.979
N240 G3 X2.91 Y2.229 R0.75
N250 G1 X6.91
N260 G3 X7.66 Y2.979 R0.75
N270 G1 Y6.979
N280 G0 Z0.1
N290 G5 X4.91 Y4.979 Z1. R-1. S0. P4. P0.1 F50. D0. S5000.0
0
0
0
R0.5 R0.
N300 M5
N310 G91 G28 Z0
N320 M30
Reply With Quote

  #2   Ban this user!
Old 07-25-2007, 02:52 AM
Mitsui Seiki's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 464
Mitsui Seiki is on a distinguished road

Originally Posted by goodplastics View Post
I am trying to make a sample file for scanvec amiable so they can make a post for the fanuc 0mb control so common to CNC mills. My mill is a 1991 Fanuc drillmate T - model 10 with a 0Mb Fanuc control, anyone with the same machine would be able to help, but most 0mb controls are the same I figure. I have created a simple 5" x 5" square with 1/2" radius corners and a 1/2" hole in the center. The toolpathing is conventional milling around the outside of the square, 2 passes with a 1/2" end mill. Then with the same tool, peck drill a hole with 4 passes and a peck lift of .1"... The g-code it spits out is very wrong! I expected to see g83 instead of all the z movement. Could someone please correct this code so I can send it back to scanvec amiable as a comparison to their wrong code? I do know that the % sign at the begining needs to be removed, but it seems like lots of other stuff is missing, I'm not well versed enough in g-code to know what's wrong. Any help would be greatly appreciated!
Thanks,
Jason



Is this what you want?
%
O1234
N10G80G40G49
N20 T6 M6
N30 M1
N40 (1/2" end mill )
N50 G0 G90 G54 G17 X7.66 Y6.979 S5000 M3
N60 Z0.1
N70 G1 Z-0.5 F50
N100 G3 X6.91 Y7.729 R0.75 F100
N110 G1 X2.91
N120 G3 X2.16 Y6.979 R0.75
N130 G1 Y2.979
N140 G3 X2.91 Y2.229 R0.75
N150 G1 X6.91
N160 G3 X7.66 Y2.979 R0.75
N170 G1 Y6.979
N180 G0 Z0.1
N190 G1 Z-1. F50
N200 G3 X6.91 Y7.729 R0.75 F100
N210 G1 X2.91
N220 G3 X2.16 Y6.979 R0.75
N230 G1 Y2.979
N240 G3 X2.91 Y2.229 R0.75
N250 G1 X6.91
N260 G3 X7.66 Y2.979 R0.75
N270 G1 Y6.979
N280 G0Z0.5
N290 G0 X4.91 Y4.979
N300 G83 Z-1. R0.1 Q0.125 F50. S5000.0
N310 G0 G80 Z1.
0
0
0
R0.5 R0.
N320 M5
N330 G91 G28 Z0
N340 M30

Last edited by Mitsui Seiki; 07-25-2007 at 12:52 PM.
Reply With Quote

  #3   Ban this user!
Old 07-25-2007, 11:30 AM
cnc-king's Avatar  
Join Date: Jul 2003
Location: united states
Posts: 232
cnc-king is on a distinguished road

Originally Posted by goodplastics View Post
I am trying to make a sample file for scanvec amiable so they can make a post for the fanuc 0mb control so common to CNC mills. My mill is a 1991 Fanuc drillmate T - model 10 with a 0Mb Fanuc control, anyone with the same machine would be able to help, but most 0mb controls are the same I figure. I have created a simple 5" x 5" square with 1/2" radius corners and a 1/2" hole in the center. The toolpathing is conventional milling around the outside of the square, 2 passes with a 1/2" end mill. Then with the same tool, peck drill a hole with 4 passes and a peck lift of .1"... The g-code it spits out is very wrong! I expected to see g83 instead of all the z movement. Could someone please correct this code so I can send it back to scanvec amiable as a comparison to their wrong code? I do know that the % sign at the begining needs to be removed, but it seems like lots of other stuff is missing, I'm not well versed enough in g-code to know what's wrong. Any help would be greatly appreciated!
Thanks,
Jason


%
O1234
N10 G90 G54 G17 G40
N20 la la l a100
N30 / (1/2" end mill )
N40 T6 M6
N50 S5000 M3
N60 G0 X7.66 Y6.979
N70 Z0.1
N80 G1 Z-0.5 F50
N90 G3 X6.91 Y7.729 R0.75 F100
N100 G1 X2.91
N110 G3 X2.16 Y6.979 R0.75
N120 G1 Y2.979
N130 G3 X2.91 Y2.229 R0.75
N140 G1 X6.91
N150 G3 X7.66 Y2.979 R0.75
N160 G1 Y6.979
N170 G0 Z0.1
N180
N190 G1 Z-1. F50
N200 G3 X6.91 Y7.729 R0.75 F100
N210 G1 X2.91
N220 G3 X2.16 Y6.979 R0.75
N230 G1 Y2.979
N240 G3 X2.91 Y2.229 R0.75
N250 G1 X6.91
N260 G3 X7.66 Y2.979 R0.75
N270 G1 Y6.979
N280 G0 Z0.1
N290 G5 X4.91 Y4.979 Z1. R-1. S0. P4. P0.1 F50. D0. S5000.0
0
0
0
R0.5 R0.
N300 M5
N310 G91 G28 Z0
N320 M30

I dont think you will be able to see a g83 in your mill tool paths because the soft ware looks at drillilng and milling as two different operations, and the tool selection will be different in the software.



is this what you are looking for?
%( has to be here if it is fanuc)
O1234
N10 G90 G54 G17 G40
N20 la la l a100( what is this ?)
N30 (1/2" end mill )
N40 G49 T6 M6 ( our robos need the g49 before it will make a tool change)
N50 S5000 M3
N60 G0 X7.66 Y6.979
N70 G43 Z0.1 H6
N80 G1 Z-0.5 F50
N90 G3 X6.91 Y7.729 R0.75 F100
N100 G1 X2.91
N110 G3 X2.16 Y6.979 R0.75
N120 G1 Y2.979
N130 G3 X2.91 Y2.229 R0.75
N140 G1 X6.91
N150 G3 X7.66 Y2.979 R0.75
N160 G1 Y6.979
N170 G0 Z0.1
N180
N190 G1 Z-1. F50
N200 G3 X6.91 Y7.729 R0.75 F100
N210 G1 X2.91
N220 G3 X2.16 Y6.979 R0.75
N230 G1 Y2.979
N240 G3 X2.91 Y2.229 R0.75
N250 G1 X6.91
N260 G3 X7.66 Y2.979 R0.75
N270 G1 Y6.979
N280 G0 Z0.1
N290 G5 X4.91 Y4.979 Z1. R-1. S0. P4. P0.1 F50. D0. S5000.0
0
0
0
R0.5 R0.( G5 is a manufacturer assigned code, on our robos g5.1 turns on high speed machining) )
N300 M5
N310 G91 G28 Z0
N320 M30[/QUOTE]
%
__________________
If you can ENVISION it I can make it
Reply With Quote

  #4   Ban this user!
Old 08-19-2007, 09:53 AM
 
Join Date: Apr 2004
Location: Forest Lake, MN
Posts: 22
rsmachine is on a distinguished road

Originally Posted by goodplastics View Post
I am trying to make a sample file for scanvec amiable so they can make a post for the fanuc 0mb control so common to CNC mills. My mill is a 1991 Fanuc drillmate T - model 10 with a 0Mb Fanuc control, anyone with the same machine would be able to help, but most 0mb controls are the same I figure. I have created a simple 5" x 5" square with 1/2" radius corners and a 1/2" hole in the center. The toolpathing is conventional milling around the outside of the square, 2 passes with a 1/2" end mill. Then with the same tool, peck drill a hole with 4 passes and a peck lift of .1"... The g-code it spits out is very wrong! I expected to see g83 instead of all the z movement. Could someone please correct this code so I can send it back to scanvec amiable as a comparison to their wrong code? I do know that the % sign at the begining needs to be removed, but it seems like lots of other stuff is missing, I'm not well versed enough in g-code to know what's wrong. Any help would be greatly appreciated!
Thanks,
Jason


%
O1234
N10 G90 G54 G17 G40
N20 la la l a100
N30 / (1/2" end mill )
N40 T6 M6
N50 S5000 M3
N60 G0 X7.66 Y6.979
N70 Z0.1
N80 G1 Z-0.5 F50
N90 G3 X6.91 Y7.729 R0.75 F100
N100 G1 X2.91
N110 G3 X2.16 Y6.979 R0.75
N120 G1 Y2.979
N130 G3 X2.91 Y2.229 R0.75
N140 G1 X6.91
N150 G3 X7.66 Y2.979 R0.75
N160 G1 Y6.979
N170 G0 Z0.1
N180
N190 G1 Z-1. F50
N200 G3 X6.91 Y7.729 R0.75 F100
N210 G1 X2.91
N220 G3 X2.16 Y6.979 R0.75
N230 G1 Y2.979
N240 G3 X2.91 Y2.229 R0.75
N250 G1 X6.91
N260 G3 X7.66 Y2.979 R0.75
N270 G1 Y6.979
N280 G0 Z0.1
N290 G5 X4.91 Y4.979 Z1. R-1. S0. P4. P0.1 F50. D0. S5000.0
0
0
0
R0.5 R0.
N300 M5
N310 G91 G28 Z0
N320 M30


I think you guys are missing some important steps in helping to fix this program.


Here is how I do it, and it should work just fine in your mill:

%
O1234
N10 G0 G17 G40 G40 G49 G80 G90
N20 T6 M6
N30 (1/2" ENDMILL)
N40 G0 G90 G54 X7.66 Y6.979 S5000 M3
N50 G0 G43 Z0.1 H6 M8
N60 G1 Z-0.5 F50.
N70 G3 X6.91 Y7.729 R0.75 F100.
N80 G1 X2.91
N90 G3 X2.16 Y6.979 R0.75
N100 G1 Y2.979
N110 G3 X2.91 Y2.229 R0.75
N120 G1 X6.91
N130 G3 X7.66 Y2.979 R0.75
N140 G1 Y6.979
N150 G0 Z0.1
N160 G1 Z-1. F50.
N170 G3 X6.91 Y7.729 R0.75 F100.
N180 G1 X2.91
N190 G3 X2.16 Y6.979 R0.75
N200 G1 Y2.979
N210 G3 X2.91 Y2.229 R0.75
N220 G1 X6.91
N230 G3 X7.66 Y2.979 R0.75
N240 G1 Y6.979
N250 G0 Z0.1
N260 X4.91 Y4.979
N270 G83 X4.91 Y4.979 Z-1. R.1 Q.25 F50.
N280 G0 G80 Z1. M9
N310 G91 G28 Z0 M5
N320 M30
%

A few things were missing or incorrect about this post. You need to have decimal points in your feeds or the control will read it as a last place decimal. For example if you want to feed at 2 inches per minute you would use F2. but if you put it in as F2 it will feed at .0002 of an inch per minute

Next, G43 is used to set the tools height offset, but you must have the offset number following it hence the H6 on the same line. The H6 can actually be any number you want, but it is usually a good idea to have it match the tool number.

And the percent signs need to be there at the beginning and end of every program on a Fanuc control, the control uses these to tell it where the beginning and end of the program are. Primarily when sending and receiving the program via DNC.

If you need anything else just let me know and I will help if I can.

Sean
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
Wierd NC Code and G-Code Tazzer General CAM Discussion 10 01-09-2012 01:07 PM
To hand Code? or to CAD Code? automizer Polls 81 11-26-2011 09:30 PM
learning g code or cad-cam code output? slow_rider G-Code Programing 3 02-27-2010 08:48 PM
G-code for beginners - want to learn G-code FPV_GTp G-Code Programing 7 11-17-2008 11:25 PM
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




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