504,473 active members
2,884 visitors online
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > OpenSource Software > G-Code Ripper - Scale, Rotate and Split G-code
Page 1 of 8 123
Results 1 to 12 of 94
  1. #1
    Registered
    Join Date
    Dec 2010
    Posts
    218

    G-Code Ripper - Scale, Rotate and Split G-code

    I have posted a new program one my web page called G-Code Ripper that can read an existing g-code file and scale, rotate and split the g-code as needed.

    This program takes an existing g-code file and splits it into two halves. Linear and arc movements are broken into smaller lines and arcs on either side of the parting line. The attached pictures show a design that I cut using the program. I used the splitting and rotation features to allow my small CNC machine to cut a larger image. The smaller eagle in the last picture is the largest eagle I could cut on my machine without splitting the image.

    In addition to the basics the program understands the following g-code features:
    • Reads "Absolute" and "incremental" coordinates
    • Evaluates expressions (i.e. [2*3])
    • Understands parameters (i.e. #1,#2 and #)
    • Understands and interprets YZ and ZX arcs (converted to linear motions for compatibility with splitting and rotation)

    Attachment 196010Attachment 195996Attachment 196004

    Scorch

  2. #2
    Registered
    Join Date
    Dec 2007
    Posts
    362
    Good to see some open source CNC stuff I can use on Linux.
    As soon as I re-assemble my CNC router (too cold in the shed) , I'll try these out.
    Regards
    Geoff

  3. #3
    Registered
    Join Date
    Jul 2009
    Posts
    417
    Very cool Scorch!

    I wish I could code as easily as you seem to be able to!
    Sven
    http://www.puresven.com/?q=building-cnc-router

  4. #4
    Registered
    Join Date
    Jul 2008
    Posts
    340
    FYI, neither of the download links for the zipped executables work. I'm getting 404, page not found.


    Sent from my Xoom using Tapatalk 4
    CRP-4848 CNC Router, CNC G0463 (Sieg X3) Mill, 9"x20" HF CNC Lathe (current project)

  5. #5
    Registered
    Join Date
    Dec 2010
    Posts
    218
    Thanks, the links are fixed now.

    Scorch
    Scorch
    www.scorchworks.com

  6. #6
    Registered
    Join Date
    Jul 2008
    Posts
    340
    Quote Originally Posted by scorch View Post
    Thanks, the links are fixed now.

    Scorch
    Thank you. Links confirmed working. I was able to download the window package.

    Sent from my Xoom using Tapatalk 4
    CRP-4848 CNC Router, CNC G0463 (Sieg X3) Mill, 9"x20" HF CNC Lathe (current project)

  7. #7
    Registered
    Join Date
    Dec 2010
    Posts
    218
    I uploaded a new version of G-Code Ripper based on comments in another thread.

    - G-code Ripper will now ignore line numbers (previously it aborted reading on N codes)
    - Added a option for scaling the feed rate.

    Version 0.02 is available here: G-Code Ripper


    When I have time I think I will add the following features:
    - Option to set the output precision (number of decimal places)
    - Option to include line numbers in the output (N codes)
    - Option to lock the scaling of Z, XY and Feed so you only need to enter the scale once if they are all the same
    - Only output feed rate and axis positions when they change. (Reduces the output file size)

    Scorch

  8. #8
    Registered
    Join Date
    Jan 2011
    Posts
    40
    Quote Originally Posted by scorch View Post
    I uploaded a new version of G-Code Ripper based on comments in another thread.

    - G-code Ripper will now ignore line numbers (previously it aborted reading on N codes)
    - Added a option for scaling the feed rate.

    Version 0.02 is available here: G-Code Ripper


    When I have time I think I will add the following features:
    - Option to set the output precision (number of decimal places)
    - Option to include line numbers in the output (N codes)
    - Option to lock the scaling of Z, XY and Feed so you only need to enter the scale once if they are all the same
    - Only output feed rate and axis positions when they change. (Reduces the output file size)

    Scorch
    Thanks Scortch .. posting here as requested. As it turns out, scaling would not be required, but for the fact that this New machine, with an advertised Y axis of 400mm (15.748"), is actually only 379.8mm (14.953"). A quarter inch end mill would have no problem cutting a 15" circle with +/- 7.625 on the Y axis if this machine was built as advertised. I appreciate your efforts .. I was about to just tweak the steps per inch down from it's normal 10,160 on the X and Y steppers, but meanwhile this most serious deficit had come to light. So buyer beware .. it's over 20mm short on the Y axis from that which is advertised. Cheers!

    CNC X6-1500GT ROUTER ENGRAVER DRILLING AND MILLING MACHINE - carving-cnc.com

  9. #9
    Registered
    Join Date
    Dec 2010
    Posts
    218

    G-Code Wrapping now available in G-Code Ripper

    G-Code Ripper version 0.03 has been posted to the G-Code Ripper Homepage. The new version has more plotting options including more isometric view angles. The big addition in this version is the ability to map g-code from the X or Y axis to a rotary axis A or B. This functionality is very similar to CNCWrapper.

    G-Code Ripper: G-Code Wrapping Features
    -Graphical preview of the resulting g-code.
    -Automatically maps g-code arcs to linear movements prior to conversion to rotary moves.
    -Options for scaling feed rates to make them compatible with the rotary movements.
    -Interpret g-code variables and equations.
    -G-code Rippers basic features can also be used to scale and rotate the g-code before wrapping the code for the rotary axis.
    Scorch
    www.scorchworks.com

  10. #10
    Registered
    Join Date
    Jun 2012
    Posts
    817
    Hey Scorch, I needed a very simple file wrapped, just a tube with three slots cut into it. I found out that the other popular program is $25, but I stumbled across yours for free. It worked beautifully. Kudos my friend, and thank you.

  11. #11
    Registered
    Join Date
    Dec 2010
    Posts
    218

    Re: G-Code Ripper - Scale, Rotate and Split G-code

    I just released a new version of G-Code Ripper (V0.6). I added another option to add probing to the G-Code file. Using the "Auto Probe" function you can load a g-code file then G-Code Ripper will define a grid of probe points. Then G-Code Ripper will write a new g-code file with added code for performing probe operation on the stock material and then adjust the tool paths to follow the stock material surface profile. This is great for adding designs to curved surfaces.

    Get the new version here G-Code Ripper

    If you think you need an expensive or complex probe for this to work, think again. I put some links and a video in a BLOG post to help explain the minimum requirements and concept.
    Scorch
    www.scorchworks.com

  12. #12
    Registered
    Join Date
    Apr 2004
    Posts
    717

    G-Code Ripper - Scale, Rotate and Split G-code

    Software works great!!

    Instead of building a touch probe, I bought a Mitutoyo Touch Signal Inspection Probe model 192-001 on eBay for $7. I cut off the original wire harness and soldered a wire to the circuit board that connects to the internal touch probe switch. The wire then connects to the mach3 probe input pin.

    Here is the setup I used to test cut a circle on a slanted piece of wood.

    Attachment 245656
    Attachment 245658
    Click image for larger version. 

Name:	ImageUploadedByTapatalk1408126788.688601.jpg 
Views:	4 
Size:	215.2 KB 
ID:	245660

    Thanks Scorchworks!!

Page 1 of 8 123

Similar Threads

  1. Replies: 50
    Last Post: 10-05-2014, 12:45 AM
  2. corel.hpgl > sheetcam.tap > pronterface.g-code > slic3r.g.code> ramps 1.4 > H-BOT
    By thesignworks in forum Uncategorised CAM Discussion
    Replies: 0
    Last Post: 05-25-2014, 02:11 PM
  3. Split G-Code
    By DavidJHolmes in forum Uncategorised CAM Discussion
    Replies: 5
    Last Post: 04-07-2014, 02:33 PM
  4. Coordinates change and scale when G-code is loaded
    By frare bear in forum DIY CNC Router Table Machines
    Replies: 10
    Last Post: 10-04-2013, 01:10 AM
  5. Cut3d g-code changing "scale" in mach3?
    By LaGrasta in forum Vectric
    Replies: 2
    Last Post: 10-08-2012, 01:10 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
  •