Inserting and editing NC functions
Application
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.
Related topics
- Using the Program workspace
- Insert NC function window
Description of function
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.
Inserting NC functions
The control provides the following options to insert 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.
- Inserting an NC function by selecting it
You can select all NC functions from the Insert NC function window.
- Inserting an NC function in the text editor
In the text editor, the control provides an auto-complete function when programming.
- Tip
If text editor mode is active, the Klartext editor toggle switch is to the left and dimmed.
Editing NC functions
The control provides the following options to edit NC functions:
- Editing an NC function in the Klartext editor mode
By default, the control opens newly created and syntactically correct NC programs in the Klartext editor mode.
- Editing an NC function in the Form column
The Form column not only shows the syntax elements selected and used, but also all those that can be used for the current NC function.
- Editing an NC function in 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 editor mode.
Inserting NC functions
Inserting an NC function directly with keys or buttons
To insert frequently needed NC functions: | ||
|
Inserting an NC function by selecting it
To insert a new NC function: | ||
| ||
|
Inserting an NC function in the Text editor mode
To insert an NC function:
|
Editing NC functions
Editing an NC function in the Klartext editor mode
To edit an NC function in the Klartext editor mode:
| ||
|
Editing an NC function in the Form column
If the Klartext editor mode is active, you can also use the Form column.
To edit an NC function in the Form column:
| ||
| ||
| ||
|
Editing an NC function in the text editor mode
To edit an existing NC function in the text editor mode:
| ||
| ||
| ||
|
If you are editing an NC block with syntax errors, the only way to cancel editing is to press the ESC key.
Notes
- Edit NC programs in the Program workspace only
- 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.
Searching for the same syntax elements in different NC blocks
- 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.
- In the Klartext editor mode, you can insert line breaks within comments or structuring items.
Notes on the Text editor mode
- 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.
- In Text editor mode, you can insert line breaks anywhere in your text. If you later edit the NC functions in the Klartext editor mode, the control will remove the line breaks after saving. The line breaks will be preserved in comments and structuring items even after editing.
- When you program a cycle using the active auto-complete function, you can select the Only downwardly-compatible cycle parameters or With optional cycle parameters option.
When you select Only downwardly-compatible cycle parameters, you can add optional cycle parameters later on. For this purpose, insert a line break after the last line.