Text mode
Application
The Text mode is a possibility for programming within the Program workspace. In Text mode you create and edit NC programs using the keyboard instead of the Insert NC function window.
Related topics
- Editing text files in the Text editor workspace
- Basics and operation of the Program workspace
Description of function
If the Klartext editor toggle switch in the function bar is set to inactive, then you are programming the NC programs in Text mode. Text mode works similar to a common text editor. For example, the arrow keys don't move the cursor from one syntax element to the next, but only to the next character.
Text mode supports all navigation possibilities of the Program workspace.
If the control can't automatically correct syntax errors in the NC program, it activates Text mode.
In the Program settings window the control offers the following settings for Text mode:
- Autocomplete in text mode
- Allow syntax errors in text mode
Auto-completion in Text mode
While programming in Text mode, the control opens a selection menu with all syntax elements that you can insert at the current cursor position.
If the Autocomplete in text mode toggle switch is set to active, the control displays the selection menu upon the following actions:
- Creating a new NC block
- Entering characters
The control adapts the proposals to the entered characters.
- Pressing the SPACE key
If the toggle switch is not active, you can open the selection menu by pressing CTRL + SPACE.
You have the following options for entering the desired syntax element:
- Tap
- Click
- The right arrow key
If you used the arrow keys to choose an element from the selection menu, or if there is only one element.
Notes
- By default, the control displays only syntax elements without values when using auto-completion. If miscellaneous functions are possible, then the control displays all miscellaneous functions with numbers after the remaining possible syntax elements.
- If you are programming a cycle, the control offers the Only downwardly-compatible cycle parameters and With optional cycle parameters possibilities for auto-completion.
When you select Only downwardly-compatible cycle parameters, you can add optional cycle parameters later on. For this purpose, you enter a line break in the last line.
- If you press the right arrow key during auto-completion without clearly choosing an element, the control will close the selection menu.
- In the Text mode you can enter line breaks at any location. 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.