S5-115U Manual
Introduction to STEP 5
7.2.2
Structured Programming
To solve complex tasks, it is advisable to divide an entire program into individual, self-contained
program parts (blocks). This procedure has the following advantages:
This procedure has the following advantages:
•
simple and clear programming, even for large programs
•
capability to standardize program parts
•
easy alteration
•
simple program test
•
simple start-up
•
subroutine techniques (block call from different locations)
The STEP 5 programming language has the following five block types:
•
Organization Block (OB)
Organization blocks manage the control program.
•
Program Block (PB)
Program blocks arrange the control program according to functional or technical aspects.
•
Sequence Block (SB)
Sequence blocks are special blocks that program sequence controls. They are handled like
program blocks.
•
Function Block (FB)
Function blocks are special blocks for programming frequently recurring or especially complex
program parts (e.g., reporting and arithmetic functions). You can assign parameters to them.
They have an extended set of operations (e.g., jump operations within a block).
•
Data Block (DB)
Data blocks store data needed to process a control program. Actual values, limiting values,
and texts are examples of data.
EWA 4NEB 811 6130-02b
7-5
Summary of Contents for SIMATIC S5-115U
Page 6: ...EWA 4NEB 811 6130 02b ...
Page 16: ...EWA 4NEB 811 6130 02b ...
Page 18: ...EWA 4NEB 811 6130 02b ...
Page 26: ......
Page 62: ...EWA 4NEB 811 6130 02b ...
Page 64: ...EWA 4NEB 811 6130 02b ...
Page 67: ......
Page 74: ......
Page 79: ......
Page 80: ......
Page 81: ......
Page 82: ......
Page 83: ......
Page 84: ......
Page 97: ......
Page 98: ......
Page 99: ......
Page 114: ...EWA 4NEB 811 6130 02b ...
Page 280: ...EWA 4NEB 811 6130 02b ...
Page 372: ...EWA 4NEB 811 6130 02b ...
Page 432: ...EWA 4NEB 811 6130 02b ...
Page 442: ......
Page 528: ...EWA 4NEB 811 6130 02b ...
Page 590: ......
Page 591: ......
Page 592: ......
Page 593: ......
Page 594: ......
Page 600: ...EWA 4NEB 811 6130 02b ...
Page 602: ...EWA 4NEB 811 6130 02b ...
Page 604: ...EWA 4NEB 811 6130 02b ...
Page 624: ...EWA 4NEB 811 6130 02b ...
Page 632: ...EWA 4NEB 811 6130 02b ...
Page 644: ...EWA 4NEB 811 6130 02b ...
Page 646: ...EWA 4NEB 811 6130 02b ...
Page 652: ...EWA 4NEB 811 6130 02b ...
Page 654: ...EWA 4NEB 811 6130 02b ...
Page 660: ...EWA 4NEB 811 6130 02b ...
Page 662: ...EWA 4NEB 811 6130 02b ...
Page 666: ...EWA 4NEB 811 6130 02b ...
Page 668: ...EWA 4NEB 811 6130 02b ...
Page 674: ...EWA 4NEB 811 6130 02b ...