Program workspace

Application

The control displays the NC program in the Program workspace.

You can edit the NC program in the Editor operating mode and in the MDI application, but not in the Program Run operating mode.

Description of function

Areas of the Program workspace

AS_4_24_11_ProgrammBohrenDrilling_Gliederung_Hilfsbild_Formular_Zyklus206_Q200
Program workspace with active structure, help graphic and form

1

2

File information bar

In the file information bar the control shows the path and file name of the NC program. In the Program Run and Editor operating modes, the file information bar contains a breadcrumb navigation.

Navigation path in the Program workspace

3

Contents of the NC program

Appearance of the NC program

4

5

Help graphic of the syntax element being edited

Help graphic

6

Dialog bar

In the dialog bar the control shows additional information or instructions for the syntax element being edited.

7

Action bar

In the action bar the control shows selection possibilities for the syntax element being edited.

8

Icons in the title bar

The following icons are shown in the Program workspace in the title bar:

Icons on the control's user interface

Icon or shortcut

Function

TabStructureIcon

Open and close the Structure column

Structure column in the Program workspace

TabSearchIcon
CTRL+F

Open and close the Search column

Search column in the Program workspace

searchResultIcon

Open and close the Tool check column

Tool usage test

diff

Activate and end comparison functions

Program comparison

editForm

Open and close the Form column

Form column in the Program workspace

100%

Font size of the NC program

 
Tip

If you select the percent value, the control displays symbols for increasing and decreasing the font size.

zoom_fit

Set font size of the NC program to 100%

SettingsIcon

Open the Program settings window

Settings in the Program workspace

Appearance of the NC program

By default the control shows the syntax with black characters. The control displays the following syntax elements in color within the NC program:

Color

Syntax element

Brown

Text entries (e.g., tool name or file name)

Blue

  • Numerical values
  • Structure items and texts

Dark green

Comments

Purple

  • Variables
  • Miscellaneous functions M

Dark red

  • Definition of spindle speed
  • Definition of feed rate

Orange

Rapid traverse FMAX

Gray

  • Not to be executed M1 miscellaneous function
  • Not to be executed NC block hidden with a / character

Help graphic

When you are editing an NC block, for some NC functions the control shows a help graphic for the current syntax element. The size of the help graphic depends on the size of the Program workspace.

The control shows the help graphic at the right edge of the workspace, or at the top or bottom edge. The help graphic is positioned in the half that does not contain the cursor.

When you tap or click the help graphic, the control maximizes the help graphic. If the Help workspace is open, the control displays the help graphic there.

Help workspace

Settings in the Program workspace

In the Program settings window you can influence contents shown in the Program workspace as well as the control's behavior there. The selected settings are modally effective.

The settings available in the Program settings window depend on the operating mode or application. The Program settings window consists of the following areas:

Area

Editor operating mode

Program Run operating mode

MDI application

Structure

­✓

­✓

­✓

Editing

­✓

-

­✓

Klartext

­✓

-

­✓

Tables

-

­✓

-

FN 16

-

­✓

-

Structure area

AS_4_24_11_NC-Editor_Einstellungen_Gliederung_Alle_Aktiv
Structure area in the Program settings window

In the Structure area you use toggle switches to choose which structure elements the control should display in the Structure column.

Structure column in the Program workspace

  • The following structure elements are available:
  • TOOL CALL
  • * Structure block
  • LBL
  • LBL 0
  • CYCL DEF
  • TCH PROBE
  • MONITORING SECTION START
  • MONITORING SECTION STOP
  • PGM CALL
  • FUNCTION MODE
  • M30 / M2
  • M1
  • M0 / STOP
  • APPR / DEP

Editing area

The Editing area contains the following settings:

Setting

Meaning

Automatic saving

Save changes to the NC program automatically or manually

  • If the toggle switch is active, the control saves the NC program automatically upon the following actions:
  • Switching between tabs
  • Starting the simulation
  • Closing the NC program
  • Switching the operating mode

If the toggle switch is not active, you must save manually. Upon the stated actions, the control asks whether the changes should be saved.

Allow syntax errors in text mode

If the toggle switch is active, the control can save NC blocks in the text editor even if they contain syntax errors.

If the toggle switch is not active, you must correct all syntax errors within an NC block. Otherwise you cannot save the NC block.

Editing NC functions

Generate absolute paths

Create relative or absolute path entries

If the toggle switch is active, the control uses absolute paths for called files, e.g.: TNC:\nc_prog\$mdi.h.

If the toggle switch is not active, the control uses relative paths , e.g.: demo\reset.H. If the file is located at a higher level in the folder structure than the calling NC program, the control creates an absolute path.

Path

Always save formatted

Format NC program while saving

If an NC program has fewer than 30 000 characters, the control always formats the file when saving it, e.g.: capital letters for all syntax initiators.

If the toggle switch is active, the control also formats NC programs with more than 30 000 characters each time it saves the file. This can increase the time needed for saving.

If the toggle switch is not active, the control does not format NC programs with more than 30 000 characters.

Klartext area

In the Klartext area, select whether the control offers certain syntax elements of an NC block during input.

The control offers the following settings as toggle switches:

Setting

Meaning

