Structured Programming - Siemens SIMATIC S5-115U User Manual

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

S5-115U Manual
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
Introduction to STEP 5
7-5

Advertisement

Table of Contents
loading

Table of Contents