Siemens SIMATIC STEP 7 V5.2 Getting Started page 95

Table of Contents

Advertisement

10.3 Generating DB10 and Adapting the Actual Value
The new data block DB10 will replace the data blocks DB1 and DB2. The data for
the petrol engine and the diesel engine are stored in DB10 and will be required
later for calling FB10 in OB1 (see "Calling FB1 in OB1" from Section 5.6 onwards).
STEP 7 Getting Started
A5E00171228-01
Programming a Multiple Instance
Create the data block DB10 in the
Blocks folder of the "Getting Started"
project in the SIMATIC Manager using
the pop-up menu.
To do this, change the name of the
data block to DB10 in the dialog box
"Properties - Data Block", then select
the application "Instance DB" in the
adjacent pull-down list". In the right
pull-down list, select the function block
"FB10" to be assigned and confirm the
remaining settings with OK.
The data block DB10 has been added
to the "Getting Started" project.
Double-click on DB10..
In the following dialog box, answer with
Yes to open the instance DB. Select
the menu command View > Data
View.
The data view displays each individual
variable in DB10, including the "internal"
variables of the two calls for FB1 ("local
instances").
The declaration view displays the variables
as they are declared in FB10.
10-7

Advertisement

Table of Contents
loading

Table of Contents