Hey machinists everywhere,

I have written a relative work-intense G-code a while ago and now need one of the milled pockets to move to a different position within the XY coordinates. I first tried to implement a G92 command to simply add an offset to the position, but neither my CAM (Filou) nor my CNC controller software (WinPC NC) can handle the G92 command. But I anyway would rather change the values in the G-code directly than adding an offset, because in my world this can only lead to a lot of new problems....

So what I search for is a software where I can put in a set of G-code and tell it:
1. Search for the letter X (or Y)
2. add the value "A" to the number after the letter
3. search on

So e.g. the program gets:
N1 G1 X13 Y20
N2 G1 X14 Y30

and if I choose the X axis and "A" is -2 it returns:
N1 G1 X11 Y20
N2 G1 X12 Y30

Does anybody see a solution for this?

I do something similar when I want to change the Z height of an engraving. I copy the code into Microsoft Wordpad and use the "replace" command to change the Z-height for a set of G1 commands.

Attachment 451298

But this only works because all Z values are identical. I would like to find a similar primitive-but-fast solution for a large number of commands with changing values after X or Y.

thanks in advance from Germany
Leotse