Eplan p8 Simatic S7 PLC
Eplan p8 Simatic S7 PLC
Eplan p8 Simatic S7 PLC
31.07.2008
Copyright 2008 EPLAN Software & Service GmbH & Co. KG.
EPLAN Software & Service GmbH & Co. KG assumes no liability for either technical or printing errors,
or for deficiencies in this technical information and cannot be held liable for damages that may result
directly or indirectly from delivery, performance, and use of this material.
This document contains legally protected ownership information that is subject to copyright. All rights
are protected. This document or parts of this document may not be copied or reproduced by any other
means without the prior consent of EPLAN Software & Service GmbH & Co. KG.
The software described in this document is subject to a licensing agreement. The software may only
be used and copied within the scope of this agreement.
EPLAN , EPLAN Electric P8 , EPLAN Fluid , EPLAN PPE and EPLAN Cabinet are registered
trademarks of EPLAN Software & Service GmbH & Co. KG.
Excel , Microsoft Access , and Notepad are registered trademarks of Microsoft Corporation.
CLIP PROJECT and INTERBUS are registered trademarks of Phoenix Contact GmbH & Co.
AutoCAD , Autodesk Inventor , and VoloView Express are registered trademarks of Autodesk, Inc.
Adobe Reader and Adobe Acrobat are registered trademarks of Adobe Systems Inc.
All other product names, trade names, and company names are trademarks or registered trademarks
of their respective owners.
EPLAN uses the Open-Source-Software 7-Zip (7za.dll), Copyright by Igor Pavlov. The source code
of 7-Zip is subject to the GNU Lesser General Public License (LGPL). The source code of 7-Zip and
details on this license can be found on the following website: http://www.7-zip.org
Note: The hardware requirements specified by the operating system manufacturers are valid
for the hardware that is used. Hardware combinations that cause faults according to
information from manufacturers may also affect the operation of EPLAN. Therefore an accurate
basic installation of hardware, operating system and hardware drivers (e.g., graphics card
driver, etc.) is essential for a smooth operation of EPLAN. The basic conditions and areas of
application specified by the hardware manufacturers apply similarly to the operation of EPLAN.
Siemens AG was kind enough to permit use of the illustrations from the "SIMATIC STEP 7"
program.
EPLAN Software & Service GmbH & Co. KG. does not provide support for the Software
"SIMATIC STEP 7" in any way.
2 / 64
Table of Contents
The PLC / Bus Data Exchange with "SIMATIC STEP 7" by
Siemens ............................................................................................. 4
Preconditions ............................................................................................. 5
General Notes for the Data Exchange Process ......................................... 6
What You Need to Know in Advance......................................................... 7
3 / 64
4 / 64
Preconditions
The example used in this document was created and tested with
"SIMATIC STEP 7" Version 5.4 + SP3, edition K5.4.3.0.
All illustrations and operating sequences of "SIMATIC STEP 7" described
in this document relate to this version.
You will need the following to recreate this example:
The appropriate "EPLAN PLC & Bus-Extension" license scope in
EPLAN
The "SIMATIC STEP 7" software, which is not part of the delivery
scope of EPLAN or of this application example You may obtain this
software from your Siemens representative.
We also assume basic knowledge of the operation of the "SIMATIC
STEP 7" software.
A prerequisite to reconstructing the following steps is that you have
opened the EPLAN-DEMO demo project.
5 / 64
6 / 64
7 / 64
8 / 64
9 / 64
The Bus master / Bus coupler or Slave to bus master / bus coupler
ID function properties serve to link the individual communication units
with each other. The result of this link will be displayed directly in the
upper portion of the PLC / bus configuration navigator.
All settings for the communication units are performed in the properties
of the PLC boxes on the Bus data tab. The Bus data tab is only
available in the main function (PLC box).
Please select an entry from the Communication units list; this displays
the data of the corresponding communication unit in the other fields,
where they may be edited.
11 / 64
12 / 64
Note:
When assigning addresses in the schematic, be sure to maintain the
format you have set here; otherwise the information will be exported to
the PLC connection point incorrectly or not at all.
Plug DT:
Enter the DT of the plug on which the connection point is located here.
As for terminals, the DT can be adopted from the left (or above).
The plug of a PLC card is not shown as an independent object in the
navigator. These are only information about PLC connection points or
channels which are taken into account when identifying an individual
PLC connection point and when building cross references.
Function text:
Here you enter the function text for the function / device.
Please note that only function texts that are allowable in "SIMATIC STEP
7" may be entered. For instance, character length must not exceed 80
characters, and quotation marks (") are not permitted.
Apart from the manual function text entered here, there is additional
(automatically determined) function text, which you can find in the
property table in the "Data" category:
Function text (automatic): Shows the content of the manually
entered function text or, when that is empty, the path function text. If
no path function text is found at a PLC connection point, then the
Function text (automatic) of the connected sensor or actuator is
displayed. When you edit this function text in the Properties (global)
editing mode, the contents are transferred back to the function where
the function text was originally entered.
Function text (common): Shows the (automatic) function text of
the function or, when that is empty, the (automatic) function text of
the associated main function.
14 / 64
The function text is written to the Comment field with the data export
from "SIMATIC STEP 7" and read during data import from the Comment
field.
The comment length in "SIMATIC STEP 7" is limited to 80 characters;
longer comments will be truncated by "SIMATIC STEP 7" during import.
Display of the function text in "SIMATIC STEP 7":
Address:
The address can be entered manually or assigned automatically. It is not
identifying for the PLC connection point. The address must be unique
within a CPU.
Display of the address in "SIMATIC STEP 7":
15 / 64
Symbolic Address:
Enter the symbolic address for the PLC connection point here.
Please note that only names that are allowed in "SIMATIC STEP 7" may
be entered. This means that the character length may not exceed 24
characters, and quotation marks (") are not allowed.
Furthermore symbolic addresses must be unique within a CPU.
Apart from the symbolic address entered here, there are additional
(automatically determined) properties, which can be found in the property
table in the "PLC data" category:
Symbolic address (determined): Using target tracking, the
connected sensor (for inputs) or actuator (for outputs) is found, and
its DT is automatically entered as the symbolic address. If no
sensor / actuator is found, then the DT of the last connected
function found before the search was abandoned is entered. For
the determined symbolic address, information from the connection
logic is used to decide which connection is to be followed in the
search for a sensor / actuator.
Symbolic address (automatic): Shows the content of the
manually entered symbolic address or, when that is empty, the
automatically determined symbolic address.
Display of the symbolic address in "SIMATIC STEP 7":
16 / 64
Channel:
The channel designation can be manually or automatically assigned. A
channel must be unique within a PLC card. For power supply connection
points, the assignment is usually graphical. You must only manually
enter the channel designation for supply connection points when no
graphical assignment is possible. The table of properties contains the
Channel (automatic) property, which contains the automatically
determined designation.
Enter the channel designations for "SIMATIC STEP 7" as follows:
For digital or analog inputs "Inx"
For digital or analog outputs "Outx"
The "x" stands for the consecutive number of the PLC connection point.
Start with "0" and number the connection points consecutively. Start over
with the value "0" for each PLC card.
Function definition:
The currently selected function definition is displayed in this field; click
[...] to open the Function definitions dialog to select a different function
definition if required.
The function definitions for PLC connection points are split into different
groups:
PLC connection point, power supply: for the power supply of
sensors and actuators, sorted by potential type.
PLC connection point, bus cable: for the connection point of bus
nodes.
PLC connection point, I / O: for analog or digital inputs and outputs.
PLC connection point, card power supply: for the power supply of
the PLC card, sorted by potential type.
17 / 64
Note:
Only PLC connection points with the PLC connection point, I / O
function definition will be considered for a data exchange, since all no
other PLC connection points used in the "SIMATIC STEP 7" software.
Data type:
Enter the data type manually or select a value from the drop-down list.
Depending on the chosen PLC type, this list offers different data types.
By changing the PLC type set on the project, the data type set for an
address is not changed.
Display of the data type in "SIMATIC STEP 7":
Tip:
The settings on the PLC connection points of a card can also easily be
applied from the Parts management. To do so, you must enter the
corresponding data in the parts management of the individual parts
beforehand (additional information about parts management can also be
found in the EPLAN Help section, keyword "Tab Function template"):
1. Select the menu items Utilities > Parts > Management.
2. Open the parts tree under Electrical engineering > Component >
PLC in the Parts management <...> dialog.
3. Select the desired element.
18 / 64
5. Enter data into the input fields (for input field definitions, refer to
"Meaning of the Function Properties" above).
Observe the sequence of the templates in accordance with the
addressing.
During an import from "SIMATIC STEP 7", the connection point
designation is determined based on the sequence, since this
designation is not included in the import file.
6. Click [OK].
The settings are now saved.
19 / 64
Tip:
If function properties are not visible, you can add them to the view:
1. Open the =EBS+EB3/1 page of the EPLAN-DEMO demo project.
2. Mark the +ET1-A1 PLC box and select the menu items Edit >
Properties.
3. In the Properties <...> dialog, select the PLC box tab.
4. In the Properties group box, select the PLC-Data Category.
20 / 64
21 / 64
Workstation type:
This is where you enter the SIMATIC system platform used. Currently
"SIMATIC STEP 7" uses the following values:
SIMATIC system platform
Station type
S7300
S7400
SIMATIC H station
S7400H
SIMATIC PC station
PC_BASED
SIMATIC HMI
HMI_BASED
Designating the station type is only necessary for a PLC box that
represents a CPU.
Device ID / GSD file name:
If a GSD or GSDML file is needed for a PLC box, enter the appropriate
file name here without a path, but with a file extension. The PLC type
designation property has to stay blank in this case.
A GSD file contains device information that is not listed in the standard
hardware catalog of "SIMATIC STEP 7".
You obtain these GSD files from the manufacturers of the individual
components.
This field will be populated from the Device ID / GSD file name field in
parts management if you have assigned a part to the PLC box.
22 / 64
In order to have "SIMATIC STEP 7" find and assign device information
during the import, this device information must first be installed in the
hardware catalog of "SIMATIC STEP 7":
1. Select the Hardware PLC box in your project in the "SIMATIC STEP
7" program.
2. Select the menu items Edit > Open object.
The "HW Config" program will start.
3. Select the menu items Options > Install GSD files in the "HW
Config" program.
4. In the Install GSD files dialog, select the GSD files that are to be
installed.
Note:
Once GSD files have been installed, they will be available for all
SIMATIC projects.
PLC type designation:
Enter the original order number of the SIMATIC component, making sure
to pay attention to the position of any blank spaces.
A synchronization with parts management will be run during the import
from "SIMATIC STEP 7" using the PLC type designation as a search
criterion.
23 / 64
This field will be populated from the PLC type designation field in parts
management if you have assigned a part to the PLC box.
24 / 64
Note:
If you carried over the PLC box via the parts selection from the Part
management, you will usually find the original PLC type designation in
this field, which is not available in the GSD file this way. Please correct
this entry in order to make the PLC box locatable during the import into
"SIMATIC STEP 7".
25 / 64
Object description:
Here, enter the object designation under which the object is created in
"SIMATIC STEP 7".
Display of the object description in "SIMATIC STEP 7":
This field will be populated from the Object description field in parts
management if you have assigned a part to the PLC box.
26 / 64
27 / 64
Address range:
Enter the number of input / output bytes that the PLC card assigns by
default here.
Group / start address:
Enter the start byte that begins the card addressing here. This value will
also be used as the configuration value for newly addressing any PLC
connection points.
Note:
This value will be used for the data export.
Therefore, please make sure to renumber with "Group" as the
configuration value. Otherwise you may create a discrepancy between
the value entered here and the card addresses. This will generate a
faulty data export.
Version:
Enter a possible (firmware) version of the PLC device here.
Display of the (firmware) version in "SIMATIC STEP 7":
28 / 64
29 / 64
CPU: Name
The program "SIMATIC STEP 7" allows you to set up several CPU
assemblies in one station. These CPU assemblies are numbered
consecutively beginning with "1".
Make the following entries here if there are several CPUs in your station.
Enter the CPU number in the PLC box representing the CPU.
or
Enter the number of the CPU that controls this card in all other PLC
boxes.
Display of the CPU number in "SIMATIC STEP 7" using a CPU 414-2DP
as an example (this is not used in the EPLAN-DEMO project):
30 / 64
Bus coupler:
This check box needs to be selected if the PLC box represents a bus
coupler assembly; otherwise keep it deactivated.
CPU:
This check box needs to be selected if the PLC box represents a CPU
assembly; otherwise keep it deactivated.
Power supply:
If the PLC box represents a power supply assembly, this check box
needs to be selected; otherwise keep it deactivated.
Bus distribution device:
If the PLC box represents a bus distribution assembly, this check box
needs to be selected; otherwise keep it deactivated.
These fields will be populated from the corresponding fields in parts
management if you have assigned a part to the PLC box.
31 / 64
32 / 64
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
Station 300
=EB3+ET2-A2
=EB3+ET2-A3
=EB3+ET2-A4
=EB3+ET2-A5
=EB3+ET2-A6
=EB3+ET2-A7
=EB3+ET3-A0
=EB3+ET3-A1
=EB3+ET3-A2
=EB3+ET3-A3
=EB3+ET3-A4
=EB3+ET3-A5
=EB3+ET3-A6
=EB3+ET4-A0
=EB3+ET4-A1
=EB3+ET4-A2
33 / 64
=EB3+ET4-A5
Station 300
Station 300
Station 300
=EB3+ET2-A1
=EB3+ET4-A4
Station 300
=EB3+ET1-A3
PXC_00F0.GS
BK3100.GSG
IB IL 24 DO 2
IB IL 24 DO 2
Universal module
IB IL 24 DI 2
IB IL 24 DI 2
6ES7 132-4BB01-0AA0
6ES7 132-4BB01-0AA0
6ES7 138-4CA01-0AA0
6ES7 131-4BB01-0AA0
6ES7 131-4BB01-0AA0
6ES7 138-4CA01-0AA0
6ES7 151-1CA00-0AB0
Universal module
6ES7 322-1BH01-0AA0
6ES7 321-1BH02-0AA0
IB IL 24 DO 2 PAC
IB IL 24 DO 2 PAC
IB IL 24 PWR IN-PAC
IB IL 24 DI 2 PAC
IB IL 24 DI 2 PAC
IL PB BK DP/V1
2DO DC24V/0.5A ST
2DO DC24V/0.5A ST
PM-E DC24V
2DI DC24V ST
2DI DC24V ST
PM-E DC24V
IM151-1 Basic
8DA
8DA
8DE
8DE
8DE
BK3100
DO16xDC24V/0.5A
DI16xDC24V
CPU315-2DP
Object description
X
1 33
1 32
1 31
1 30
1 23
1 22
1 21
1 20
1 14
1 13
1 12
1 11
1 10
2 2
2 0
Address range
Station 300
Station 300
=EB3+ET1-A2
6ES7 315-2AG10-0AB0
Group / start
address
=EB3+ET4-A3
Station ID
Device ID
(GSD file
name)
CPU
=EB3+ET1-A1
DT
Station
type
Bus coupler
CPU: Name
Version
Configuration project:
See also "What is a Configuration Project" in Chapter one.
Rack ID:
If the PLC box is a rack or a head station, then enter the classification
number of the rack here. The identifier of a rack must be unique within a
configuration project and can therefore appear repeatedly within a
schematic project.
Module is placed on rack ID:
If the PLC box is not a rack, but is mounted on a rack or connected to a
head station, enter the classification number of the rack or head station
that the PLC card is mounted on.
Note:
The numbering of the racks is up to you. Please make sure that the
cards of a rack all have the same identifier.
34 / 64
Tips:
The "SIMATIC STEP 7" software starts all rack numbers with "0" and
then uses consecutive numbering. Use this type of numbering also in
EPLAN in order to identify the components of both programs more
easily.
If the rack is connected via a bus system, the "SIMATIC STEP 7"
software will show the slave address as a number for the rack.
Position (slot / module):
If the PLC box is not a rack, but is mounted on a rack or added to a head
station, enter the classification number of the slot on the rack on which
the PLC card is mounted.
Notes:
Depending on the type of rack used, gaps in the position allocation
are allowed. EPLAN is not capable of checking whether
gaps are allowed in the positioning of the racks. This cannot be
checked until a data import in "SIMATIC STEP 7" is done.
If there is no rack present (e.g., in case of a head station), the
elements will be lined up consecutively without spaces.
There are PLC cards that do not need a rack and can be mounted
directly onto a DIN rail, for instance. In this case, populate the two
fields Rack ID and Position on the first rack (head station, usually this
is the CPU or a bus coupler) with the corresponding values.
35 / 64
36 / 64
Rack
=EB3+ET1-A2
=EB3+ET1-A3
37 / 64
38 / 64
Station 1
DT
Rack
=EB3+ET2-A1
=EB3+ET2-A2
=EB3+ET2-A3
=EB3+ET2-A4
=EB3+ET2-A5
=EB3+ET2-A6
=EB3+ET2-A7
Station 2
DT
Rack
=EB3+ET3-A0
=EB3+ET3-A1
=EB3+ET3-A2
=EB3+ET3-A3
=EB3+ET3-A4
=EB3+ET3-A5
=EB3+ET3-A6
Station 3
DT
=EB3+ET4-A0
Rack
=EB3+ET4-A1
=EB3+ET4-A2
=EB3+ET4-A3
=EB3+ET4-A4
=EB3+ET4-A5
39 / 64
Notes:
If the rack is connected via a bus system, the "SIMATIC STEP 7"
software will not show a number for the rack; the slave address on the
bus system will be shown instead.
40 / 64
41 / 64
42 / 64
43 / 64
44 / 64
CPU315-2DP (=EB3+ET1-A1)
45 / 64
Communication
unit
=EB3+ET3A0
IM151-1 Profibus
Basic
Profibus DP
DP
Master
DP
Master
Position / Node ID
Profibus DP
Slave to bus
master / bus
coupler ID
Profibus
BK3100
Bundle / Network
ID
=EB3+ET2A1
Bus system
DT
Position / Node ID
Slave to bus
master / bus
coupler ID
Bundle / Network
ID
Bus system
Communication
unit
DT
DP
Profibus
Profibus
DP
DP
Master
2
MPI
MPI Bus
MPI
MPI
Master
2
Position / Node ID
Slave to bus
master / bus
coupler ID
Bus system
Communication
unit
DT
Bundle / Network
ID
=EB3+ET1A1
b.) Station 1
c.) Station 2
46 / 64
=EB3+ET4A0
IL PB
BK
DP/V1
Profibus
Profibus DP
DP
Master
Position / Node ID
Slave to bus
master / bus
coupler ID
Bundle / Network
ID
Bus system
DT
Communication
unit
d.) Station 3
Tip:
Some of the settings of the PLC cards can also be easily applied from
the parts management. To do so, you must enter the corresponding data
in the parts management of the individual parts beforehand (additional
information about parts management can also be found in the EPLAN
Help section, keyword "Tab Function template"):
1. Select the menu items Utilities > Parts > Management.
2. In the Parts management <...> dialog, open the levels Electrical
engineering > Component > PLC in the parts tree.
3. Select the desired element.
47 / 64
5. Enter data into the input fields (check in "Meaning of the Function
Properties" for more information on the meaning of the input fields).
6. Save the input by clicking the [Apply] or [Close] button.
Note:
If the parts selection is done subsequently, after a function has already
been set up and values have already been entered in the corresponding
function properties, the function properties will be overwritten by the
parts properties. If the parts data is incomplete, you may actually lose
already existing entries.
48 / 64
1. Open the Export PLC data dialog and choose the configuration
project you want to export from the Configuration projects dropdown list.
2. From the Language drop-down list, select the language in which the
function texts should be exported.
3. From the Format of export file drop-down list, select
Siemens SIMATIC STEP 7 Version 5.3 / 5.4.
49 / 64
50 / 64
51 / 64
In the Import CAx data dialog, you can use the check box in the
Selection column to establish which data is to be imported or
synchronized.
"SIMATIC STEP 7" displays in the Status column if the data to be
imported:
Is only present in the import file (CAx)
Is only present in the STEP 7 project
Is identical in the import file and the STEP 7 project
or if it is different.
8. In the Selection column, click the check box in the first row to import
all data.
9. Click [Import].
The data is imported.
Any data that could not be imported will be marked red in the
selection list; the [Display Log] button will make an error log
available.
10. Click [Close] to end the import process.
Note:
If during the export from EPLAN several stations were exported, you will
need to insert a new station and repeat steps 4 through 10 for each
station, meaning, for each export file.
5. In the Import CAx file dialog, select the file you previously exported
from EPLAN.
6. Click on [Open].
In the Import CAx data dialog, you can use the check box in the
Selection column to establish which data is to be imported or
synchronized.
"SIMATIC STEP 7" displays in the Status column if the data to be
imported:
Is only present in the import file (CAx)
Is only present in the STEP 7 project
Is identical in the import file and the STEP 7 project
or if it is different.
7. Select the check boxes in the Selection column for the data you
would like to import again.
53 / 64
8. Click [Import].
The data is imported.
Any data that could not be imported will be marked red in the
selection list; the [Display Log] button will make an error log
available.
9. Click [Close] to end the import process.
Note:
If during the export from EPLAN several stations were exported, repeat
steps 3 to 9 for each station, meaning for each export file.
54 / 64
5. In the Export CAx Data dialog, click the [Browse] button in order to
establish the path where the export data is to be saved.
55 / 64
56 / 64
57 / 64
58 / 64
60 / 64
62 / 64
63 / 64
64 / 64