Skip comment

If you activate this toggle switch, the control skips the comment function during programming for all NC functions.

Adding comments

Skip tool index

Indexed tool

Skip linear superimposed interpolated axis values

Linear superimpositioning of a circular path

You can program the syntax elements in the form independently of the settings in the Klartext area.

Using the Program workspace

  • The Program workspace can be used as follows:
  • Touch operation
  • Operation with keys and buttons
  • Operation with a mouse

Touch operation

You use gestures to perform the following functions:

Symbol

Gesture

Meaning

tippen

Tap

  • Select an NC block
  • Select a syntax element while editing
doppelt_tippen

Double tap

Edit an NC block

halten

Long press

Open the context menu

 
Tip

If you are working with a mouse, click with the right mouse key.

Context menu

wischen

Swipe

Scroll in an NC program

ziehen

Drag

Change the area in which NC blocks are marked.

Context menu in the Program workspace

aufziehen

Spread

Increase the syntax font size

zuziehen

Pinch

Reduce the syntax font size

Keys and buttons

You use keys and buttons to perform the following functions:

Key or button

Function

CursorUp
CursorDown
CursorRight
CursorLeft
  • Edit an NC block
  • During editing, navigate to previous or next syntax element

CTRL+

CursorRight

CTRL+

CursorLeft

Navigate one position to the right or left within the value of a syntax element

Goto

  • Use the block number to select an NC block directly
  • GOTO function

  • Open selection menus during editing
ActPos

Open position display of the control bar in order to copy the position

If you select a line in the position display, the control copies the current value of this line to an open dialog.

Ce

Delete value of a syntax element

NoEnt

Skip or remove optional syntax elements during programming

DelBlk

Delete an NC block or cancel a dialog

EndBlk
  • Confirm entry and conclude an NC block
  • Open the Add tab
679832_01

Cancel editing without applying changes

SF_4_Klartext-Editor_Aktiv

Select Klartext programming mode or a text editor

Editing NC functions

SF_4_NCFunktion_Einfuegen

Open the Insert NC function window

Inserting NC functions

SF_4_Editieren

Open the context menu

Context menu

Searching for the same syntax elements in different NC blocks

If you are editing an NC block, you can search for the same syntax element in the rest of the NC program.

  1. To search for a syntax element in the NC program:
  2. Select an NC block
CursorRight

  1. Edit the NC block
  2. Navigate to the desired syntax element
CursorDown

  1. Press the arrow up or down key
  2. The control marks the next NC block that contains the syntax element. The cursor is on the same syntax element as in the previous NC block. Press the arrow up key to search backwards.

Notes

  • When you search for the same syntax element in a very long NC program, the control displays a pop-up window. You can cancel the search at any time.
  • If the NC block contains a syntax error, the control precedes the block number with a corresponding icon. Click the icon to see the associated error description.
  • Use the optional machine parameter warningAtDEL (no. 105407) to define whether the control shows a confirmation prompt in a pop-up window before an NC block is deleted.
  • Use the machine parameter stdTNChelp (no. 105405) to define whether the control displays help graphics as pop-up windows in the Program workspace.
  • When the Help workspace is open, the control displays the help graphic there, independent of the setting of this machine parameter.

    Help workspace

  • Use the optional machine parameter maxLineCommandSrch (no. 105412) to define how many NC blocks the control searches for the same syntax element.
  • When you open an NC program, the control checks whether the NC program is complete and syntactically correct.
  • Use the optional machine parameter maxLineGeoSrch (no. 105408) to define up to which NC block the control should check the program.

  • If you open an NC program without content, you can edit the BEGIN PGM and END PGM NC blocks and change the unit of measure of the NC program.
  • An NC program is incomplete without the END PGM NC block.
  • If you open an incomplete NC program in the Editor operating mode, the control automatically adds this NC block.

  • 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.

Form column in the Program workspace

Application

In the Form column in the Program workspace, the control shows all possible syntax elements for the currently selected NC function. You can edit all syntax elements in the form.

Requirement

  • Klartext programming mode must be active

Description of function

The control offers the following icons and buttons for using the Form column:

Icon or button

Function

editForm

Show and hide the Form column

SF_4_Formular_Bestaetigen

Confirm entry and conclude an NC block

SF_4_Formular_Verwerfen

Discard entries and conclude an NC block

SF_4_Formular_Zeile_Loeschen

Delete NC block

The control groups the syntax elements in the form depending on their functions, such as coordinates or safety.

The control indicates the required syntax elements with a red frame. Only once you have defined all of the required syntax elements can you confirm the entries and conclude the NC block. The control highlights the syntax element currently being edited.

If an input is invalid, the control displays an information symbol ahead of the syntax element. When you select the information symbol, the control displays information on the error.

Notes

  • In the following cases the control shows no contents in the form:
    • NC program is being run
    • NC blocks are being marked
    • NC block contains syntax error(s)
    • BEGIN PGM or END PGM NC blocks are selected
  • If you define more than one miscellaneous function in an NC block, you can use the arrows in the form to change the sequence of the miscellaneous functions.
  • If you define a label with a number, the control shows an icon next to the input area. The control uses this symbol to assign the next available number to the label.