Creating A Program With Function Blocks And Data Blocks - Siemens SIMATIC STEP 7 V5.2 Getting Started

Table of Contents

Advertisement

5
Creating a Program with Function Blocks
and Data Blocks
5.1
Creating and Opening Function Blocks (FB)
The function block (FB) is below the organization block in the program hierarchy. It
contains a part of the program which can be called many times in OB1. All the
formal parameters and static data of the function block are saved in a separate
data block (DB), which is assigned to the function block.
You will program the function block (FB1, symbolic name "Engine"; see symbol
table, page 3-3) in the LAD/STL/FBD program window, which you are now familiar
with. To do this, you should use the same programming language as in Chapter 4
(programming OB1).
STEP 7 Getting Started
A5E00171228-01
You should have already copied the
symbol table into your project "Getting
Started." If not, read how to do this on
page 4-2, copying the symbol table,
and then return to this section.
If necessary, open the "Getting
Started" project.
Navigate to the Blocks folder and
open it.
Click in the right-hand half of the
window with the right mouse button.
The pop-up menu for the right mouse
button contains the most important
commands from the menu bar. Insert a
function block as a new object.
5-1

Advertisement

Table of Contents
loading

Table of Contents