585,748 active members*
3,668 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Is there a free tool that will scale/change offset of G-code file values?
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2012
    Posts
    83

    Is there a free tool that will scale/change offset of G-code file values?

    I've got some g-code that I need to scale the X and Y values on so I am thinking of writing a tool that (1) reads in the file, (2) allows you to specify the prefix you want to change (like X), (3) can change the offset or scale of the prefix items value, and (4) saves the file. Does anything like this exist already before I go through the trouble of writing something?

  2. #2
    Join Date
    Apr 2004
    Posts
    733

    Re: Is there a free tool that will scale/change offset of G-code file values?

    G-Code Ripper

    This may do what you need.

  3. #3
    Join Date
    Apr 2012
    Posts
    83

    Re: Is there a free tool that will scale/change offset of G-code file values?

    Thanks jfong - that does look handy. I went ahead and threw this together for anyone else you might want to use it too.

    Attachment 316244

    It can scale (multiply by a value) any parameter (X, Y, Z, I, J, etc., also scaling with a value of -1 will mirror an axis.)

    It can offset (add a value) any parameter.

    It can make the precision consistent with rounding.

    It will highlight what it changed.

    You can copy/paste directly to the text window.

    It can display the minimum, maximum, and difference (max-min).

    It has a single change undo.


    How to use it:

    It only works on one AXIS at a time! If you need to scale both the X and Y axis by 0.1, this will have to be done in two change operations, first with X, then with Y. It does support multiple letter prefixes as well, for example, I use variables like #1022=12.4 and if I put "#1022=" in the prefix box, I can change these values as well.

    Just paste some G-Code into the text box.

    Set the prefix to what you want to change.

    Set the precision you want.

    Select scale or offset.

    Set the value to the value you want.

    Click the Change button.

    Repeat until you are happy with it, then copy to clipboard and paste it into a notepad, etc.

Similar Threads

  1. Coordinates change and scale when G-code is loaded
    By frare bear in forum DIY CNC Router Table Machines
    Replies: 11
    Last Post: 08-27-2021, 03:23 AM
  2. Free G-Code Project File Downloads
    By W4MWK in forum Hobby Discussion
    Replies: 7
    Last Post: 10-21-2013, 10:42 PM
  3. Editing free g-code file????
    By fsa in forum PTC Pro/Manufacture
    Replies: 1
    Last Post: 11-01-2010, 04:35 PM
  4. Tool change and H offset?
    By Rob_N in forum Fadal
    Replies: 4
    Last Post: 10-24-2008, 04:25 AM
  5. How too Offset on tool change?
    By CROSSHATCH in forum LinuxCNC (formerly EMC2)
    Replies: 11
    Last Post: 06-03-2008, 10:38 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •