The text of a manual · part 11 of 50
Festo Software Tools: Statement list and Ladder diagram for SF 3, FST 200 Manual, pages 101 to 110
Pages 101 to 110 of 496
The original document is the PDF (3.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Festo FPC-202
Page 101
FST 200-STL
4. Programming in the statement list
4.1.1 Create a new program You require this function if • No program is yet available in the active project • You wish to add a further program to the active project. You are taken to this function when you call the STL editor for the first time or if you select function F1 in the program selection window shown in Fig. 4.3. You will then see a window as illustrated in Fig. 4.2. The window on your screen may differ in some details as this view is controller-specific.
Fig. 4.2: Creating a new program
9610a
4-5
Page 102
FST 200-STL
4. Programming in the statement list
Program parameters are already entered in this window as default values. You can modify these parameters by overwriting the characters. Delete any superfluous characters with the DELETE key. Once all the information is correct, you can create the program by selecting function F1. The permitted input is shown in the following table:
4-6
Input
SF 3
Type Program/Module
P/B/F
Program/Module No.
0 to 15
Function No. (only for "Link module")
90 to 99
Version no.
1 to 9
Description
Text
9610a
Page 103
FST 200-STL
4. Programming in the statement list
- Type Program/Module Use this specification to determine the type of your program (P stands for main program; B stands for program module; F stands for function module [only possible with "Link module"]). - Program/Module No. The program or the program module is stored in your controller under this number. Please note the following.
On the SF 3 (when Automode is ON), the program with the lowest number is always started. - Version No. Use the version number to specify the current version of the program. This is an aid to distinguishing between a number of very similar programs. By simply increasing the version number of an existing program you will obtain a copy of the original program. - Description Use description to enter a text commenting on the program. It is not part of the program name. You can change the comments on a program by creating it again, but only editing the entry under Carry data by means of function F2.
9610a
4-7
Page 104
FST 200-STL
4. Programming in the statement list
4.1.2 Select an existing program You require this function if • You wish to modify an existing STL program. You are taken directly to this function when you call the STL editor, if the active project already contains programs (see Fig. 4.3).
Fig. 4.3: Selecting a program Select a program by double-clicking on it or by placing the highlight on it and pressing the ENTER key. It is then loaded directly into the STL editor.
4-8
9610a
Page 105
FST 200-STL
4. Programming in the statement list
4.1.3 The STL editor Once you have concluded the functions described in 4.1.1 and 4.1.2, the STL editor will appear after a brief load time. If you have selected a program, you will see the relevant entries for it in the working area. The working area will be empty if you have created a new program (see Fig. 4.4).
Fig. 4.4: STL editor Function keys F1 to F8 in the illustration shown in Fig. 4.4 are assigned with calls to further levels. There you will find most of the instructions required to write an STL program. You can switch back to key assignment, as shown above, by pressing function key F10 from any of these levels.
9610a
4-9
Page 106
FST 200-STL
4. Programming in the statement list
You can enter the various STL instructions easily using the function keys. You can make these entries by pressing the corresponding function key or clicking on the box with the mouse. The key assignments change during editing to be appropriate for the next possible input. Naturally, you can also type the instructions in using the keyboard only, i.e. without using the function keys. 4.1.4 Quit the STL editor Function F8 quits the STL editor at any time. When you activate this function, you will see the file commands window at the bottom right (see below).
Fig. 4.5: File commands
4-10
9610a
Page 107
FST 200-STL
4. Programming in the statement list
Save and quit editor The STL program is saved in the project directory. The system then quits the STL editor. The FST main menu as shown in Fig. 2.8 then reappears on the screen. Save and continue The STL program is simply saved. But it remains loaded in the editor. You can then continue to edit at the last position. Abort (discard and quit editor) If you select this option, a further window appears with the prompt
Are you sure? (Y/N).
yes no
9610a
The changes made since the last backup are discarded and the program returns to the FST main menu as shown in Fig. 2.8. You are returned to the STL editor.
4-11
Page 108
FST 200-STL
4. Programming in the statement list
Read text block If you require a block saved in the \LIB directory at the current input position, you can load the block at this point using this function. It is inserted at this point. Please refer to section 6.1.2 for further details regarding block commands. The creation of blocks is also described there. Write (save) text block You can save on disk a program section you might require repeatedly with this function, as long as you have first marked it with the block commands. It will then be saved to the \LIB directory (see section 3.2).
4-12
9610a
Page 109
FST 200-STL
4. Programming in the statement list
4.1.5 Additional instructions Function keys In total, you have a maximum of ten levels, each with eight function keys (F1 to F8), available to you in the FST software. You can modify the assignment of these function keys as you wish using the STL function keys function. This is done as follows: • Select the STL function keys function. • The function key editor will show you the first three of the assigned levels. Please refer to section 6.2 for instructions on how to modify the entries. CTRL commands The STL editor provides you with editing tools in the form of CTRL commands (see appendix C.2). Furthermore there are some additional commands particular to this editor. CTRL-B This command toggles automatic allocation list entry on and off. If this option is selected, you will be able to make an entry in the allocation list each time you complete a line by pressing the ENTER key. CTRL-O-B This command switches over to the selection of additional commands. Refer to section 4.1.7 for these commands.
9610a
4-13
Page 110
FST 200-STL
4. Programming in the statement list
CTRL-O-F This command gives the current STL program a uniform format. This formatting gives your program a structure that is easier to read. CTRL-O-L This command calls the allocation list editor. CTRL-O-G This command calls the allocation list editor. CTRL-O-V This command opens a window in which you can specify the parameters for a module call. Refer to sec-tion 4.5. for these commands. CTRL-V-A This instruction calls the syntax test. Your program will then be checked for formal correctness. You will be notified by an appropriate message at the end of the test if the test finds an error. The following message will appear if your program is formally correct:
No errors found [assigned key].
4-14
9610a