Programming a Function
8-6
STEP 7 Getting Started
A5E00171228-01
8.3 Calling the Function in OB1
The call for the function FC1 is carried out in a similar way to the call for the
function block in OB1. All the parameters of the function are supplied in OB1 with
the corresponding addresses of the petrol or diesel engine.
Since these addresses are not yet defined in the symbol table, the symbolic
names of the addresses will now be added.
The SIMATIC Manager is open with
the "Getting Started" project or your
new project.
Navigate to the Blocks folder and
open OB1.
The LAD/STL/FBD program window
opens.
Programming the Call in Ladder Logic
You are in LAD view. Select network
No. 5 and insert a new network No. 6.
Then navigate in the Program
Elements catalog until you reach FC1
and insert the function.
Insert a normally open contact in front
of "Engine_On."
Click the question marks for the FC1 call and insert the symbolic names.
An address is part of a STEP 7 statement and specifies
what the processor should execute the instruction on.
Addresses can be absolute or symbolic.
Using the menu command View >
Display > Symbolic Representation,
you can toggle between symbolic and
absolute addresses.
Summary of Contents for SIMATIC STEP 7 V5.2
Page 4: ...Welcome to STEP 7 STEP 7 Getting Started iv A5E00171228 01 ...
Page 12: ...Introduction to STEP 7 1 6 STEP 7 Getting Started A5E00171228 01 ...
Page 22: ...Programming with Symbols 3 4 STEP 7 Getting Started A5E00171228 01 ...
Page 76: ...Downloading and Debugging the Program 7 14 STEP 7 Getting Started A5E00171228 01 ...
Page 88: ...Programming a Shared Data Block 9 4 STEP 7 Getting Started A5E00171228 01 ...
Page 100: ...Programming a Multiple Instance 10 12 STEP 7 Getting Started A5E00171228 01 ...
Page 110: ...Appendix A STEP 7 Getting Started A 2 A5E00171228 01 ...