Editing G-Code

The built-in G-code editor lets you change a program on the machine: search and replace, jump to a line, record coordinates, and resume machining from the cursor line.

Applies to
MASSO G3 and MASSO G3 Touch
Software
5.0 or later (Coordinate Record: 5.13 or later)
Shortcut
Ctrl + E on F2

Open the editor

From the F6 screen
Load the G-code file, then press Edit Edit button on F6.
From the F2 screen
Press F2, then Ctrl + E to open the Edit File window.
G-code editor screen
CAUTION
Save your changes before pressing Go to Line, Resume Machining from Line or Exit. Unsaved changes are lost.

Search, replace and go to line

ControlFunction
Search For boxSearch For: text to find. Also used with Replace.
Previous button Next buttonPrevious / Next: find the previous or next occurrence.
Replace With boxReplace With: replacement text.
Replace button Replace All buttonReplace the selected occurrence, or Replace All matches in the file.
Line number box Go to Line buttonGo to Line: move the cursor to a file line number. This doesn't find G-code N numbers; use Search For for those.

Resume machining from a line

Resume Machining from Line button exits the editor and opens Jump to Line with Start from Line already set to the cursor line.

1
Check that the displayed coordinates are correct.
2
Press Run to continue machining.

Other editor buttons

ButtonFunction
Page Up buttonMoves up one page.
Page Down buttonMoves down one page.
Insert Line buttonInserts a blank line above the selected line. A line is not split if the cursor is in the middle of it.
Delete Line buttonDeletes the cursor line.
Save buttonSaves all changes.
Exit buttonExits and reloads the file. Unsaved changes are discarded and the original file is loaded.

Cursor keys

Tab and Enter both move the cursor to the next line.
Tab keyEnter key

Coordinate Record

Available from software 5.13. Record button captures the current X, Y, Z, A and B work coordinates and inserts them into the selected line.

  • Slaved axes aren't recorded.
  • The line flashes briefly, and the coordinates are shown on screen.

Use it to build a program by jogging to positions, recording them, and adding commands such as G0, G1, M3 and M6 by hand.

Recording coordinates into the G-code editor