01/2007
6.4 Creating a PLC program
6-152
© Siemens AG 2007 All Rights Reserved
SINUMERIK 840Di sl Manual (HBIsl) – 01/2007 Edition
6.4 Creating a PLC program
6.4.1 PLC basic program
To insert the PLC basic program in the S7 project: SIN840Di sl you have
created, open the library installed in Section 6.1.4, Page 6-130 with menu item:
Open > File.
Select the library of the PLC basic program: for example, gp8x0d65 and confirm
the dialog box with OK.
mcp840Di F:\Program Files\Siemens\Step7\S7proj\mcp840Di
gp8x0d65 F:\Program Files\Siemens\Step7\S7libs\gp8x0d65
SIMATIC_NET_CP F:\Program Files\Siemens\Step7\S7libs\simaticn
Standard Library F:\Program Files\Siemens\Step7\S7libs\StdLib30
stdlibs (V2) F:\Program Files\Siemens\Step7\S7libs\STDLIBS
User projects Libraries
Example projects Multiple projects
Opening a project
Name Storage path
Fig. 6-8 Opening the library of the PLC basic program
Copy all blocks of the PLC basic program from the library to the block directory
of the PLC.
OB1
FB2
FB6
FB11
OB40
FB3
FB7
FB16
OB100
FB4
FB9
FB17
FB1
FB5
FB10
FB18
gp8x0d65
Modules
gp8x0d
Sources
gp8x0d65 –– F:\Siemens\Step7\S7libs\gp8x0d65
< No filter >
File Edit Insert Target System View Tools Window Help
SIN840Di sl
SIMATIC 300(1)
PLC 317–2DP 2AJ10
Modules
S7–Program(1)
Sources
OB1
SIMATIC Manager – SIN840Di sl
SIN840Di sl –– <Installation path>\Step7\S7Proj\SIN840Di sl
Fig. 6-9 Inserting blocks of the PLC basic program
Inserting blocks overwrites the existing organization block OB1. Confirm the
query as to whether you want to overwrite the block with ”Yes”.
Opening the
library
Copying blocks
Overwriting OB 1
6 PLC Commissionin