• Keine Ergebnisse gefunden

Creating Text Files

Im Dokument TNC 426 TNC 430 (Seite 101-105)

4.9 Creating Text Files

Function

You can use the TNC’s text editor to write and edit texts. Typical applications:

nRecording test results

nDocumenting working procedures nCreating formularies

Text files are type .A files (ASCII files). If you want to edit other types of files, you must first convert them into type .A files.

Opening and exiting text files

7 77

7Select the Programming and Editing mode of operation.

7 77

7To call the file manager, press the PGM MGT key.

777

7To display type .A files, press the SELECT TYPE and then the SHOW .A soft keys.

7 77

7Select a file and open it with the SELECT soft key or ENT key, or create a new file by entering the new file name and confirming your entry with the ENT key.

To leave the text editor, call the file manager and select a file of a different file type, for example a part program.

Cursor movements Soft key

Move one word to the right Move one word to the left

Go to the next screen page

Go to the previous screen page

Go to beginning of file

Go to end of file

Editing functions Key

Begin a new line

Erase the character to the left of the cursor

4.9 Cr eating T ext Files

Editing texts

The first line of the text editor is an information headline which displays the file name, and the location and writing mode of the cursor:

The text is inserted or overwritten at the location of the cursor. You can move the cursor to any desired position in the text file by pressing the arrow keys.

The line in which the cursor is presently located is depicted in a different color. A line can have up to 77 characters. To start a new line, press the RET key or the ENT key.

Insert a blank space

Switch between upper and lower case letters

Editing functions Key

File: Name of the text file

Line: Line in which the cursor is presently located Column: Column in which the cursor is presently located INSERT: Insert new text, pushing the existing text to the right OVERWRITE: Write over the existing text, erasing it where it is

replaced with the new text.

76 4 Programming: Fundamentals of NC, File Management, Programming Aids, Pallet Management

4.9 Cr eating T ext Files

Erasing and inserting characters, words and lines

With the text editor, you can erase words and even lines, and insert them at any desired location in the text.

777

7Move the cursor to the word or line you wish to erase and insert at a different place in the text.

777

7Press the DELETE WORD or DELETE LINE soft key: The text is put in the buffer memory

7 77

7Move the cursor to the location where you wish insert the text, and press the RESTORE LINE/WORD soft key.

Editing text blocks

You can copy and erase text blocks of any size, and insert them at other locations. Before carrying out any of these editing functions, you must first select the desired text block:

7 77

7To select a text block, move the cursor to the first character of the text you wish to select.

77

77Press the SELECT BLOCK soft key.

77

77Move the cursor to the last character of the text you wish to select. You can select whole lines by moving the cursor up or down directly with the arrow keys — the selected text is shown in a different color.

After selecting the desired text block, you can edit the text with the following soft keys:

Function Soft key

Delete and temporarily store a line

Delete and temporarily store a word

Delete and temporarily store a character

Insert a line or word from temporary storage

Function Soft key

Delete the selected text and store temporarily

Store marked block temporarily without erasing (copy )

4.9 Cr eating T ext Files

If necessary, you can now insert the temporarily stored block at a different location

7 7 7

7Move the cursor to the location where you want to insert the temporarily stored text block.

77

77Press the INSERT BLOCK soft key: The text block is inserted.

You can insert the temporarily stored text block as often as desired.

To transfer the selected text to a different file:

7 7 7

7Select the text block as described previously.

7 7 7

7Press the APPEND TO FILE soft key. The TNC displays the dialog prompt Destination file =

7 7 7

7Enter the path and name of the target file. The TNC appends the selected text to the end of the specified file. If no target file with the specified name is found, the TNC creates a new file with the selected text.

To insert another file at the cursor position:

7 7 7

7Move the cursor to the location in the text where you wish to insert another file.

77

77Press the READ FILE soft key. The TNC displays the dialog prompt File name =

7 7 7

7Enter the path and name of the file you want to insert.

Finding text sections

With the text editor, you can search for words or character strings in a text. Two functions are available:

Finding the current text

The search function is to find the next occurrence of the word in which the cursor is presently located:

77

77Move the cursor to the desired word.

77

77To select the search function, press the FIND soft key.

7 7 7

7Press the FIND CURRENT WORD soft key.

77

77To leave the search function, press the END soft key.

Finding any text

78 4 Programming: Fundamentals of NC, File Management, Programming Aids, Pallet Management

Im Dokument TNC 426 TNC 430 (Seite 101-105)