Page 2 of 3 FirstFirst 123 LastLast
Results 13 to 24 of 27

Thread: Optimizer for PCB-Gcode

  1. #13
    Registered
    Join Date
    Dec 2004
    Location
    Memphis, TN
    Posts
    1,126
    Downloads
    0
    Uploads
    0
    I have uploaded the command line version to a file hosting site.

    • Updated: 7/27/2008 10:29AM -5GMT | Added kudos to Daniel the original coder aka daKiller
    • Updated: 7/26/2008 10:29pM -5GMT | Tweaked the code a bit based on what I learned from the windows code. Source file cleaned up.

    You can get the source and executable here. All future update will be at this file host site. Look for new links as old versions may be deleted.

    Jay

    PS: PCB-Gcode is now located at www.pcbgcode.org
    Last edited by Jay C; 07-27-2008 at 12:15 PM.


  2. #14
    Registered
    Join Date
    Dec 2004
    Location
    Memphis, TN
    Posts
    1,126
    Downloads
    0
    Uploads
    0
    Added code to allow for input files with no spacing between G code and coordinate pair.

    Not sure how I want to approach the drill files yet so that is not included in this release.

    Jay


  3. #15
    Registered
    Join Date
    Apr 2007
    Location
    USA
    Posts
    59
    Downloads
    0
    Uploads
    0
    Hi Jay C

    Could be something I am doing wrong but after optimizing a board nc file it would no longer show up graphically in NCPLOT. The file loads but nothing shows in the window (traces). I am running the windows version and have not tried the command line version.

    Richard


  4. #16
    Registered
    Join Date
    Dec 2004
    Location
    Memphis, TN
    Posts
    1,126
    Downloads
    0
    Uploads
    0
    Richard, would you mind posting your before and after files here, or else PM me so I can give you my email address.


  • #17
    Registered
    Join Date
    Apr 2007
    Location
    USA
    Posts
    59
    Downloads
    0
    Uploads
    0
    I have attached the zip for the two files.

    Richard
    Attached Files Attached Files


  • #18
    Registered
    Join Date
    Dec 2004
    Location
    Memphis, TN
    Posts
    1,126
    Downloads
    0
    Uploads
    0
    Ok, I d/l'd NCPLot (I usually use Mach as my previewer) and can duplicate the same issue, but can't figure out what it doesn't like. Still looking. OTH, Mach and CAMBAM like it just fine so you should be good to go when you are ready to cut it.

    Now what is really strange is that if you copy and paste the test of the OPT file into NC ... it works ... hmmm

    Jay
    Last edited by Jay C; 08-09-2008 at 02:07 PM.


  • #19
    Registered
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    6
    Downloads
    0
    Uploads
    0
    I've had issues where you don't have a blank line at the end of the file it doesn't like it, I have the same problem with 'Image to G-code' viewer on my windows machine


  • #20
    Registered
    Join Date
    Dec 2004
    Location
    Memphis, TN
    Posts
    1,126
    Downloads
    0
    Uploads
    0
    That's weird too. Since the code doesn't modify the contents of the paths, it just rearranges them. However, it doest tough the header, the first path, or the last path in the file so the extra line, if it's preset, will be in the same location. I confirmed this by looking at the HEX of both files side by side.

    Jay


  • #21
    Registered
    Join Date
    Dec 2004
    Location
    Memphis, TN
    Posts
    1,126
    Downloads
    0
    Uploads
    0
    Update: Some users were experiencing "strange" behavior with the output file format in some programs. The issue was tracked to missing carriage returns. I have fixed this in release 1.1 and uploaded the code to the repository link above. This issue only affected the GUI version.

    note: This thread was meant for the command line version

    Jay


  • #22
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    1,366
    Downloads
    0
    Uploads
    0
    Jay

    I am using what I think is the latest version and am getting an error.

    Unoptimised file loads fine in Mach and NCplot but once optimised there is a carriage return that is incorrect.

    This is so in Mach and NCplot. Here is a cut and paste of the intro. See unwanted return on third line,



    ( This gcode generated by C:/Program Files/EAGLE-5.2.0/ulp/pcb-gcode.ulp )
    ( Copyright 2005 by John Johnson. See readme.txt for licensing terms. )

    ( This file generated from the board E:/My Documents/Downloads/Eagll/MYcontrolle
    r-rev2.brd )
    ( This file generated 28/08/2008 4:32:21 PM )


    Thanks for your efforts, Greg


  • #23
    Registered
    Join Date
    Dec 2004
    Location
    Memphis, TN
    Posts
    1,126
    Downloads
    0
    Uploads
    0
    Greg, can you verify if you are using the GUI or command line version. I think I know the issue, but I don't have the code at work with me and the file site I'm using is blocked by the FW so it'll be tonight before I can look at it.


  • #24
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    1,366
    Downloads
    0
    Uploads
    0
    Sorry Jay we are on different sides of the planet. Time zones and all.

    I have only used the GUI version.

    Can I say maybe more descriptive labelling on the download site would be good. I was thinking "which one do I get? what are the other files for? "

    Thanks, Greg


  • Page 2 of 3 FirstFirst 123 LastLast

    Similar Threads

    1. Cutting optimizer
      By kurt5 in forum General CAM Discussion
      Replies: 2
      Last Post: 12-07-2007, 08:00 AM
    2. New M&G code 3D Viewer, Editor, DNC Dripfeeder and optimizer software!
      By BinaryCam in forum Product and Manufacturer Announcements
      Replies: 4
      Last Post: 05-05-2007, 09:56 PM
    3. Gcode I think
      By Mr.Chips in forum DIY CNC Router Table Machines
      Replies: 2
      Last Post: 10-26-2006, 07:52 PM
    4. Replies: 0
      Last Post: 03-10-2005, 01:46 PM
    5. gcode to gcode converter
      By july_favre in forum General CAM Discussion
      Replies: 4
      Last Post: 05-24-2004, 07:51 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.