How to use Replace in G-CODE

Replaces commands in a G-code file with other commands, or removes them. Write one replacement per line as old=new; leave the right side empty to remove a command.

Open the app

Settings

Basic input data

Setting What you enter Default
Upload your file required EIA, NC, CNC, TXT, GCODE file, up to 50 MB –
Replacement commands required Text, several lines –

What you get

  • Download Generated G-CODE file (.GCODE)
  • Download Generated G-CODE file (.TXT)
  • Download Generated G-CODE file (.NC)

Worked example

Source file

G21
G90
G00 X150 Y150
M1002
G01 X150 Y0
G01 X0 Y0
G01 X0 Y150
G01 X150 Y150
M08
G00 X0 Y0
M02

Replacement commands

M1002=M500
M08=

M1002 becomes M500 and M08 is removed.

Result

G21
G90
G00 X150 Y150
M500
G01 X150 Y0
G01 X0 Y0
G01 X0 Y150
G01 X150 Y150
G00 X0 Y0
M02

Open the app

Related guides

We are using cookies! (Read Policy)
Accept Essential Accept All