6-3
Primer: S7-300 Programmable Controller, Quick Start
C79000-G7076-C500-01
Program an organization block (OB1)
and a function (FC1) for the TLIGHT
sample program.
The table below shows you how to create the required function:
Step Procedure Result
1.
Open the TLIGHT project in the SIMATIC
Manager with the menu command File → Open
→ Project ....
The project window for the TLIGHT sample
program is opened offline.
2.
Open the containers of the TLIGHT project
down to the lowest level by clicking on “+” and
select the “Blocks” container.
The OB1 stored in the “Blocks” container is
displayed offline.
3.
Insert a function with the name FC1 using the
menu command Insert → S7 Block → FC.
In the dialog box which then appears, select the
programming language you require (STL, LAD,
or FBD) and confirm with “OK”.
FC1 and OB1 are displayed offline in the project
window of the SIMATIC Manager.
Since we don’t know whether you
prefer to program in STL, LAD, or
FBD, we’ll just show you both
methods.
How Do You
Proceed?
Programming Logic Blocks with STEP 7
How Do You Create the Required Blocks?