The editing of NC programs refers both to the insertion of NC functions as well as their modification. You can also edit NC programs that you previously generated with a CAM system and then transmitted to the control.
Requirements
You can edit NC programs only in the Editor operating mode and in the MDI application.
In the MDI application you edit only the NC program $mdi.h or $mdi_inch.h.
Description of function
Inserting NC functions
Inserting an NC function directly with keys or buttons
You can directly insert frequently needed NC functions, such as path functions, with keys.
As an alternative to the keys, the control offers both the screen keyboard as well as the Keyboard workspace in NC input mode.
Virtual keyboard of the control bar
| ||
|
Inserting an NC function through selection

You can select all NC functions through the Insert NC function window.
- You can navigate through the Insert NC function window as follows:
- Navigate through the tree structure manually, starting from All functions
- Use keys or buttons to narrow down the selection possibilities (e.g., CYCL DEF key opens the cycle groups)
- Ten most recently used NC functions under Last functions
- NC functions marked as favorites under Favorites
- Stored sequence of NC functions under NC sequences
- Enter a search term under Search for NC functions
Icons on the control's user interface
The control displays the results under Search result.
You can begin the search as soon as the Insert NC function window opens by entering a character.
In the areas Search result, Favorites and Last functions, the control shows the path of the NC functions.
| ||
![]() |
| |
![]() |
|
Inserting an NC function in the text editor
In the text editor, the control provides an auto-complete function when programming.
If text editor mode is active, the Klartext programming toggle switch is to the left and gray.
|
- If you press CTRL+BLANK immediately after entering a character string, the control displays a selection menu for the current syntax element.
- If you insert a space character after a completely entered syntax element and then press CTRL+BLANK, the control displays a selection menu for the subsequent syntax element.
Editing NC functions
Editing an NC function in the Klartext programming mode
By default, the control opens newly created and syntactically correct NC programs in the Klartext programming mode.
| ||
|
Editing an NC function in the Form column
If the Klartext programming mode is active, you can also use the Form column.
The Form column does not just show the syntax elements selected and used, but rather all those that are possible for the current NC function.
| ||
| ||
| ||
![]() |
|
Editing an NC function in the text editor mode
The control tries to correct syntax errors in the NC program automatically. If automatic correction is not possible, the control switches to text editor mode while editing this NC block. You must correct all errors before you can switch to Klartext programming mode.
- If text editor mode is active, the Klartext programming toggle switch is to the left and gray.
- If you are editing an NC block with syntax errors, the only way to cancel editing is to press the ESC key.
| ||
| ||
| ||
![]() |
|
- The control cannot offer solution proposals in all cases.
- The text editor mode supports all navigation possibilities of the Program workspace. But you can work more quickly in the text editor mode by using gestures or a mouse, since then you can select the information symbol directly, for example.
Notes
- The instructions include emphasized text strings (e.g., 200 DRILLING. You can use these text strings for better searching in the Insert NC function window.
- When you are editing an NC function, use the arrows to navigate left and right to the syntax elements, even within cycles. The up and down arrows search for the same syntax element in the rest of the NC program.
- If you are editing an NC block and haven't saved yet, the Undo and Redo functions affect the individual syntax elements of the NC function.
- Press the actual position capture key for the control to open the position display of the status overview. You can copy the current value of an axis into the programming dialog.
- Always write an NC program as if the tool were moving. This makes it irrelevant whether a head axis or a table axis performs the motion.
- You cannot edit an NC program in the Editor operating mode if this NC program is currently being executed in the Program Run operating mode.
- If you select an NC function in the Insert NC function window and swipe to the right, the control displays the following file functions:
- Add to or remove from favorites
- Navigate to the NC function
- In the areas Search result, Favorites and Last functions, the control shows the path of the NC functions.
- If software options are not enabled, the control shows unavailable contents in the Insert NC function window grayed out.
Searching for the same syntax elements in different NC blocks
Icons on the control's user interface
Status overview on the TNC bar
Not in the All functions area