Page 1 of 2 12 LastLast
Results 1 to 12 of 20

Thread: How would I code a surface cut radiused in the y-Z plane around an x axis centerline?

  1. #1
    Registered
    Join Date
    Jul 2006
    Location
    US
    Posts
    24
    Downloads
    0
    Uploads
    0

    How would I code a surface cut radiused in the y-Z plane around an x axis centerline?

    I am new to G-code programming, and simply do hand coding presently. I have designed this little part, for which I have attached a small .PDF of a 3D model. I have been able to code all of the cuts but a couple, for two areas of the model. these are outside 90 degrees of arc curved surfaces running parallel to, and concentrically about a centerline bore.

    I have not found any code samples of this type of cut, and could use a jump-start on an approach to the problem. (G2/G3 G18/19 I'm guessing!? - I'm having touble conceptualizing how to handle this.) I hope that between my explanation and the attached illustration, the problem is understandable.

    Thanks for any help offered.

    Regards,

    Roger
    Attached Thumbnails Attached Thumbnails How would I code a surface cut radiused in the y-Z plane around an x axis centerline?-motor_spindle_mount.pdf  


  2. #2
    Registered
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    11,960
    Downloads
    0
    Uploads
    0
    I tried looking at your pdf but it did not open correctly. Can you convert the picture to a jpg?
    An open mind is a virtue...so long as all the common sense has not leaked out.


  3. #3
    Registered
    Join Date
    Jul 2006
    Location
    US
    Posts
    24
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Geof View Post
    I tried looking at your pdf but it did not open correctly. Can you convert the picture to a jpg?
    Geof, Here it is in .JPG. Thanks for looking.

    Roger
    Attached Thumbnails Attached Thumbnails How would I code a surface cut radiused in the y-Z plane around an x axis centerline?-motor_spindle_mount.jpg  


  4. #4
    Registered
    Join Date
    Nov 2004
    Location
    USA
    Posts
    448
    Downloads
    0
    Uploads
    0
    From my understanding, once the G17 mode is in effect, G2 and G3 create circular interpolation in the xy plane. G18 and G19 select the Y-Z and X-Z planes, respectively. Therefore, once your machine is placed into G18, a G2 or G3 move will react appropriately to your needs.


  • #5
    Registered
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    1,137
    Downloads
    0
    Uploads
    0
    When G18 and G19 are used what is the procedure to handle the Tool length compensation?
    I tried using G18/19 on my 3axis VMCentre and the tool would move in the relevant perpendicular axis the tool length compensation distance.
    ZX Plane = Y axis. YZ Plane = X axis.
    The only way I could see how to stop this movement was to enter zero as the tool compensation length.

    Sorry to high-jack your thread but I considered this relevant.


  • #6
    Registered
    Join Date
    Apr 2006
    Location
    usa
    Posts
    130
    Downloads
    0
    Uploads
    0
    We program a right angle head on our Haas EC-1600. Tool length and tool radius comp do not work. G2 and G3 work with G18 (around 'Y' axis) or G19 (around 'X' axis) but you have to include the tool radius when you program any movements straight or arc. None of the canned cycles work with G18 or G19 mode. We use G10 to set our work Zero. If you have Cad/Cam it should be able to generate the code with out tool L/R comp.
    Good luck.


  • #7
    Registered
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    11,960
    Downloads
    0
    Uploads
    0
    That is an awkward shape to generate without using CAM but here is a way using G18 and circular interpolation.

    You will need a 'bullnose or bull' endmill which has a radius on the corner of the cutting edge.

    I have done a simple sketch showing the profile of the part. Machine the part so it has a square corner where you want the radiused profile. The bull mill leaves a small radius along the root of the clamping flanges which you want anyway because a sharp square corner here is a terrible stress raiser; it would almost certainly crack at this point with a sharp corner.

    The profile is done by starting at the top as shown with the red tool and following the path given by the G18 G02 Y Z and the Y and Z coordinates are the tool position at the bottom of the arc.

    This toolpath cutters a circular groove the radius of the cutter so now you go back up to the starting point and move along maybe 0.005" then do the G02 move again. Repeat this for the full length and you have your profile.

    You cannot avoid generating a scalloped surface and if you used CAM the same applies. You just control the depth of the scallops by the amount you step along at each pass.

    I would write the full code for all the repeat passes by having the G18 G02 move in a subroutine and have the 0.005" stepover an incremental move before each call to the subroutine. All the coordinates have to taken into account both the tool radius and corner radius because tool compensation often is not available for G18 moves.

    Like I said above awkward...and tedious.
    Attached Thumbnails Attached Thumbnails How would I code a surface cut radiused in the y-Z plane around an x axis centerline?-rretro.jpg  
    An open mind is a virtue...so long as all the common sense has not leaked out.


  • #8
    Registered
    Join Date
    Jul 2006
    Location
    US
    Posts
    24
    Downloads
    0
    Uploads
    0
    Thanks for the replies, all...

    spoiledbrat,
    That helps a little,

    Kiwi,
    I don't have enough understanding of this stuff to make an intelligent comment.

    JWK42,
    trying to get my brain around your right angle head just gives me a headache!
    and I don't have CAM, so I'm stuck with hand coding at this point.

    Geof,
    I think I got it... I sort of had this idea, but was getting confused with how to structure it. This gives me something more concrete to work with. I'll get into compensation etc. as I explore the results of my coding...

    Again thanks all and Regards,

    Roger


  • #9
    Registered
    Join Date
    Apr 2006
    Location
    usa
    Posts
    130
    Downloads
    0
    Uploads
    0
    Roger
    A right angle head turns a horizontal machine center in to a vertical machine center with a 60" X 40" envelope. We only have a few parts that we do with this configuration. Can't justify a 60" vertical.
    Attached Thumbnails Attached Thumbnails How would I code a surface cut radiused in the y-Z plane around an x axis centerline?-monster_head_023.jpg  


  • #10
    Registered
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    1,137
    Downloads
    0
    Uploads
    0
    JWK42
    Does a horizontal mill use 'Z' as the vertical or horizontal axis?


  • #11
    Registered
    Join Date
    Apr 2006
    Location
    usa
    Posts
    130
    Downloads
    0
    Uploads
    0
    Kiwi
    The "Z" is horizontal. In the picture the end mill is along the "Y" axis. I will attach 2 more pics.
    Attached Thumbnails Attached Thumbnails How would I code a surface cut radiused in the y-Z plane around an x axis centerline?-monster_head_022.jpg   How would I code a surface cut radiused in the y-Z plane around an x axis centerline?-monster_head_026.jpg  


  • #12
    Registered
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    1,137
    Downloads
    0
    Uploads
    0
    JWK42
    Looks like as standard that the machine spindle axis is considered as Z.

    I raised the tool comp issue as I thought Roder would need to consider this while using G18/19.

    I now believe my controller parameters are not set correctly as tool length comp is applied on the perpendicular axis(G18 ZX Plane = Y axis. G19 YZ Plane = X axis) when this should only be applied on the Z axis.
    Last edited by Kiwi; 09-17-2007 at 06:42 PM. Reason: spelling


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Free (G-Code Program) Surface Router Table
      By Switcher in forum Visual Basic
      Replies: 22
      Last Post: 08-16-2009, 04:00 PM
    2. mazak machine centerline
      By Bob Archibald in forum Mazak, Mitsubishi, Mazatrol
      Replies: 2
      Last Post: 10-09-2007, 03:14 PM
    3. How to generate g-code to mill flat surface
      By pminmo in forum G-Code Programing
      Replies: 14
      Last Post: 09-10-2006, 01:33 PM
    4. construction plane and tool plane
      By nervis1 in forum Mastercam
      Replies: 9
      Last Post: 11-05-2004, 12:53 AM
    5. cycles initial plane/retract plane
      By HuFlungDung in forum OneCNC
      Replies: 25
      Last Post: 06-26-2003, 08:02 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.