Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 19 of 50

Festo Software Tools: Statement list and Ladder diagram for SF 3, FST 200 Manual, pages 181 to 190

Pages 181 to 190 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 181

FST 200-LDR

5.1

5. Programming in ladder diagram

Calling the LDR editor A ladder diagram program is always part of a project (refer to Section 3.1). The FST software identifies it on the basis of • its CCU number (number of central control unit, always 0 on the SF3), • its program number, • its version number, • and its project statement. This means that before you can compile a control program with the help of the LDR editor, you must first establish a project (refer to Section 3.1). At a later point, it is sufficient to select the corresponding project (refer to Section 3.2). In order to call the ladder diagram editor, activate the ladder diagram (LDR) entry in the main FST menu. This then calls up the LDR menu (refer to Fig. 5.1).

9610a

5-3

Page 182

FST 200-LDR

5. Programming in ladder diagram

Fig. 5.1: LDR menu The project name is displayed at the bottom left in the area of work. If you wish to create an LDR program for this project, go to the LDR menu (refer to Fig. 5.1) and activate the entry LDR editor. There are two options for the subsequent procedure: • the selected project may not yet contain an LDR program (refer to Section 5.1.1), • the selected project may already contain an LDR program (refer to Section 5.1.2).

5-4

9610a

Page 183

FST 200-LDR

5. Programming in ladder diagram

5.1.1 Create a new program You need this function if • there is no LDR program in the active project at this stage, • you wish to add another program to the active project. The function Create program is activated automatically if no program yet exists for the selected project or if, in the program selection shown in Fig. 5.3, you activate the function New prog. (F1). You then see a selection window as shown in Fig. 5.2. Owing to the fact that this presentation is controller-specific, certain details of it may deviate from the presentation shown on your screen.

Fig. 5.2: Create program

9610a

5-5

Page 184

FST 200-LDR

5. Programming in ladder diagram

To create a program, you must assign program-specific parameters to it. Inside this window, program parameters have already been entered and you can overtype these to alter them. Once all details are correct, you create the program by pressing function key F1. Please consult the following table for a list of all possible entries relating to the controller selected.

5-6

Entry

SF 3

Type prog./module

P/B/F

Prog. no./module no.

0-15

Function no. (only for "link in module")

90-99

Version no.

1-9

Description

Text

9610a

Page 185

FST 200-LDR

5. Programming in ladder diagram

Explanations about the table Type prog./module (program type) With this entry, you determine the type of your program. Enter a P for Program, a B (German abbreviation) for program module or an F for Function (also refer to Section 5.4.8). Prog./module no. This number is used to store the program or the program module in your controller. Please note the following instructions:

In the SF 3 (in Automode ON), it is always the program with the lowest program number which is started. Version no. With the version number, you indicate the current version of the program. When there are several very similar programs, this is an aid for recognition. If you create a new program with a different version number to an existing program number, you receive a copy of the program with the next smallest version number. Description Under "Description" you can enter text comments about a program or program version.

9610a

5-7

Page 186

FST 200-LDR

5. Programming in ladder diagram

5.1.2 Select program You require this function if you wish to change an existing LDR program or the comments entered in the "Problem" section of an LDR program. If the selected project already contains programs, you can enter this function directly by calling the LDR editor. You then see the program selection window as shown in Fig. 5.3.

Fig. 5.3: Program selection window

5-8

9610a

Page 187

FST 200-LDR

5. Programming in ladder diagram

After marking a program, you can enter data via the function Carry data (F2) by overtyping text entered in Description. Using the function New program (F1), you can add another LDR program to the project (refer to Section 5.1.1). If you wish to alter an LDR program, mark this program and confirm your selection. The program is then loaded, after which the LDR editor is activated. 5.1.3 The working surface of the LDR editor Once you have set up a program - or selected one after a short loading time, you will see the interface of the LDR editor. If you have selected a program, you will see a program cutout in the working area in the form of a ladder diagram. If you have just set up a new program, the LDR editor shows an empty ladder diagram line in the working area.

Can also be activated using the mouse.

Fig. 5.4: The working surface of the LDR editor

9610a

5-9

Page 188

FST 200-LDR

5. Programming in ladder diagram

Function keys F1 to F4 are assigned directly with executable actions. Function keys F5 to F8 provide access to other function levels. The individual functions can be activated very comfortably by pressing the appropriate function key. Entries such as operands or comments can be entered using the keyboard. With function key F9, you can call up a context-specific help screen (refer to Fig. 5.4). All functions, entries and input fields can also be activated using the mouse (refer to Section 1.7.1). 5.1.4 File instructions Using the function file instruction (F8), you can quit the LDR editor. Once this function is activated, you can view the file instructions in the bottom right hand corner of the screen (refer to Fig. 5.5).

Fig. 5.5: File instructions The functions offered here have the following effect:

5-10

9610a

Page 189

FST 200-LDR

5. Programming in ladder diagram

Save and quit editor The LDR program is saved and the LDR editor is quit. After this, the FST main menu reappears on screen as in Fig. 2.9. Save and continue The LDR program is simply saved. After this, you can continue editing the old entry. This function helps to prevent data loss (e.g. caused by power failure). The most recently saved status in a case like this can be reloaded and processing work can continue on it. Abort With this function, you return to the FST main menu without saving your program. Once you have activated this function, another window appears on screen for security, asking the question

Abort editing? (Y/N) Yes

No

9610a

All changes entered since the last backup are cancelled and the program returns to the FST main menu (refer to Fig. 2.9).

You return to the LDR editor.

5-11

Page 190

FST 200-LDR

5. Programming in ladder diagram

Check syntax With this function, you can check the syntax of the program you are working on. If an error is detected, the syntax test is interrupted. A window appears containing error messages. After pressing the ESC key the cursor is positioned at the error location in the ladder diagram so that you can start correction of the error straightaway. 5.2

Allocation list Before you write a program, you should compile an allocation list for the selected project. Here you can enter all operands which you intend to use in the user program. With the allocation list, you can also maintain a clear overview when a large number of operands is involved. This can contain: • Absolute operands • Symbolic operands • Operand comments. Absolute operands Absolute operands are entries which address the specified controller hardware or the internal operating system (e.g.: O1.0, T7, etc.). Appendix B.1.2 lists all designations for absolute operands and their addresses which you can use for your controller.

5-12

9610a