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

Thread: Help needed with G-Code

  1. #1
    Registered
    Join Date
    Jun 2006
    Location
    Singapore
    Posts
    6
    Downloads
    0
    Uploads
    0

    Help needed with G-Code

    I have just finished building a CNC machine. Mechanically t works wvery well. I have downloaded the Mach3 demo software which is also working as it should.
    Howeve, I have a problem with G-Code files. I have drawn a template (45 mm square with four 4mm holes at each corner) with CorrelDraw ver.8 and saved as a plt file. When I load this into Mach3, the G-Code produced is dimensionally wrong!. The X and Y values are in the order of 1 or 2 units. Shouldn't it be 45 as I have drawn it?and cut I get a small movements in the X and Y axes. It isn't the machine, for when I manually enter a G-code instruction it works fine. For example, if I enter "G0 X50" the X axis will move 50mm.

    Can someone throw some light on this matter. I have absolutely no knowledge of G-Code programming. Thanking you all in advance

    Jock


  2. #2
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,289
    Downloads
    0
    Uploads
    0
    Is there an option on the import for metric units? If so, try turning it off (or on) and see if that helps
    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)


  3. #3
    Registered
    Join Date
    Apr 2003
    Location
    USA ofallon, Mo
    Posts
    348
    Downloads
    0
    Uploads
    0
    Try using a (DXF) File


  4. #4
    Banned
    Join Date
    Mar 2006
    Location
    Boston
    Posts
    1,625
    Downloads
    0
    Uploads
    0
    is there an option on scale that maybe turned on?


  • #5
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3,665
    Downloads
    0
    Uploads
    0
    Post your g-code file here


  • #6
    Registered
    Join Date
    Apr 2003
    Location
    USA ofallon, Mo
    Posts
    348
    Downloads
    0
    Uploads
    0
    Try this file if it dont work Mach3 is set up wrong. if it works CorrelDraw plt file is wrong.
    Attached Files Attached Files


  • #7
    Registered
    Join Date
    Jun 2006
    Location
    Singapore
    Posts
    6
    Downloads
    0
    Uploads
    0
    Thank you to everyone for coming to my rescue. I have imported Motomitch's file and it work as it should. I noticed that G-Code genrated from his file gave a X and Y value of 45. With my file it gave a value of 2.2 for a value that should be 45. The fact that Motomitch's file generated the correct value must mean that the scaling was not on.

    Thinking that maybe the dfx file I generated was incorrect, I used DeskEngrave to create three letters (ABC) at 72 pts, which translate to 25.4mm in height. Imported it in Mach3 and yet again the G-Code was wrong! So where did I go wrong ?

    Thanks again to all the help


  • #8
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,289
    Downloads
    0
    Uploads
    0
    Post the .dxf and we can see what size the .dxf is.
    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)


  • #9
    Registered
    Join Date
    Jun 2006
    Location
    Singapore
    Posts
    6
    Downloads
    0
    Uploads
    0
    Sorry Switcher, I was going to say in my earlier reply that I am not able to sendng to the G-Code file. In a hurry to response to everyone's help I forget to mention it.

    Being wrong I deleted it, if you think that the G-Code may throw some light I would be happy to re-generate it and sent it on.

    Thanks
    Jock


  • #10
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3,665
    Downloads
    0
    Uploads
    0
    Go ahead and post your g-code , couldn't hurt anything, we'll have a look at it.


  • #11
    Registered
    Join Date
    Jun 2006
    Location
    Singapore
    Posts
    6
    Downloads
    0
    Uploads
    0
    Here are the files for my 45mm square. Thanks for the help

    Jock
    Attached Files Attached Files


  • #12
    Registered
    Join Date
    Jun 2006
    Location
    Singapore
    Posts
    6
    Downloads
    0
    Uploads
    0
    Don't know why G-Code didn't get sent. Here it is-
    Switcher, if you look at it you will find the X and Y values are way out.
    I imported the dfx file into Mach3 and generated the code. Juat as I did with Motomitch's dfx, except his came out right.
    Attached Files Attached Files


  • Page 1 of 2 12 LastLast

    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.