The text of a manual · part 27 of 50
Festo Software Tools: Statement list and Ladder diagram for SF 3, FST 200 Manual, pages 261 to 270
Pages 261 to 270 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 261
FST 200-LDR
5. Programming in ladder diagram
5.5.1 Block commands Parts of an LDR program can be marked as a block. Within the LDR program, this block can be • moved, • copied or • deleted.
Block commands can also be used to transfer parts of programs from one program to another. Functions used are: • save block • read in block. After marking a block, you can activate the function Save block (refer to Fig. 5.25).
9610a
5-83
Page 262
FST 200-LDR
5. Programming in ladder diagram
Fig. 5.25: Block commands If the function Read in block is activated, the program blocks from the library (project LIB) are displayed for selection. You can then insert any block into the LDR program at the current cursor position. As all functions available in the LDR editor are also available in the FST software text editor, they are described in Chapter 5, text editor (refer to 6.1.2 Block commands).
5-84
9610a
Page 263
FST 200-LDR
5. Programming in ladder diagram
The text editor block commands have some extended functionality not available in the LDR editor. Please note the following differences • in the LDR editor, all block functions can be activated immediately after a block is marked. • If you wish to mark a single rung as a block, you can activate the functions Block start and Block end immediately after each other without positioning the cursor.
9610a
5-85
Page 264
FST 200-LDR
5. Programming in ladder diagram
5.5.2 Special operations In long control programs, you can move quickly to a certain position in the program by using the search function. It is available in the Special operations menu level. • search for an operand • list rungs • search for a rung In addition, this level allows you to activate automatic allocation list entry and to activate the Allocation list editor (refer to Fig. 5.26). These functions are described in Section 5.2.
Fig. 5.26: Special operations
5-86
9610a
Page 265
FST 200-LDR
5. Programming in ladder diagram
Search operand Activate the function Search operand. An input field is displayed in the message line. Enter the operand you wish to locate in this field. Regardless of how you have named the operand in the LDR program, you can enter a symbolic or absolute description of the operand. The search does not distinguish between upper and lower case. Press the Enter key. The following prompt appears:
Do you want to replace the operand? (Y/N) If you respond with N, the search starts. If you respond with Y, the following prompt appears:
Exchange which operand? = Enter the operand that is to replace the old operand in the LDR program and press the Enter key. The search is started. The first rung that contains the operand being searched for is displayed at the top of the screen. If the function Replacement is activated, you must press Y each time the operand is found to confirm that the operand is to be replaced. You can then indicate whether you wish to continue searching.
9610a
5-87
Page 266
FST 200-LDR
5. Programming in ladder diagram
Searching for a rung Activate the function Search rung to find a certain rung in the LDR program. With the function List rungs, you can view a list of all rungs in the program with their comments (refer to Fig. 5.27).
Fig. 5.27: List of rungs
If the list is so long and complex that it does not fit on one screen page, you can display the next page by pressing any key. You can use the operating system’s Print screen function to print the list out page by page.
5-88
9610a
Page 267
FST 200-LDR
5.6
5. Programming in ladder diagram
Status display The status display makes it easier to locate logical errors in an LDR program. Execution of the program in the controller is displayed in Ladder diagram (LDR) form. The following are displayed within a rung: • the current status of each one-bit operand, • the activated rung. In parallel structures in the conditional part, this enables you to see which condition is currently fulfilled and is activating the executive part. • comparison boxes, whose comparison operation has been completed. In addition, as in FST online mode, you can: • display the contents of any operand in plain text, • change the contents of any operand. The status display continually interrogates the operands in the controller executing the LDR program. For this reason, the computer must be connected to the controller and the program must be loaded in the controller and started. To do this, follow the instructions in Chapter 7.3 (SF 3 online mode).
9610a
5-89
Page 268
FST 200-LDR
5. Programming in ladder diagram
5.6.1 Accessing the status display In the LDR menu (refer to Fig. 5.1), activate function LDR status display. The Program selection window appears. Select the program previously loaded into the controller and started. The status display of the LDR editor now appears. The beginning of the LDR program is displayed in the work area, as it is when the editor is called (refer to Fig. 5.28).
Fig. 5.28: Accessing the status display
5-90
9610a
Page 269
FST 200-LDR
5. Programming in ladder diagram
You can use the functions List rungs (F1), Search rung (F2) and Search operand (F3) to quickly find the part of the LDR program you wish to check for logical errors. These are also available in the LDR editor and were described in Section 5.5.2. In addition, you can move around the program using: • cursor or scroll keys, or • mouse functions. 5.6.2 Functions in the status display Activate function F4 Start display. Start Status display. You can now see the conditions of all one-bit operands, the results of comparison operations and the active parts of the selected rung.
9610a
5-91
Page 270
FST 200-LDR
5. Programming in ladder diagram
Representation of conditions The conditions of elements of the program are clearly displayed. Through-connected rungs are displayed in inverse video. Representation of operands If a rung is not through-connected, you can see which conditions have been fulfilled and which not. The status display function interrogates each conditional element. If its condition is fulfilled, the operand is displayed in inverse video. Symbol normally open contact (query of logic 1 (binary signal 1))
Contents of the operand 1 0
Presentation of the operand inverse conventional normally closed con- 0 tact (query of logic 1 0 (binary signal 0)) Symbol Result of comparison operation Comparison box 1 (true)
inverse conventional
Comparison box conventional
0 (incorrect)
Presentation of operands inverse
In the executive part, coil symbols and their operands are interrogated. If the value of the operand corresponds to the symbol command, it is displayed in inverse video.
5-92
9610a