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 09-19-2007, 03:24 PM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
New to G-Coding

Hi All,

I recently bought a Sharp 2412 VMC with a Fanuc Oi controller. I am totally new to writing G-code. My knee mill has a 3-axis Proto Trac M3 with canned cycles so that is what I am accustomed to.

I’ve written my first program and was really hoping that someone might be willing to look over it for me.

This is an aluminum disk, 8” od and .75” thick. It has a tapped center hole that is a 3/8-16 along with a .175” deep counter bore. Along the X axis are two holes at +3.5” and -3.5” that are 5/16-18. Then there is a 5/8” wide slot that is .45” deep along the Y axis.

You’ll see that I jump in tool numbers from T3 to T5. I deleted the block (?) that had tool #4.

Any criticism would be very helpful Thanks so much in advance.

PS: I sure hope a posting like this is OK. If not, please accept my apologies.

Larry

%
O0100(ADAPT PLATE)
T1M6(#4 CENTER DRILL)
G0G90G54X3.5Y0S4000M3
M8
G43H1Z.1
G81G98Z-.3R.1F20.
X-3.5
G80
G0Z.1M5
G81G98Z-.3R.1F20.
X0
G80
GOZ.1 M5
M9
G28G91Z0
M1

T2M6(#F DRILL)
G0G90G54X3.5Y0S3800M3
M8
G43H2Z.1
G83G98Z-1.1Q.08R.1F25.
X-3.5
G80
G0Z.1M5
M9
G28G91Z0
M1

T3M6(5/16-18 CUT TAP)
G0G90G54X3.5Y0
M8
G43H3Z1.
M29S350
G84G95Z-1.R1.F.0555
X-3.5
G80Z1.5M5
M9
G28G91Z0
M1


T5M6(.625 EM)
M8
G0G90G54X0Y2.99S5000M3
G43H5Z.1
G1Z-.1 F20.
Y1.89
G1Z-.2
Y2.99
G1Z-.3
Y1.89
G1Z-.4
Y2.99
G1Z-.45
Y1.89
G1Z.1F50.
M9
G28G91Z0

T6M6(5/16" DRILL)
G0G90G54X05Y0S3800M3
M8
G43H6Z.1
G83G98Z-1.25Q.09R.1F25.
X0
G80
G0Z.1M5
M9
G28G91Z0
M1


T7M6(3/8-16 TAP)
G0G90G54X0Y0
M8
G43H7Z1.
M29S350
G84G95Z-1.R1.F.0625
X0
G80Z1.5M5
M9
G28G91Z0
M1

T8M6(1/2" end mill)
G0G90G54X05Y0S2500M3
M8
G43H8Z.1
G81G98Z-.175R.1F10.
X0
G80
G0Z.1M5
M9
G28G91Z0
M1

M30
%
In the above (T8M6 sequence) G43 line, Z is 0.1". Then in the G81 line R is 0.1" I am trying to figure out the difference between the Z and the R. I think R is rapid (distance from the top of the part) If so, then what is the Z for? Thanks
Reply With Quote

  #2   Ban this user!
Old 09-19-2007, 04:25 PM
 
Join Date: Jun 2005
Location: us
Posts: 210
timlkallam is on a distinguished road

Hello Larry I have Sharp mini mill also . You only use the R
if you want the drill or tap to retract to a different Z height from your start point. I like the tap or drill cycle to stop where i started it.If I start drill a Z.1 i want it to finish the cycle at Z.1 So I have no use for the R. Your machine boots up in the g98 mode so when you start a caned cycle like drilling or tapping the tool will retract to the same z height you started. So forget about the R.

This is how i would write the program .I like to keep the machine in G94 mode inchs per min. I notice you tap in G95 fed per rev. Either one will do the job but don't for get to change back to g94 after tapping.

Also no need to put in the G91 g28 z0 between tool changes when you call for a tool change the tool will go straight up to home anyway.


O0100(ADAPT PLATE)
T1M6(#4 CENTER DRILL)
G0G90G98G54X3.5Y0S4000M3
M8
G43H1Z.1
G81Z-.3F20.
X0
X-3.5
G80
M9
T2M6(#F DRILL)
G0G90G54X3.5Y0S3800M3
M8
G43H2Z.1
G83Z-1.1Q.08F25.
X-3.5
G80
M9
T3M6(5/16-18 CUT TAP)
G0G90G54X3.5Y0
M8
G43H3Z1.
M29S350
G84Z-1.F19.4444
X-3.5
G80
M9
T5M6(.625 EM)
M8
G0G90G54X0Y2.99S5000M3
G43H5Z.1
G1Z-.1 F20.
Y1.89
G1Z-.2
Y2.99
G1Z-.3
Y1.89
G1Z-.4
Y2.99
G1Z-.45
Y1.89
G1Z.1F50.
M9
T6M6(5/16" DRILL)
G0G90G54X05Y0S3800M3
M8
G43H6Z.1
G83Z-1.25Q.09F25.
X0
G80
M9
T7M6(3/8-16 TAP)
G0G90G54X0Y0
M8
G43H7Z1.
M29S350
G84Z-1.F21.875
X0
G80
M9
T8M6(1/2" end mill)
G0G90G54X05Y0S2500M3
M8
G43H8Z.1
G81Z-.175F10.
X0
G80
M9
G28G91Z0
Y0
M30
__________________
Tim

Last edited by timlkallam; 09-19-2007 at 04:58 PM.
Reply With Quote

  #3   Ban this user!
Old 09-19-2007, 06:23 PM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
New to G code

Hi Tim,
Thank you so much. Your advise has been a huge help. This being my first time, I have been very apprehensive about what I am doing.

I have gone through what you wrote comparing it line by line to what I wrote. As such a few questions came to mind:

1)You said you like to keep the machine in G94 mode (inches p/min) Should I assume that is a default? I couldn’t find where you put G94 into your program.

2)If I did want to use G95 for tapping, would I place the G94 on the same line as the G80?

3)I saw you entered a G98 near the top line. You said it boots up to G98 as well. Is it just a precaution of some sort to put the G98 in as you did?

Again my sincere thanks. I sure do appreciate the help. This is such a cool place!

Larry
Reply With Quote

  #4   Ban this user!
Old 09-19-2007, 09:52 PM
 
Join Date: Jun 2005
Location: us
Posts: 210
timlkallam is on a distinguished road

Hello Larry ,Glad to help

1)You said you like to keep the machine in G94 mode (inches p/min) Should I assume that is a default? I couldn’t find where you put G94 into your program.

Yes G94 is a defalt if you go to mdi mode you will see a list of g codes that a curently active or model when your machine boots up ( G0 G90 G94 G40 G20 G80 G54 G69 G17 G22 G49 G98 G67 G64 G15)

2)If I did want to use G95 for tapping, would I place the G95 on the same line as the G80?

The manual has it before the M29 on a line by itself.

3)I saw you entered a G98 near the top line. You said it boots up to G98 as well. Is it just a precaution of some sort to put the G98 in as you did?

I just did it to be safe in case you had it in G99 mode.You don't have to put it in.

Tim
__________________
Tim
Reply With Quote

  #5   Ban this user!
Old 09-20-2007, 09:06 AM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
New to G code

Thanks again, Tim. It sure does help.

I am going to try the program today and see what kind of mess I can make. I'll let you know how it goes.

Best regards,
Larry

Update: The program ran perfectly! My old machine took 42 min, to do the part. The new machine took less than 4 min. WOW! Thanks again!

Last edited by Larry Myers; 09-22-2007 at 07:27 AM. Reason: Update
Reply With Quote

Sponsored Links
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
Algorithm for G02 / G03 coding jemmyell Coding 19 08-06-2009 05:58 PM
M38/M39 spindle coding Flow Machine Problems, Solutions , Wireless DNC, serial port 2 12-30-2006 01:39 PM
Welcome to the coding forum! Evodyne Coding 79 12-26-2006 11:27 AM
G2/G3 Coding jrobson G-Code Programing 24 09-02-2006 12:54 PM
Coding own CAM program jonifootbalpl8r General CAM Discussion 2 04-10-2006 06:43 PM




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