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 26 of 50

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

Pages 251 to 260 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 251

FST 200-LDR

5. Programming in ladder diagram

Fig. 5.23: Arithmetic/logic Every line of the window contains input fields for one operation, one operand and a comment. You can move to the various input fields with the Cursor keys, the Tab key, the Enter key or with the mouse. The first operation has to be LOAD. For this reason, it is already entered in the first operation field. The last instruction has to be a TO. For a list of operations, either activate the Help window or refer to Appendix B.1.1.

9610a

5-73

Page 252

FST 200-LDR

5. Programming in ladder diagram

Entering an operand If automatic allocation list entry is activated (refer to Section 5.2.2), the operand entered here is entered into the allocation list. The window shown in Fig. 5.10 then reappears. Terminating command entry Activate function (F1) end. Entries are saved in the arithmetic/logic box. The window closes and the box is displayed in the executive part. Labelling an arithmetic/logic box In order to be able to differentiate one arithmetic/logic box from another, you can give them a name of up to 9 characters. Position the cursor in the box you wish to label. Activate function Entering an operand. An input window is displayed in the upper section of the arithmetic/logic box. Enter any label (name) and press the Enter key.

These entries are not operands. For this reason, they are not entered into the allocation list and are not supported by the operand search function.

5-74

9610a

Page 253

FST 200-LDR

5. Programming in ladder diagram

Display the contents of the arithmetic/logic box Position the cursor on the arithmetic/logic box and press the Enter key to view the command window for this function. No changes can be made. Press the ESC key or the Enter key to close the window and continue editing. Modifying the contents of the arithmetic/logic box In order to modify the contents of an arithmetic/logic box, carry out the same steps as for creating a new box. Position the cursor on the arithmetic/logic box you wish to change and activate the function Arithmetic/logic in the Box definition window. The window shown in Fig. 5.23 now appears. Entries can now be overtyped or deleted with the DEL key.

9610a

5-75

Page 254

FST 200-LDR

5. Programming in ladder diagram

5.4.8 Software modules Command sequences that are frequently required can be stored in modules and called by the program when required. This makes it easier to make changes and saves unnecessary editing. After execution of the module, control returns to the main program from which the module was called. There are two types of modules: • function modules (type CFM) • program modules (type CMP) Function modules: Function modules (type CFM) are part of the operating system of the controller and are used for solving general problems. Function modules CFM 90 to 99 can be loaded using the menu Project management and the function "Include module".

5-76

9610a

Page 255

FST 200-LDR

5. Programming in ladder diagram

Program modules These modules are mainly intended for project-oriented solutions and are created with FST software. When creating a new program, enter a B as the first program parameter and edit the program module as a normal LDR program (also refer to Section 5.1.1). Within the program module, symbolic operands or special function units should be used for entering operands. This makes the system universally applicable. Program modules can also be created with the statement list (STL) editor or can be Assembler programs. In contrast to the function modules, program modules are always assigned to a project and are stored in the project directory. The following instructions must be complied with in all cases: • one module cannot call up another module. • the calling program is not processed further during execution of the module. Defining a module call Position the cursor in the executive part in which the module is to be called. Activate the function Module call in the Box definition window (Fig. 5.21). The Module call window is displayed (Fig. 5.24).

9610a

5-77

Page 256

FST 200-LDR

5. Programming in ladder diagram

Before a module can be called, the main program must know the type of module and its label (number). If special function units are used in the module, the operands to be assigned to them must be specified as parameters. All these entries are made in the window shown. A few entries have already been made.

Comments

Operands, which are transferred to the module as parameters.

Fig. 5.24: Box for module call

5-78

9610a

Page 257

FST 200-LDR

5. Programming in ladder diagram

The window comprises 18 lines. Enter the type and number of the modules in the first line. You may enter a comment in the second line. The remaining 16 lines are for up to 16 operands to be transferred to the module as parameters, and for comments. Type After opening the window, enter CFM (function module) for the type. Overtype the F with a P if you wish to call up a program module. Within the input window you can control the cursor with the Cursor keys. Press the Tab or Enter key to move the cursor to the next input field. You can also control the cursor position with the mouse. Number In the second input field, enter the number (address) of the module. The value ranges for the individual controllers are shown in the following table: Controller type SF 3

9610a

Addresses of the program module 0 up to 15

Addresses of the functional modules 0 up to 255

5-79

Page 258

FST 200-LDR

5. Programming in ladder diagram

Module designation (only for function modules): A library file contains help information on the function modules belonging to the current operating system. After entering the module number, this information is displayed in a mask, thus facilitating the entry of parameters. If you enter a module number for which there is no library, the following message appears:

Not stored in library No Help information can then be displayed. Comments You can enter a commentary on the module in this input field. Parameters On the CFM type, this information depends on the type of function module used. Please refer to the documentation supplied with the function module. In the case of program modules, specify the operands the values of which are to be transferred to the program module as parameters. The following table shows the assignment of parameters to the permissible special function units (FUs) depending on the controller used.

5-80

9610a

Page 259

FST 200-LDR

5. Programming in ladder diagram

Parameters

SF 3

Parameter 1 Parameter 2 Parameter 3 .. Parameter 6 Parameter 7 .. Parameter 16

FU 32 FU 33 FU 34 FU 37 FU 38 FU 47

When the module is called elsewhere in the program, the values of other operands can be transferred as parameters. This allows the program module to work with various sets of operands. If automatic allocation list entry is activated, the operands entered here can be entered into the allocation list (refer to Fig. 5.10). Instead of operands, you may also transfer character strings as parameters. After activating the function String parameter (refer to Fig. 5.24), the entire line at the current cursor position is available for the entry of a character string.

9610a

5-81

Page 260

FST 200-LDR

5. Programming in ladder diagram

Concluding entry of the module call Activate function End (refer to F1 in figure 5.24) to conclude entry of the module call. The entries are saved and the module call window is closed.

The executive part shows a module call box. The module call box is displayed with the module type (CMP or CFM) and the module number.

5.5

Additional LDR editor functions The following functions have been integrated to make editing easier: • block commands for moving, copying or deleting sections of the program. • special operations for quick location of an operand or rung and for access to the allocation list.

5-82

9610a