Siemens SIMATIC STEP 7 V5.2 Getting Started page 91

Table of Contents

Advertisement

10.2 Programming FB10
To call FB1 as a "local instance" of FB10, in the variable detail view a static
variable must be declared with a different name for each planned call of FB1.
Here, the data type is FB1 ("Engine").
Declare / Define Variables
FB10 is open in the LAD/STL/FBD program window. Transfer the declarations of
the subsequent image to your variable detail view. To do this, select the
declaration types "OUT", "STAT" and "TEMP" one after the other and make your
entries in the variable detail view. Select "FB <nr>" as the data type for the
declaration type "STAT" from the pull-down list and replace the character string
"<nr>" with the "1".
STEP 7 Getting Started
A5E00171228-01
Programming a Multiple Instance
The declared local instances will then appear in the
"Program elements" tab under "Multiple Instances."
10-3

Advertisement

Table of Contents
loading

Table of Contents