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...
Programming a Function
8-2
STEP 7 Getting Started
A5E00171228-01
Insert a Function (FC) from the
pop-up menu.
In the "Properties – Function" dialog
box, accept the name FC1 and select
the required programming language.
Confirm the remaining default settings
with OK.
The function FC1 is added to the
Blocks folder.
Double-click to open FC1.
In contrast to the function block, no static data can be defined in the variable declaration
table for a function.
The static data defined in a function block are retained when the block is closed. Static data
can be, for example, the memory bits used for the "Speed" limit values (see Chapter 5).
To program the function, you can use the symbolic names from the symbol table.
You can find more information under
Help > Contents
in the
topics "Working Out the Automation Concept," "Basics of
Designing a Program Structure," and "Blocks in the User
Program".

Related product manuals