The text of a manual · part 10 of 50
Festo Software Tools: Statement list and Ladder diagram for SF 3, FST 200 Manual, pages 91 to 100
Pages 91 to 100 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 91
FST 200
3. Management of the control programs
Fig. 3.23: Linking a module (selection) Open the option required by double-clicking on it or by placing the highlight on it and pressing the ENTER key.
First a window will appear for you to enter information regarding the use of the new module (see Fig. 3.24).
9610a
3-45
Page 92
FST 200
3. Management of the control programs
Fig. 3.24: Module information You will find explanations of the various specifications in sections 4.1.1/5.1.1. You should first refer to the description of the module concerned to determine whether it is a program, a program module or a function. As a rule, you will have to save it as a program module (B) or as a function (F). The comment you enter under task will later be used in the program as an operand comment and also included in the allocation list as such. You will always have a clear indication of the function of the module in your program if you enter a brief descriptive text. Recommendation: Use the comment supplied with the assembler programs you obtain from FESTO.
3-46
9610a
Page 93
FST 200
3. Management of the control programs
Select function F1 once all the information has been entered correctly. A module uses certain operands. Refer to the description of the module for information. A further window will appear in which you need to assign addresses to these operands; the addresses must match those used in your program (see Fig. 3.25).
Fig. 3.25: Assigning operand addresses Refer to the description of the module concerned (driver, MAK file) to find out how the various operands operate and for which values they must be queried. Only then will the relevant module be able to execute its function precisely.
9610a
3-47
Page 94
FST 200
3. Management of the control programs
Example (see above): The module uses two flags. The default entries are M 00.00 in each case. • Enter the flags which are to be used. • Allocate different flags. Otherwise you will have incorrect entries in the allocation list. Specify the content of the flags in your control program. Select function F1 once all the information has been entered correctly. The module will now be modified to your control program and linked into the project concerned. You can now call the module like a program module or a function.
3-48
9610a
Page 95
FST 200
3. Management of the control programs
Once a module has been linked, its data and the parameters used are entered in the error list. You can view these entries using the Show error list function from the selection menu of the relevant programming language. An example is shown below. ---------------------------------------------------[ Error list V3.2 ]--------------------------------------------Filename : B0.10 V1 Object module : ABG display driver, internal texts ======================================================================= Source file(s) : C:\FST\SF3\PROJEKTE\LIB\3FD_XABG.MAK Object file : C:\FST\SF3\PROJEKTE\HAUSTEL2\3Z0B10V1.OBJ FPC Type : FPC SF3 Code type : CMP Object code generated : 155 bytes Operands used
:
Absolute operand Symbolic operand Comment ======================================================================= M0.0 Var_Ausgb Representation style for values (VZ) M0.1 Busy Text output active Entries marked with an asterisk (*) could not be included in the allocation list. -----------------------------------------------------------------------------------------------------------------------------
9610a
3-49
Page 96
FST 200 3. Management of the control programs FESTO
3-50 9610a
Page 97
FST 200-STL
4. Programming in the statement list
4. Programming in statement list (STL) You can write control programs for the Festo SF 3 controller with the help of the statement list. A user-friendly editor helps you in the creation of your programs and a further tool checks them for syntactical correctness. The STL programming menu allows you • To write and edit user programs and program modules in the statement list • Freely modify the assignment of the STL function keys as you wish • Check an STL program for syntactically correct entries • Load a single STL program into the connected controller • Print out a single STL program • View an error list containing possible errors in the STL program • Trace the execution of an STL program in the controller (status display) • Connect the computer to the controller through FPC Online Mode (see chapter 7).
9610a
4-1
Page 98
FST 200-STL
4. Programming in the statement list
The number of resources you may enter, i.e. inputs, outputs, flags, etc., in brief, the operands and their addresses, is dependent on the type of controller you have. The list in appendix A.1.2 shows which operands are suitable for the controller used. You may enter these operands in a control program in two ways; as • Absolute operands (e.g.: O2.7) • Symbolic operands (e.g.: MOTOR_ON). A program in which you use only absolute operands is immediately executable. Your program will be easier to read and understand if you use symbolic operands. You will then, however, also have to specify the absolute operands in the allocation list. Naturally, you may also create the allocation list first. You will access these entries when subsequently entering the program.
4-2
9610a
Page 99
FST 200-STL
4. Programming in the statement list
Select the Statement list menu item in the FST main menu to access the functions for programming in the statement list. A window, the statement list menu (see Fig. 4.1), will then appear.
Fig. 4.1: Statement list menu Open the options required here by double-clicking on them or by placing the highlight on them and pressing the ENTER key. This action is valid for all inputs of this type.
9610a
4-3
Page 100
FST 200-STL
4.1
4. Programming in the statement list
General programming actions A statement list program must be part of a project (see section 3.1). The FST software identifies it by • Its CCU number (a number of central control unit, always 0 on the SF 3) • Its program number • Its version number • And its association to a project. This means that you must always first create a project (see section 3.1) for your control program before you enter the first part of it (allocation list, title page or statement list program). Later it will be sufficient to select the corresponding project (see section 3.2). The project name will be displayed at the bottom left of the working area. Select the STL editor function from the Statement list menu (see Fig. 4.1) if you wish to enter a statement list program for this project. There are two possibilities for further procedure: • The active project does not yet contain any programs (see section 4.1.1) • The active project already contains programs (see section 4.1.2)
4-4
9610a