Creating a Program in OB1
4-2
STEP 7 Getting Started
A5E00171228-01
Copying the Symbol Table and Opening OB1
If necessary, open your "Getting
Started" project. To do this, click the
Open button in the toolbar, select the
"Getting Started" project you created,
and confirm with OK.
Depending on which programming
language you have decided to use, in
the "Sample projects" tab open one of
the following projects as well:
•
ZEn01_05_STEP7__LAD_1-9
•
ZEn01_01_STEP7__STL_1-9
or
•
ZEn01_03_STEP7__FDB_1-9
Here you can see all three sample
projects displayed.
Navigate in the "ZEn01_XXX“ until you
reach the Symbols component and
copy this by dragging and dropping it
to the S7 Program folder in your
project window "Getting Started."
Then close the window "ZEn01_XXX“.
Double-click OB1 in the "Getting
Started" project. The LAD/STL/FBD
program window is opened.
In STEP 7, OB1 is processed cyclically by the CPU. The CPU reads line by line and
executes the program commands. When the CPU returns to the first program line, it has
completed exactly one cycle. The time required for this is known as the scan cycle time.
Depending on which programming language you have selected, continue reading in either
Section 4.2 for programming in Ladder Logic, Section 4.3 for Statement List, or Section 4.4
for Function Block Diagram.
You can find more information under Help > Contents
in the topics “Programming Blocks“ and "Creating
Blocks and Libraries.“
Drag and drop means that you click any object
with the mouse and move it whilst keeping the
mouse button depressed. When you release the
mouse button, the object is pasted at the selected
position.
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 ...