The text of a manual · part 40 of 50
Festo Software Tools: Statement list and Ladder diagram for SF 3, FST 200 Manual, pages 391 to 400
Pages 391 to 400 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 391
FST 200-STL
Appendix A
Input Operations:
interrogate
I0.0 - I31.7 I0.0.0 - I0.15.7 I1.0.0 - I31.15.7 I1.0.0 - I31.7.15
One-bit, local inputs (incl. CP, AS-i) One-bit, diagnostics inputs One-bit, field bus inputs (8 bit) One-bit, field bus inputs (16 bit)
Input words Operations:
load, compare
IW0 - IW31 IW0.0 - IW31.15 IW1.0 - IW31.7
Multi-bit-bit, local inputs (incl. CP, AS-i) Multi-bit, diagnostics and field bus inputs (8 bit) Multi-bit, field bus inputs (16 bit)
Output Operations:
interrogate, set, assign
O0.0 - O31.7 O0.0.0 - O0.15.7 O1.0.0 - O31.15.7 O1.0.0 - O31.7.15
One-bit, local outputs (incl. CP, AS-i) One-bit, diagnostics outputs One-bit, field bus outputs (8 bit) One-bit, field bus outputs (16 bit)
Output words Operations:
load, compare, assign
OW0 - OW31 OW0.0 - OW31.15 OW1.0 - OW31.7
9610a
Multi-bit-bit, local outputs (incl. CP, AS-i) Multi-bit, diagnostics and field bus outputs (8 bit) Multi-bit, field bus outputs (16 bit)
A-5
Page 392
FST 200-STL
Appendix A
Timer Operations:
One-bit: interrogate, start, stop Multi-bit: load, compare
T0 to T31 TW0 to TW31 TP0 to TP31
Timer status, pulse timer, one-bit Timer word, multi-bit Timer preselection, multi-bit Preselection value:
0.00 to 655.35s
Counter Operations:
one-bit: interrogate, set, reset Multi-bit: load, compare, assign
C0 to C31 CW0 to CW31 CP0 to CP31
Counter status, one-bit Counter word, multi-bit Counter preselection, multi-bit Preselection value: decimal +/-: -32768 to +32767 decimal +: 0 to 65535 hexadecimal: $0000 to $FFFF
Constant Operations: Vnnnnn load, compare Multi-bit Range of values: decimal +/-: -32768 to +32767 decimal +: 0 to 65535 hexadecimal: $0000 to $FFFF
A-6
9610a
Page 393
FST 200-STL
Appendix A
Register Operations:
load, compare, assign
R0 to R127
Multi-bit Range of values: decimal +/-: -32768 to +32767 decimal +: 0 to 65535 hexadecimal: $0000 to $FFFF
Function unit Operations:
load, compare, assign
For SF 3 FU0 to FU4095
Special function unit Module parameters
Program Operations:
interrogate, set, load
P0 to P15
One-bit
Error Operations:
interrogate, delete
E EW
One-bit Multi-bit
Index register Operations: load, compare, assign for indexed addressing x, y
9610a
Multi-bit
A-7
Page 394
FST 200-STL
Appendix A
A.1.3 Syntax Operand
Address key
Iw.b Ow.b Ef.w.b Af.w.b IWw OWw IWf.w OWf.w f= w= b= field bus station no. word number bit number
Fw.b FWw w= b= flag word number bit number
Pp p= program number
Timer preselection The values in the timer preselection are expressed in hundredths of a second e.g.: TP=125 ... timer preselection is 1.25 seconds). You may also enter the timer preselection as real-time e.g.: 123.45s.
A-8
9610a
Page 395
FST 200-STL
A.2
Appendix A
Multitasking operation for programmable valve terminal with control block SF 3 The SF 3 has a multitasking-capable operating system. This permits a number of tasks to be processed simultaneously on the one processor. A task is a single processor cycle; i.e. one step in an STL program. Comment on modules If you call a program or function module instead of a further program, the module takes the place of the next step. The calling program will only be continued at the point of suspension once the module has been completely processed. The multitasking process is described in detail in the SF-3 description "Electronics".
9610a
A-9
Page 396
FST 200-STL
A.3
Appendix A
Syntax of the control program in the statement list The last section in this appendix shows all possible STL statement list diagrams in the sequence appropriate for programming. These are intended to help you as a user of the statement list in your program generation work. Please consult appendix A.1.2 for the range of values of the various operands.
Program of statement list:
Step
End
Statement
Execution part
Step:
Step
A-10
Label
THEN
Execution part
Statement
9610a
Page 397
FST 200-STL
Appendix A
Statement:
IF
Conditional part
THEN
NOP
Execution part NOP
OTHRW
Execution part NOP
Conditional part:
Multi-bit comparison
Bit assignment
EXOR expression
Bit assignment
LOAD AND OR EXOR
9610a
A-11
Page 398
FST 200-STL
Appendix A
EXOR Expression:
One-bit operand
AND OR EXOR
One-bit operand:
Bit operand N NOT
(
EXOR expression
)
Multi-bit comparison
Bit operand:
Operand reference Input (I) Output (O) Flag (F) Counter (C) Timer (T) Error (E) Program (P)
A-12
9610a
Page 399
FST 200-STL
Appendix A
Multi-bit comparison:
Multiple-bit value
< <= = => > <>
Multiple-bit value
Multi-bit value:
Base term * / + AND OR EXOR
Base term:
Word operand (
9610a
Multi-bit value
SI )
A-13
Page 400
FST 200-STL
Appendix A
Execution part:
One-bit expression Multi-bit expression Count command SET
Settable bit operand Program
RESET
Settable bit operand Program Error
Module call PSE JMP TO
A-14
Label
9610a