Editing G-Code

Availability

 

INFORMATION: The G-code editor is only available on MASSO G3 controllers running software version 5 or later.

 


Opening the G-Code Editor

You can open the editor using either of the following methods

 


Method 1 – From the F6 Screen

 

  1. Load the G-code file.

  2. Press the Edit button on the F6 screen.  

 


Method 2 – From the F2 Screen

 

  1. Press F2 to open the F2 – Program & MDI screen.

  2. Press CTRL + E to open the Edit File window.

     

 

 

 


Editor Screen Functions

 


Search For

The Search For function allows you to find specific text in the G-code file. It is also used together with the Replace With function.

 

  • Enter the text to search for in the Search For box.

 

  • Use the Previous button to find the previous occurrence.

 

  • Use the Next button to find the next occurrence.

 


Replace With

The Replace With function replaces text found using the Search For function.

 

  • Enter the replacement text in the Replace With box.
     

  • Use Replace to replace the currently selected occurrence.
     

  • Use Replace All to replace all matching occurrences in the file.

 


Line Number

The Line Number function allows you to jump to a specific line in the G-code file.

 

  • Enter the required line number.
     

  • Press Go to Line to move the cursor to that line.

 

This function does not search for G-code N numbers. To find N numbers, the Search For function must be used.

 

 

INFORMATION: If you have made changes to the Gcode file please save them before pressing button as any unsaved changes will be lost.

 


Resume Machining from Line

The Resume Machining from Line function exits the editor and automatically opens Jump to Line.

 

  • The current cursor line number is used automatically.

  • The Start from Line field is filled in for you.

     

To resume machining:

 

  1. Check the displayed coordinates to ensure they are correct.

  2. Press Run to continue machining.

 

 

 

INFORMATION: If you have made changes to the Gcode file please save them before pressing the button as any unsaved changes will be lost.

 


Other Editor Buttons

  • Moves up one page in the G-code file.
     

  • Moves down one page in the G-code file.
     

  • Inserts a blank line above the currently selected line. If the cursor is in the middle of a line, the line will not be split.
     

  • Deletes the line where the cursor is located.
     

  • Saves all changes made to the G-code file.
     

  • Exits the editor and reloads the G-code file. If the file is not saved, all changes will be discarded and the original file will be loaded.

 


Cursor Control

  • The Tab key moves the cursor to the next line.  
     

  • The Enter key moves the cursor to the next line.  

 


New Feature – Coordinate Record (Beta v5.101b)

 

INFORMATION: This feature is available in Beta software version 5.101b.

 

 

The button captures the current X, Y, Z, A, and B work coordinates and inserts them into the currently selected line in the G-code editor.

 

  • Slaved axes are not recorded.

  • The recorded line flashes briefly to indicate where the coordinates were added.

  • The coordinates are also displayed on screen when recorded.

     

This feature can be used to build G-code files by recording positions and manually adding commands such as G0, G1, M3, and M6.