587,424 active members*
3,480 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 38
  1. #1
    Join Date
    Jan 2008
    Posts
    3

    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!)

  2. #2
    Join Date
    Feb 2007
    Posts
    464
    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

  3. #3
    Join Date
    Oct 2003
    Posts
    263
    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

  4. #4
    Join Date
    Feb 2007
    Posts
    664
    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

  5. #5
    Join Date
    Feb 2007
    Posts
    464
    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

  6. #6
    Join Date
    Mar 2005
    Posts
    988
    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....

  7. #7
    Join Date
    May 2007
    Posts
    781
    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

  8. #8
    Join Date
    Nov 2006
    Posts
    174

    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 ;-)

  9. #9
    Join Date
    Feb 2005
    Posts
    78
    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

  10. #10
    Join Date
    Nov 2005
    Posts
    274
    Quote 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

  11. #11
    Join Date
    Feb 2007
    Posts
    664
    Quote 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

  12. #12
    Join Date
    Nov 2005
    Posts
    274
    Quote 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

  13. #13
    Join Date
    Feb 2007
    Posts
    664
    Quote Originally Posted by Bluesman View Post
    Dude, He is the instructor he should be beyound trying

    Bluesman
    every one has to start some where!

    it is people like you that make others stop trying, Dude

  14. #14
    Join Date
    Feb 2007
    Posts
    464
    Quote Originally Posted by holbieone View Post
    every one has to start some where!

    it is people like you that make others stop trying, Dude
    You start by learning CNC machining/programming and when you get really good you might end up as an instructor,if you're lucky.
    To start as an instructor without the proper skills,well, you are in over your head if you ask me.
    Stefan Vendin

  15. #15
    Join Date
    Feb 2007
    Posts
    664
    this is starting to be like beating a dead horse

  16. #16
    Join Date
    Feb 2007
    Posts
    664
    who would you like to learn from?

    a person who is willing to admit the don't know the answer and has the altitude of "let's go find out"

    or someone who claims to know it all and makes you feel like an idiot because you don't know or under stand

  17. #17
    Join Date
    Feb 2007
    Posts
    464
    I would like to learn from someone who knows exactly what he's doing without treating me like a fool.
    I agree with you, the "let's go and find out" attitude is good.
    BUT, a teacher should know what he's doing.
    If you have a question, don't you want an answer?
    If the teacher can't answer your question ,how are you going to learn??
    Stefan Vendin

  18. #18
    Join Date
    Aug 2007
    Posts
    135
    Sorry, but I agree with Mitsu Seiki.

    I've been in a couple machining courses where the instructor did not have production experience in machining, and the classes weren't worth much. Great guys, but they just couldn't teach you anything worthwhile. A good attitude just doesn't cut it. The ones I've been in where the guy knew his stuff and had been doing it for years was worth a lot more than what I paid. Large contrast.

    The guy who has to rely on a book rather than 10+ years of CNC or manual machining for answers does strange things to students. He'll say one thing, and mean another, and not catch it when the students do what they're told. They don't have that same "reflexive fix" to the process that allows them to step in and make everything okay when a student is just having a hard time getting things done.

    And perhaps most importantly, a tenured machinist knows when things just ain't right, and knows where to look to check. I've seen a "well intentioned person who knew CNC" try to teach a class, and crashed the machine six times on the same part. By the same token, a good machinist can run an old, worn out CNC without mastercam, without graphical backplot, without any of these other fancy features professors seem to love, and get a damn good part out of it on the first shot. That's what is important in teaching students how to run a machine - right the first time. Teaching someone else is no time to be learning it yourself. You can gain new insights, methods, and understanding, but it isn't the time to be a student of the basics yourself.

    And until someone goes out and just does it, either seriously at home (owning commercial VMCs and turning centers) or professionally, I don't think they have any business teaching a class.

    This guy hasn't said what his prior experience is, so I'm willing to give him the benefit of the doubt.
    The Machinist's Chatroom
    http://machinechat.freehostia.com/

  19. #19
    Join Date
    Jul 2005
    Posts
    12177
    Quote Originally Posted by toastydeath View Post
    ........This guy hasn't said what his prior experience is, so I'm willing to give him the benefit of the doubt.
    I think you are way too generous; the first thing he does after getting a 'professional job' as an instructor is ask questions on how to do what he is supposed to instruct. It makes you wonder about the outfit that hired him.
    An open mind is a virtue...so long as all the common sense has not leaked out.

  20. #20
    Join Date
    Nov 2005
    Posts
    274
    Quote Originally Posted by holbieone View Post
    every one has to start some where!

    it is people like you that make others stop trying, Dude
    No acually DUDE it is folks like me that are always bailing folks like him out. I make 4 grand a year less that the other Sr. ME's here at work. Why?? Because I got no degree. But yet these ussless Degreed pukes constanty come to me to fix tere crap. WHY?? Becuase they cant. So DUDE maybe some folks SHOULD just stop trying

    Bluesman

Page 1 of 2 12

Similar Threads

  1. Partial Bolt Hole Circle
    By barks in forum Okuma
    Replies: 8
    Last Post: 11-25-2009, 09:41 AM
  2. macro bolt circle
    By jdsmith0524 in forum G-Code Programing
    Replies: 3
    Last Post: 05-17-2007, 01:09 AM
  3. I Need Help G Coding A Bolt Circle
    By capitalv in forum G-Code Programing
    Replies: 14
    Last Post: 02-25-2007, 10:41 PM
  4. bolt hole circle
    By sanddrag in forum Employment Opportunity
    Replies: 5
    Last Post: 01-23-2007, 01:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •