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

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

Pages 121 to 130 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 121

FST 200-STL

4. Programming in the statement list

There are three possibilities here: • Operand has already been entered • Absolute operand not entered • Symbolic operand not entered. Operand has already been entered When you complete the line with the ENTER key, the current program line is quit immediately and the cursor placed on the next input line. Absolute operand is not entered When you complete the line with the ENTER key, first a further dialogue box is opened. Here you are able to enter a symbolic operand identifier for the absolute operand designation (see Fig. 4.8). The operand will be included in the allocation list when you complete your input by selecting function F1. Selecting F8 or pressing the ESC key means that the entry is not executed. The absolute operand, however, is retained in the STL program.

9610a

4-25

Page 122

FST 200-STL

4. Programming in the statement list

Fig. 4.8: Entering an absolute operand Symbolic operand is not entered When you complete the line with the ENTER key, the same dialogue box as that shown in Fig. 4.8 opens. Here you must enter an absolute operand identifier for the symbolic operand identifier. Only then will an entry be made in the allocation list. The operand will be included in the allocation list when you complete your input by selecting function F1. Selecting F8 or pressing the ESC key means that the entry is not executed. The symbolic operand remains in your STL program; your program is, however, not executable like this.

4-26

9610a

Page 123

FST 200-STL

4.3

4. Programming in the statement list

Functions in the STL editor This section will describe the input in an STL program on the basis of the assignment of the function keys. The various groups of instructions are distributed amongst the function key levels in such a way as to permit fluent working. The instructions are grouped as follows: • STL commands • STL conditional statement • STL execution statement • Extended functions • Further instructions • Editing commands (see 4.1.6) • Additional commands (see 4.1.7)

4.3.1 STL commands You access the STL commands when you select function F1 in the STL Editor menu as illustrated in Fig. 4.4 (see Fig. 4.9).

9610a

4-27

Page 124

FST 200-STL

4. Programming in the statement list

Fig. 4.9: STL commands The descriptions below apply for a single implementation of the corresponding function. The instruction entered will be written on the screen at the current cursor position. F 1

Step

The STEP instruction is very important for sequencing programs, as this specifies the structure or the sequence for program branches. STEP must be followed by a step label with a maximum of nine characters or a number. It is required if you wish to branch to this step from a different point in the STL program.

4-28

9610a

Page 125

FST 200-STL

4. Programming in the statement list

Example: STEP Setup ... ... THEN JMP TO

Setup

During the compile procedure the steps are numbered again internally counting from step 1 or from the number specified (only FPC 404) up to the maximum number. In an STL program, a step is only processed if it was possible to execute a THEN or an OTHRW statement in the last statement of the preceding step. A step program is not processed cyclically. F 2

IF

IF always introduces a conditional statement. This instruction may operate logically on operands or query them. The result is the condition responsible for further execution. Example : IF AND N

I1.0 I1.1

... F 3

THEN

THEN introduces the execution statement. It is executed if the condition evaluates to true. This instruction includes commands which cause changes in outputs, flags etc, which execute arithmetic operations, activate timers or counters or call further programs or program modules. Example : THEN

LOAD TO

V100 TV7

...

9610a

4-29

Page 126

FST 200-STL

F 4

OTHRW

4. Programming in the statement list

OTHRW introduces a second alternative execution statement. It will be executed if the conditional statement of the step evaluates to false and the THEN statement cannot be executed. Example : ... THEN SET OTHRW RESET

O1.0 O1.0

F Special 5 instruction

This switches to assignment of the STL instructions for bit operations. These extended functions are described in section 4.3.4.

F 6

STL condition

This switches to assignment of the STL conditions. There you can enter the instructions for the conditional statement. These are described in section 4.3.2.

F 7

STL execution

This switches to assignment of the STL execution statement. There you can enter the instructions which address settable operands. These assignments are described in section 4.3.3.

F 8

Back

This switches you back to the STL Editor menu as illustrated in Fig. 4.4. There you can, for example, quit the STL editor.

4-30

9610a

Page 127

FST 200-STL

4. Programming in the statement list

4.3.2 STL conditional statement This key assignment is accessed by selecting function F2 in the screen illustrated in Fig. 4.4 or immediately after entering an IF instruction.

Fig. 4.10: STL conditional statement You may use these instructions to develop complex input conditions.

9610a

4-31

Page 128

FST 200-STL

F 1

AND

4. Programming in the statement list

This is the AND logic operation. You may use this to associate a number of input conditions. This condition is met if all the AND input conditions evaluate to true. Example : IF AND THEN SET OTHRW SET

F 2

OR

This is the OR logic operation. You may use this to associate a number of input conditions. This condition is met if at least one single condition evaluates to true. Example : IF OR OR THEN SET OTHRW SET

F 3

EXOR

I1.0 I1.1 I1.7 O1.0 O1.7

This is the EXOR logic operation. You may use this to combine two (and only two) input conditions. The condition is met if one of the two input conditions evaluates to true. Example : IF EXOR THEN SET OTHRW SET

4-32

I1.0 I1.1 O1.0 O1.7

I1.0 I1.1 O1.0 O1.7

9610a

Page 129

FST 200-STL

F 4

NOP

4. Programming in the statement list

NOP means No Operation. Enter this instruction if you wish to initiate something without an input condition. Example: IF THEN

F 5

NOT

NOP F1.0

This is a negation. You may use this to invert an input condition. For example, if output O1.0 is not active, the program should jump to the Reset step. Example: IF THEN

N JMP TO

O1.0 Setup

THEN

THEN always introductes an execution statement (see section 4.3.1).

F STL 8 commands

This function returns you to the STL commands as illustrated in Fig. 4.9.

F 7

9610a

SET

4-33

Page 130

FST 200-STL

4. Programming in the statement list

4.3.3 STL execution statement This key assignment is accessed by selecting function F3 in the screen illustrated in Fig. 4.4 or immediately after entering an THEN instruction.

Fig. 4.11: STL execution statement

4-34

F 1

SET

SET activates a one-bit operand. This may be used, for instance, to set an output to logical one.

F 2

RESET

RESET is the counterpart to SET. This deactivates a one-bit operand. This may be used, for instance, to set an output to logical zero.

9610a