586,103 active members*
3,822 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2008
    Posts
    1

    Cross hole drilling on sl30

    Hello to everyone.
    Just started with new company, they manually programmed some c-axis drilling etc. Also new to mastercamx. Not much experience with lathes.
    Should this program be close to working (don't want it on machine yet.)
    Any input would be appriciated.
    thanks-harry.


    G20
    (TOOL - 7 OFFSET - 0)
    (7/32 DRILL)
    G28 U0. W0.
    G50 X10. Z10.
    G0 T0700
    M23
    G0 X9.5 Z-2.3
    C90.
    G97 S1222 M51
    G81 X.4 R4.5 F4.11
    C30.
    C-30.
    C-90.
    C-150.
    C-210.
    G80
    G28 U0. W0. H0. M55
    T0700
    M30

  2. #2
    Join Date
    Sep 2006
    Posts
    43
    No.

  3. #3
    Join Date
    Oct 2007
    Posts
    9
    Harry,
    Maybe I can help you out. First, lets dissect your program and see what you have ....

    G20 --- Default command. Okay to have here but not absolutely needed.
    (TOOL - 7 OFFSET - 0) --- Okay. Tool# and Offset # description
    (7/32 DRILL) --- Okay. Tool description
    G28 U0. W0. --- Don't need U0. W0. with G28
    G50 X10. Z10. --- Bad line. G50 is Spindle Speed MAX RPM Limit ie; G50 S3100
    G0 T0700 --- Bad Line.
    M23 --- bad Line. M23 is Angle Out on threading "ON"
    G0 X9.5 Z-2.3 --- Okay. Rapid move in X and Z to your start point ?
    C90. --- Bad line. Can't run C- Axis without first engaging C-Axis with M154
    G97 S1222 M51 --- BAD line. 1) DO NOT turn spindle (G97 S1222) when cross drilling & 2) M51 is Optional User M Code Set
    G81 X.4 R4.5 F4.11 --- I don't believe you can use a G81 drill cycle with the live tool
    C30. --- Okay. Rotate to 30 degrees...
    C-30. --- ??? Rotate to -30 degrees
    C-90. --- ??? Rotate to -90 degrees
    C-150. --- ??? Rotate to -150 degrees
    C-210. --- ??? Rotate to -210 degrees
    G80 --- Not sure. If G81 is usable with live tool, then okay.
    G28 U0. W0. H0. M55 --- Bad line. Don't need H0. and M55 is another Optional User M Code Set
    T0700 --- Potentially bad line. "00" after T07 cancel tool 7's offset. This can get you in BAD trouble if you're not careful.
    M30 --- Okay. Reset program and return to beginning.

    So..... we need to know a few things.
    1) What kind of material are you working with ?
    2) What is diameter of area being drilled ?
    3) How deep are you drilling ?
    4) Is hole blind or thru ?
    5) Are the holes in specific relation to any other part features ? ie; Does hole #1 start xxx degrees off from a flat that is on the part ? Or are there simply 5 (?) holes equally spaced around the part ?

    I'll keep an eye on this post for your reply or you can email me.

    Best Regards,
    Steve

  4. #4
    Join Date
    Nov 2003
    Posts
    236

    G50

    Quote Originally Posted by whiteboy View Post
    Harry,
    Maybe I can help you out. First, lets dissect your program and see what you have ....

    G20 --- Default command. Okay to have here but not absolutely needed.
    (TOOL - 7 OFFSET - 0) --- Okay. Tool# and Offset # description
    (7/32 DRILL) --- Okay. Tool description
    G28 U0. W0. --- Don't need U0. W0. with G28
    G50 X10. Z10. --- Bad line. G50 is Spindle Speed MAX RPM Limit ie; G50 S3100
    G0 T0700 --- Bad Line.
    M23 --- bad Line. M23 is Angle Out on threading "ON"
    G0 X9.5 Z-2.3 --- Okay. Rapid move in X and Z to your start point ?
    C90. --- Bad line. Can't run C- Axis without first engaging C-Axis with M154
    G97 S1222 M51 --- BAD line. 1) DO NOT turn spindle (G97 S1222) when cross drilling & 2) M51 is Optional User M Code Set
    G81 X.4 R4.5 F4.11 --- I don't believe you can use a G81 drill cycle with the live tool
    C30. --- Okay. Rotate to 30 degrees...
    C-30. --- ??? Rotate to -30 degrees
    C-90. --- ??? Rotate to -90 degrees
    C-150. --- ??? Rotate to -150 degrees
    C-210. --- ??? Rotate to -210 degrees
    G80 --- Not sure. If G81 is usable with live tool, then okay.
    G28 U0. W0. H0. M55 --- Bad line. Don't need H0. and M55 is another Optional User M Code Set
    T0700 --- Potentially bad line. "00" after T07 cancel tool 7's offset. This can get you in BAD trouble if you're not careful.
    M30 --- Okay. Reset program and return to beginning.

    So..... we need to know a few things.
    1) What kind of material are you working with ?
    2) What is diameter of area being drilled ?
    3) How deep are you drilling ?
    4) Is hole blind or thru ?
    5) Are the holes in specific relation to any other part features ? ie; Does hole #1 start xxx degrees off from a flat that is on the part ? Or are there simply 5 (?) holes equally spaced around the part ?

    I'll keep an eye on this post for your reply or you can email me.

    Best Regards,
    Steve

    G50 is also a command to set your coordinates

    I would recommend looking at the examples in the manual.

  5. #5
    Join Date
    Oct 2007
    Posts
    9
    Haas_Apps,

    I stand corrected.... My only defense is that 1) I have never had need to use G50 for anything other than spindle speed clamping 2) When I was replying to the original post, I referred to my copy of Haas' Machinists CNC Reference Guide for G50 and M23 and it says only that G50 is Spindle Speed Maximum Rpm Limit, and nothing about work coordinate setting...

    At any rate, thanks for the info. Will download latest Operators Manual from your site and read up on G50.

Similar Threads

  1. Drilling question .25 hole is not .25? why
    By Rich05 in forum MetalWork Discussion
    Replies: 33
    Last Post: 07-13-2008, 03:00 AM
  2. Hole drilling help
    By stevehuckss396 in forum MetalWork Discussion
    Replies: 23
    Last Post: 01-27-2008, 08:15 AM
  3. Drilling a .010 hole
    By CoolhandLuke in forum Uncategorised MetalWorking Machines
    Replies: 7
    Last Post: 03-26-2007, 04:44 AM
  4. Drilling a hole in a 3D model
    By mayhugh1 in forum SprutCAM
    Replies: 5
    Last Post: 10-25-2006, 05:51 PM
  5. Deep hole drilling on OKK
    By eddie in forum G-Code Programing
    Replies: 1
    Last Post: 09-22-2005, 12:55 AM

Posting Permissions

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