EasyManua.ls Logo

Siemens SIMATIC STEP 7 V5.2

Siemens SIMATIC STEP 7 V5.2
112 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Creating a Program with Function Blocks and Data Blocks
5-18
STEP 7 Getting Started
A5E00171228-01
Program the call for the function block "Engine" (FB1) with the data block "Diesel"
(DB2) in a new network and use the corresponding addresses from the pull-down
list.
Save your program and close the
block.
A signal "DE_xxx" is
assigned to each of the
variables for the diesel
engine.
When you create program structures with organization blocks, function blocks, and data
blocks, you must program the call for subordinate blocks (such as FB1) in the block above
them in the hierarchy (for example, OB1). The procedure is always the same.
You can also give the various blocks symbolic names in the symbol table (for example,
FB1 has the name "Engine" and DB1 the name "Petrol").
You can archive or print out the programmed blocks at any time. The corresponding
functions can be found in the SIMATIC Manager under the menu commands File >
Archive or File > Print.
You can find more information under
Help > Contents
in the topics "Calling Reference Helps" under
"Language Description: LAD," and "Program Control
Instructions."

Related product manuals