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 01-07-2008, 08:31 AM
 
Join Date: Jan 2008
Location: USA
Posts: 3
Isureamcael is on a distinguished road
Question Bolt Circle Programming

Hi Folks!

I just got my first professional job as an Adjunct CNC Instructor, and Im in need of some refreshers. Im trying to remember some ways to program bolt hole circles using g-code. Im working with fanuc controls - and want to use a g81 canned cycle... but am rusty on how to set up the block. Any suggestions?

Thanks!

(p.s. the more suggestions the better!)
Reply With Quote

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

Here is a custom macro that machines a bolt hole pattern.
O0008 (Main program)
N005 G54 G90 S800 M03 T02 (Select coordinate system, absolute mode, start spindle, get next tool ready)
N010 G00 X3.0 Y2.5 (Rapid to center of bolt hole pattern)
N015 G43 H01 Z.1 (Instate tool length compensation, rapid up to workpiece)
N020 G65 P1008 X3.0 Y2.5 Z0 R1.75 D0.75 A45.0 H8.0 C81. F5.0 (Machine entire bolt hole pattern with drilling cycle)
N025. . . . . .


X - Position in X for center of bolt hole pattern
Y - Position in Y for center of bolt hole pattern
Z - Surface in Z into which holes are machined
R - Radius of bolt hole pattern
D - Depth of holes
A - Starting angle (0 is three o'clock position, plus is ccw)
H - Number of holes
C - Cycle type (81 is for drilling, 84 for tapping, etc.)
F - Feedrate for machining
Here's the actual custom macro (program O1008).

O1008 (Custom macro to machine bolt hole circle)
#101=1 (Initialize counter)
#102=#1 (Initialize current angle to A)
#103=360 / #11 (Constant for incremental angular distance between holes)
#104=#26 + 0.1 (Constant for rapid approach plane)
#105=#26 - #7 (Constant for Z bottom position of hole)
N1 IF [#101 GT #11] GOTO 99 (Test if loop is finished)
#110=#24 + COS[#102] * #18 (Calculate X position for current hole based on current angle)
#111=#25 + SIN[#102] * #18 (Calculate Y position for current hole based on current angle)
G#3 X#110 Y#111 R#104 Z#105 F#9 (Machine current hole)
G80 (Cancel cycle)
#101=#101 + 1 (Step counter)
#102=#102 + #103 (Step current angle)
GOTO 1 (Go back to test at loop beginning)
N99 M99 (End of custom macro)
__________________
Stefan Vendin
Reply With Quote

  #3   Ban this user!
Old 01-07-2008, 01:49 PM
 
Join Date: Oct 2003
Location: USA
Age: 64
Posts: 263
mrainey is on a distinguished road

I'd recommend you have a look at some basic training resources. It sounds like you're likely to have some more CNC questions.

CNC Concepts has great information.

http://www.cncci.com
__________________
Software For Metalworking
http://closetolerancesoftware.com
Reply With Quote

  #4   Ban this user!
Old 01-07-2008, 02:10 PM
holbieone's Avatar  
Join Date: Feb 2007
Location: usa
Posts: 523
holbieone is on a distinguished road

it's going to be a little different for each control type
T1M6 ;TOOL CALL
S1000M3 ;CW SPINDLE 1000RPM
N100G81X1.Y2.C.1D-.75F6. ;G81 CANNED CYCLE + FIRST HOLE ,POSITION ,CLEARANCE PLANE AND DEPTH
N200X-1.Y2. ;SECOND HOLE
N300X-1.Y-2. ;THIRD HOLE
N400X1.Y-2. ;FORTH HOLE
N500G80 ;CANCEL CANNED CYCLE

(G81) DRILLING CYCLE (DRILLS FROM CLEARANCE PLANE TO DEPTH IN FEED MODE THEN RETRACTS TO CLEARANCE PLANE IN RAPID MODE)

(X,Y) POSITION OF HOLE TO BE DRILL

(C) CLEARANCE PLANE

(D) DEPTH (IN ABSOLUTE POSITIONING THIS WOULD BE FROM PART ZERO ,INCREMENTAL FROM CLEARANCE PLANE )

(F) FEED RATE (IPM) (CHIP LOAD = FEED RATE / RPM) / 2 PER TOOTH

(X,Y) OTHER HOLE POSITIONS

(G80) CANCEL CANNED CYCLE

HOPE THIS HELPS

KEVIN
Reply With Quote

  #5   Ban this user!
Old 01-07-2008, 02:23 PM
Mitsui Seiki's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 464
Mitsui Seiki is on a distinguished road

You can use G16(Polar coordinate system)


G16(PCS on)
G81 X2 Y0 R0.1 Z -0.1 F3
X2 Y60
X2 Y120
X2 Y180
X2 Y240
X2 Y300
G15(PCS off)
X is radius, Y is the angle.
__________________
Stefan Vendin
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-07-2008, 02:41 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Not to be rude, but this probably will be.....

How do you get a job (or go looking for one) as a "cnc instructor" and not understand something so generic as a G81 cycle?... even if its for "bolt circle"... What exactly is it that the course you're instructing consist of?

Curious........??
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #7   Ban this user!
Old 01-07-2008, 02:53 PM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

And on a machine the does not do polar.
Code:
G0X0.0 Y0.0 Z0.1
G81 R0.1 Z -0.1 F3 L0
X[2*COS[0]] Y[2*SIN[0]]
X[2*COS[60]] Y[2*SIN[60]]
X[2*COS[120]] Y[2*SIN[120]]
X[2*COS[180]] Y[2*SIN[180]]
X[2*COS[240]] Y[2*SIN[240]]
X[2*COS[300]] Y[2*SIN[300]]
G80
G0 X0.0 Y0.0 Z0.1


(OR WITH A LOOP)
G0X0.0 Y0.0 Z0.1
G81 R0.1 Z -0.1 F3 L0
#100=45(START ANGLE)
#101=3(RADIUS)
#102=15(ANGLE INCREMENT)
(* ------------- *)
#103=#100+360
WHILE[#100LT#103]DO1
X[#101*COS[#100]] Y[#101*SIN[#100]]
#100=#100+#102
END1
G80
G0 X0.0 Y0.0 Z0.1
Reply With Quote

  #8   Ban this user!
Old 01-07-2008, 04:29 PM
 
Join Date: Nov 2006
Location: UK
Posts: 121
ChattaMan is on a distinguished road
G16

and a shorter version for one that does do polar...........

G16 G81 X2 Y0 R0.1 Z -0.1 F3
G91 Y60 K5 (increments 60degrees, 5 times)
G15 G90 G80

X is radius, Y is the angle.

Just another way of doing the same thing ;-)
Reply With Quote

  #9   Ban this user!
Old 01-20-2008, 07:19 AM
oldjohn's Avatar  
Join Date: Feb 2005
Location: Sydney Australia
Posts: 71
oldjohn is on a distinguished road

Mate. Do you know how dangerous this s**t is if you don't know what you're doing? I wouldn't like to be in your class.

John
Reply With Quote

  #10  
Old 02-06-2008, 11:54 AM
*Registered User*
 
Join Date: Nov 2005
Location: USA
Posts: 274
Bluesman is on a distinguished road

Originally Posted by psychomill View Post
Not to be rude, but this probably will be.....

How do you get a job (or go looking for one) as a "cnc instructor" and not understand something so generic as a G81 cycle?... even if its for "bolt circle"... What exactly is it that the course you're instructing consist of?

Curious........??
Not Rude Psycho, But an excelent question. I was asking the same one to myself. How in the world do you get a job as an "INSTRUCTOR" and then have to go into this forum for something as simple as that. Hmmmmmmmmmmmm
Just for future reference, The green button is usaully "ON" and the big red one is the "E STOP" (Probobly need that one the most)

Bluesman
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-06-2008, 02:20 PM
holbieone's Avatar  
Join Date: Feb 2007
Location: usa
Posts: 523
holbieone is on a distinguished road

Originally Posted by Bluesman View Post
Not Rude Psycho, But an excelent question. I was asking the same one to myself. How in the world do you get a job as an "INSTRUCTOR" and then have to go into this forum for something as simple as that. Hmmmmmmmmmmmm
Just for future reference, The green button is usaully "ON" and the big red one is the "E STOP" (Probobly need that one the most)

Bluesman
at least he knows what he doesn't know

he may have put the horse in front of the cart but at least he's trying ,someone has to

you can't knock someone for trying
Reply With Quote

  #12  
Old 02-06-2008, 02:48 PM
*Registered User*
 
Join Date: Nov 2005
Location: USA
Posts: 274
Bluesman is on a distinguished road

Originally Posted by holbieone View Post
at least he knows what he doesn't know

he may have put the horse in front of the cart but at least he's trying ,someone has to

you can't knock someone for trying

Dude, He is the instructor he should be beyound trying

Bluesman
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
Partial Bolt Hole Circle barks Okuma 8 11-25-2009 02:41 AM
macro bolt circle jdsmith0524 G-Code Programing 3 05-16-2007 07:09 PM
I Need Help G Coding A Bolt Circle capitalv G-Code Programing 14 02-25-2007 03:41 PM
bolt hole circle sanddrag Employment Opportunity 5 01-23-2007 06:52 AM




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