Siemens SIMATIC STEP 7 V5.2 Getting Started page 52

Table of Contents

Advertisement

Creating a Program with Function Blocks and Data Blocks
5.6
Programming a Block Call in Ladder Logic
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.
OB1
5-16
FB1
"Engine"
Call
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.
In the program elements catalog
navigate to FB1 and insert it via a
double-click.
Insert a normally open contact in front
of each of the following: Switch_On,
Switch_Off, and Fault.
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.
DB1
Petrol Engine
Data
DB2
Diesel Engine
Data
STEP 7 Getting Started
A5E00171228-01

Advertisement

Table of Contents
loading

Table of Contents