Technical data

Creating a Program with Function Blocks and Data Blocks
5.8 Programming a Block Call in Function Block Diagram
All the work you have done programming a function block is of no use unless you
call this block in OB1. A data block is used for each function block call, and in this
way, you can control both engines.
DB1
Petrol Engine
Data
FB1
"Engine"
OB1
Call
DB2
Diesel Engine
Data
The SIMATIC Manager is open with
your "Getting Started" project.
Navigate to the Blocks folder and
open OB1.
Select network 3 and then insert
network 4 in the LAD/STL/FBD
program window.
Then navigate in the Program
Elements catalog until you reach FB1
and insert this block.
All the engine-specific input and output
variables are displayed.
Click the ??? sign above "Engine" and
then, keeping the cursor in the same
position, click in the input frame with
the right mouse button.
Click on Insert Symbol in the shortcut
menu via a right-click on mouse button.
A pull-down list is displayed.
STEP 7 Getting Started
C79000-P7076-C48-01
5-21