Results 1 to 6 of 6

Thread: code help

  1. #1
    Registered
    Join Date
    Apr 2006
    Location
    usa
    Posts
    1
    Downloads
    0
    Uploads
    0

    code help

    Here is an mspaint diagram of a simple CNC project I'm working on.

    http://img227.imageshack.us/img227/7741/untitled6ez.gif

    I want to create a txt file with the proper G-code to punch out four .250 in holes through the workpiece. Tool#1 is a .250 in diameter twist drill. Never done something like this before, I've found a few documents on the web that offer help, but I'm still having a hard time putting everything together. Could you guys point me in the right direction as to where to start?

    (ex: how do I define the origin at (0,0)? How do I move the machine part to the point (2, 1.5) and punch out a hole at that location? How do I tell the machine to bring the part up .1 in and move to the next point on the workpiece?)

    Thanks for your help!


  2. #2
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3665
    Downloads
    0
    Uploads
    0
    Run at your own risk !
    Attached Thumbnails Attached Thumbnails code help-cnc_sample.jpg  
    Attached Files Attached Files
    Last edited by Switcher; 04-04-2006 at 10:32 AM.
    Free DXF Files - myDXF.blogspot.com


  3. #3
    Banned
    Join Date
    Mar 2006
    Location
    Boston
    Posts
    1625
    Downloads
    0
    Uploads
    0
    if you machine will take a G81 that a comand for drill cycle G83 is the comand for a peck drill cycl sample file attach i had posted wrong file early and just got back if you go on line and do a search for G and M code you'll find a lot of info the G80 at the end cancel the drill cycle R=rapid plane Q=peck amount
    Last edited by lakeside; 04-03-2006 at 09:46 PM.


  4. #4
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22211
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Switcher
    Run at your own risk !
    Change all the Z0.0 to Z0.1 to avoid dragging the tip of the tool across your part.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #5
    Registered
    Join Date
    Mar 2006
    Location
    USA
    Posts
    41
    Downloads
    0
    Uploads
    0
    I dont know what kind of machine your running but this would be the codes for our machines.

    T1M6
    G00G90G54X2.Y1.5M03S1500
    G43H1Z.1M08
    G81Z-1.5R.1F5.
    Y2.5
    X6.
    Y1.5
    G80
    G28G91Y0Z0
    M30

    Of course the feeds and speeds need to match the material your cutting.


  • #6
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3665
    Downloads
    0
    Uploads
    0
    Change all the Z0.0 to Z0.1 to avoid dragging the tip of the tool across your part.
    Thanks, ger21

    Text file updated (in post #2), hows "Z+0.5"
    Free DXF Files - myDXF.blogspot.com


  • 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.