The text of a manual · part 18 of 50
Festo Software Tools: Statement list and Ladder diagram for SF 3, FST 200 Manual, pages 171 to 180
Pages 171 to 180 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 171
FST 200-STL
4.7
4. Programming in the statement list
Status display This function of the statement list is a further aid to the creation of error-free STL programs. You may take an STL program loaded in the controller and • Extract any program sequence which will then be displayed on the screen • Observe the behaviour of the operands within this program sequence and check it for correctness • Modify the values of operands within this program sequence • Use the status display to test the behaviour of your control program whilst it is being processed in the controller and thus identify any logical errors in it.
9610a
4-75
Page 172
FST 200-STL
4. Programming in the statement list
4.7.1 Accessing the status display Before you access this function, you must have connected the computer with the controller, have loaded the program required into the controller, and have started it there. The online display requires the running program in the controller so that it is able to query the relevant operands there and display them on screen. Please refer to section 7 for instructions on how to start a program in the controller. Select the STL online display function in the STL menu (see Fig. 4.1). The picklist for selecting a program illustrated above in section 4.1.2 will then appear. Here you must select the program the progress of which in the controller you wish to trace; do this with the high-light. Clicking on the program again, or pressing the ENTER key will select this program. You will see the display illustrated in Fig. 4.19. The display in the working area differs from that of the STL editor only by the middle column. There you will see highlighted the online display of the operand listed on the left-hand side. This column causes the comment part of the line to be shifted slightly to the right and therefore you may not be able to read it in full any longer. You may then shift the screen content to the left or right with the cursor keys.
4-76
9610a
Page 173
FST 200-STL
4. Programming in the statement list
Fig. 4.19: Status (online) display The line for the currently active step is shown in reverse video (the Loop step in Fig. 4.19). The following information is shown in the header line:
9610a
4-77
Page 174
FST 200-STL
4. Programming in the statement list
+/-DEC
Display format: signed decimal +/-DEC unsigned decimal DEC hexadecimal HEX
STEP label
Currently active step (as named in user’s loop)
(xx)
Currently active step (automatic numbering)
Line: xx/yy
Currently visible program part (from line xx to line yy)
Active/Inactive P0.0 Vx
Status of the program Program and version number
4.7.2 Functions in the status display Initially, the working area always shows the start of a program. You may move to any position • Using the cursor keys described in section 2.5 • Using the mouse functions described in section 2.6.1.
4-78
9610a
Page 175
FST 200-STL
4. Programming in the statement list
Display format for the operand values One-bit operands are shown by the entries ON or OFF. Operand
Value
I1.0
ON
I 0.7
OFF
There are three different formats for multi-bit operands. You can use function F6 to cycle through these display formats. The format selected at any time is shown to the left of the header line. Display format
Representation
Unsigned decimal
45112
Signed decimal
- 12345
Hexadecimal
$B038
Modify selected operand value Select function F3 if you wish to modify the value of an operand for test purposes. An arrow will appear in front of the top highlighted field. Place this arrow on the operand value required and activate the entry by pressing the ENTER key. A dialogue box will then appear at the bottom right (see Fig. 4.20).
9610a
4-79
Page 176
FST 200-STL
4. Programming in the statement list
Fig. 4.20: Selecting an operand value The first line shows the operand selected. The second line shows the current actual value of the operand selected. You may enter any operand value within the permissible limits for that operand in the third line after Nominal value (see appendix A.1.2). All input formats are permitted here (see above). If you wish to have the newly entered operand value included in the program, select function F1. You may then use function F4 in Fig. 4.19 to have the operand value most recently entered transferred to the controller several times.
4-80
9610a
Page 177
FST 200-STL
4. Programming in the statement list
Modify non-selected operand value You can use this function to modify an operand value which is not currently visible. You may, however, only use this function if you have previously selected function F3 (Modify FU, see Fig. 4.19). You will then see the words Other operand for function key F2. When you select this function, the same dialogue box as that illustrated in Fig. 4.20 will appear. The procedure is the same as that described above. Set scanning rate The scanning rate determines how frequently the operand values listed in the working area are polled per unit of time. This may be increased or reduced. The default value is a factor of 50; i.e. an average scanning rate. The minimum scanning rate is indicated by a factor of 5. Use function F1 to increase this scanning rate, use function F2 to reduce it. The current value is indicated in the message line. The flashing asterisk here symbolises the rate. This rate also depends on how many operands are illustrated in the working area and thus need to be polled.
9610a
4-81
Page 178
FST 200-STL
4. Programming in the statement list
Error messages Function F7 becomes active if an error message appears. You may then use this function to reset the error. There are two types of error within this function: • Errors from the controller’s operating system • Errors arising from a poor connection.
Errors reported by the operating system in the controller are indicated by the red LED (ERROR) on the SF 3 control block lighting up. These error messages are described in Appendix C.3 and in the description of the SF 3 control block. Error messages arising from a defective connection are indicated only in the message line. In this event you must check the connection between your computer and the controller.
4-82
9610a
Page 179
FST 200-LDR
5. Programming in ladder diagram
5. Programming in ladder diagram (LDR) For all Festo controllers, you can formulate control programs in the form of ladder diagrams. A user-friendly editor supports you when creating your programs and an additional tool checks them for correct syntax. With the menu functions in ladder diagram programming (LDR programming), you can: • create programs and program modules in the form of ladder diagrams, • print out an LDR program, • check an LDR program for correct syntax, • view an error list in the event of any errors existing in the LDR program, • load an LDR program to the connected controller (refer to Section 7). • utilise test and diagnosis options in online operation, • check the program flow via LDR online operation in the presentation form of a ladder diagram.
9610a
5-1
Page 180
FST 200-LDR
5. Programming in ladder diagram
The number of prevailing operands, i.e. the addresses of inputs, outputs, flags etc., depend on the type of controller used. Please refer to the list in Appendix B.1.2 to establish which operand you can use in your controller. All operands can be designated in two ways in a control program: • as absolute operand (e.g.: O2.7) • as symbolic operand (e.g.: motor_ON). A program in which you only use absolute operands is capable of running even without compiling a statement list, but it is more difficult to read. In order to formulate your program in a clearer and more simple fashion, you can use symbolic operands instead of absolute operands. If you do this, you must however assign corresponding absolute operands to the symbolic operands in your statement list. In this case, it is advisable to start by compiling the statement list. In the ensuing program input, automatic access is made to the assignment in the statement list.
5-2
9610a