Siemens Simatic S7-300 CPU 31xC, Simatic S7-300 CPU 312C, Simatic S7-300 CPU 314C-2 DP, Simatic S7-300 CPU 313C-2 DP, Simatic S7-300 CPU 314C-2 PtP Installation And Operating Instructions Manual
Siemens Simatic S7-300 CPU 31xC, Simatic S7-300 CPU 312C, Simatic S7-300 CPU 314C-2 DP, Simatic S7-300 CPU 313C-2 DP, Simatic S7-300 CPU 314C-2 PtP, Simatic S7-300 CPU 312, Simatic S7-300 CPU 31, Simatic S7-300 CPU 314, Simatic S7-300 CPU 315-2 DP, Simatic S7-300 CPU 315-2-PN/DP, Simatic S7-300 CPU 317-2 DP, Simatic S7-300 CPU 317-2 PN/DP, Simatic S7-300 CPU 313C-2 PtP, Simatic S7-300 CPU 313C Installation And Operating Instructions Manual
Debugging functions, diagnostics and troubleshooting
Appendix
7
8
9
10
A
This manual is part of the documentation package
with the order number: 6ES7398-8FA10-8BA0
Edition 08/2004
A5E00105492-05
Safety Guidelines
This manual contains notices which you should observe to ensure your own personal safety as well as to avoid
property damage. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring to property damage only have no safety alert symbol.
Danger
indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.
Warning
indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
Caution
used with the safety alert symbol indicates a potentially hazardous situation which, if not avoided, may
result in minor or moderate injury.
Caution
used without safety alert symbol indicates a potentially hazardous situation which, if not avoided, may
result in property damage.
Notice
used without the safety alert symbol indicates a potential situation which, if not avoided, may result in
an undesirable result or state.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and operated in conjunction with this documentation. Only qualified
personnel should be allowed to install and work on the equipment. Qualified persons are defined as persons who
are authorized to commission, to earth, and to tag circuits, equipment and systems in accordance with
established safety practices and standards.
Intended Use
Please note the following:
Warning
This device and its components may only be used for the applications described in the catalog or
technical description, and only in connection with devices or components from other manufacturers
approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up and installed
correctly, and operated and maintained as recommended.
Trademarks
All designations marked with ® are registered trademarks of Siemens AG. Other designations in this
documentation might be trademarks which, if used by third parties for their purposes, might infringe upon the
rights of the proprietors.
Copyright Siemens AG ,2004.All rights reserved
Reproduction, transmission or use of this document or its contents is not permitted without
express written authority. Offenders will be liable for damages. All rights, including rights
created by patent grant or registration of a utility model or design, are reserved.
Siemens AG
Automation and Drives Group
P.O. Box 4848, D-90327 Nuremberg (Germany)
Siemens Aktiengesellschaft Order No. A5E00105492-05
Disclaimer of Liability
We have checked the contents of this manual for agreement with the hardware and
software described. Since deviations cannot be precluded entirely, we cannot guarantee
full agreement. However, the data in the manual are reviewed regularly, and any
necessary corrections will be included in subsequent editions. Suggestions for
improvement are welcomed.
Siemens AG 2004
Technical data subject to change
Preface
Purpose of the manual
This manual contains all the information you need to configure, install, wire, address and
commission an S7-300.
In addition, you will become familiar with the tools you can use to diagnose and eliminate
errors in hardware and software.
Basic knowledge
To understand this manual, you require a general knowledge of automation engineering. You
should also be accustomed to working with STEP 7 basic software. For further information,
refer to the Programming with STEP 7 V5.3 manual.
Area of application
Note
The special features of the 315F-2 DP and CPU 317F-2 DP CPUs are described in their
Product Information, available on the Internet at
http://www.siemens.com/automation/service&support, article ID 17015818.
Order number
CPU designation
CPU 312C 6ES7312-5BD01-0AB0 V2.0.0 01
CPU 313C 6ES7313-5BE01-0AB0 V2.0.0 01
CPU 313C-2 PtP 6ES7313-6BE01-0AB0 V2.0.0 01
CPU 313C-2 DP 6ES7313-6CE01-0AB0 V2.0.0 01
CPU 314C-2 PtP 6ES7314-6BF01-0AB0 V2.0.0 01
CPU 314C-2 DP
CPU 312 6ES7312-1AD10-0AB0 V2.0.0 01
CPU 314 6ES7314-1AF10-0AB0 V2.0.0 01
CPU 315-2 DP 6ES7315-2AG10-0AB0 V2.0.0 01
CPU 315-2-PN/DP 6ES7315-2EG10-0AB0 V2.3.0 01
CPU 317-2 DP 6ES7317-2AJ10-0AB0 V2.1.0 01
CPU 317-2 PN/DP
CPU 31xC
6ES7314-6CF01-0AB0 V2.0.0 01
CPU 31x
6ES7317-2EJ10-0AB0 V2.3.0 01
as of version CPU Convention:
Firmware Hardware
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
iii
Preface
Approvals
CE label
Note
There you can obtain the descriptions of all current modules.
For new modules, or modules of a more recent version, we reserve the right to include a
Product Information containing latest information.
The SIMATIC S7-300 product series has the following approvals:
• Underwriters Laboratories, Inc.: UL 508 (Industrial Control Equipment)
• Canadian Standards Association: CSA C22.2 No. 142, (Process Control Equipment)
• Factory Mutual Research: Approval Standard Class Number 3611
The SIMATIC S7-300 product series satisfies the requirements and safety specifications of
the following EU Directives:
• EU Directive 73/23/EC "Low-voltage directive"
• EU Directive 89/336/EWE "EMC directive"
C tick mark
Standards
The SIMATIC S7-300 product series is compliant with AS/NZS 2064 (Australia).
The SIMATIC S7-300 product series is compliant with IEC 61131-2.
Programming Manual
From PROFIBUS DP to PROFINET I/O
Manual
• CPU 31xC: Technological functions
• Examples
Reference Manual
• S7-300 Automation System: Module data
Instruction List
• CPU 312 IFM – 318-2 DP
• CPU 31xC and CPU 31x
Getting Started
The following Getting Started editions are available
as a collective volume:
• CPU 31x: Commissioning
• CPU 31xC: Commissioning
• CPU 31xC: Positioning with analog output
• CPU 31xC: Positioning with digital output
• CPU 31xC: Counting
• CPU 31xC: Rules
• CPU 31xC: PtP communication
• CPU 31x-2 PN/DP: Commissioning a
PROFINET I/O subnet
Control and display elements, communication,
memory concept, cycle and response times,
technical data
Control and display elements, communication,
memory concept, cycle and response times,
technical data
Configuration, installation, wiring, addressing,
commissioning, maintenance and the test
functions, diagnostics and troubleshooting.
Configuration, installation, wiring, addressing,
commissioning, maintenance and the test
functions, diagnostics and troubleshooting.
Basic information on PROFINET:
Network components, data exchange and
communication, PROFINET I/O, Component
based Automation, application example of
PROFINET I/O and Component based
Automation
Guideline for the migration from PROFIBUS DP
to PROFINET I/O.
Description of the various technological
functions of positioning and counting. PtP
communication, rules
The CD contains examples of the technological
functions
Descriptions of the functions and technical data
of signal modules, power supply modules and
interface modules.
List of CPU instruction resources and the
relevant execution times. List of executable
blocks.
The example used in this Getting Started
guides you through the various steps in
commissioning required to obtain a fully
functional application.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
v
Preface
Additional information required:
Name of the manual Description
Reference Manual
System software for S7-300/400 system and standard
functions
Manual
SIMATIC NET: Twisted Pair and Fiber-Optic Networks
Manual
Component-based Automation: Configuring systems with
SIMATIC iMap
Manual
Programming with STEP 7 V5.3
Manual
SIMATIC communication
Description of the SFCs, SFBs and OBs.
This manual is part of the STEP 7
documentation package. For further
information, refer to the STEP 7 Online
Help.
Description of Industrial Ethernet
networks, network configuration,
components, installation guidelines for
networked automation systems in
buildings, etc.
Description of the engineering software
iMAP
Programming with STEP 7
Basics, services, networks,
communication functions, connecting
PGs/OPs, engineering and configuring in
STEP 7.
The devices described in this manual can be recycled, because their components contain a
minimum of harmful substances. For environment-friendly recycling and disposal of your old
equipment, contact a certified disposal facility for electronic scrap.
1 Guide to the S7-300 documentation ....................................................................................................... 1-1
2 Installation Order .................................................................................................................................... 2-1
10.6.2 Status and error displays of all CPUs .................................................................................... 10-10
10.6.3 Evaluating the SF LED in case of software errors ................................................................. 10-11
10.6.4 Evaluating the SF LED in case of hardware errors................................................................ 10-13
10.6.5 Status and Error Indicators: CPUs with DP Interface ............................................................ 10-14
10.6.6 Status displays: CPUs with PN Interface............................................................................... 10-16
10.7 Diagnostics of DP CPUs ........................................................................................................ 10-18
10.7.1 Diagnostics of DP CPUs operating as DP Master ................................................................. 10-18
10.7.2 Reading out slave diagnostic data......................................................................................... 10-21
10.7.3 Interrupts on the DP Master................................................................................................... 10-25
10.7.4 Structure of slave diagnostic data when the CPU is operated as Intelligent Slave............... 10-27
10.8 Diagnostics of PN CPUs ........................................................................................................ 10-34
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
ix
Table of contents
A Appendix.................................................................................................................................................A-1
A.1 General Rules and Regulations for S7-300 Operation ..............................................................A-1
A.2 Protection against electromagnetic interference........................................................................ A-3
A.2.1 Basic Points for EMC-compliant system installations ................................................................A-3
A.2.2 Five basic rules for securing EMC .............................................................................................A-5
A.2.2.1 1. Basic rule for ensuring EMC ..................................................................................................A-5
A.2.2.2 2. Basic rule for ensuring EMC ..................................................................................................A-5
A.2.2.3 3. Basic rule for ensuring EMC ..................................................................................................A-6
A.2.2.4 4. Basic rule for ensuring EMC ..................................................................................................A-6
A.2.2.5 5. Basic rule for ensuring EMC ..................................................................................................A-7
A.2.3 EMC-compliant installation of PLCs...........................................................................................A-7
A.2.4 Examples of an EMC-compliant installation: Cabinet installation.............................................. A-9
A.2.5 Examples of an EMC-compliant installation: Wall mounting....................................................A-10
Table 8-7 DP address areas of the CPUs................................................................................................ 8-23
Table 8-8 Event recognition by CPUs 31x-2 DP/31xC-2 DP operating as DP master ............................ 8-25
Table 8-9 Event recognition by CPUs 31x-2 DP/31xC-2 DP as DP slave............................................... 8-28
Table 8-10 Configuration example for the address areas of transfer memory........................................... 8-30
Table 8-11 PROFINET IO address areas of the CPUs.............................................................................. 8-35
Table 8-12 CPU startup for operation as IO controller............................................................................... 8-39
Table 8-13 Event detection by the CPU 31x-2 PN/DP operating as IO controller ..................................... 8-39
Table 9-1 Firmware backup to MMC..........................................................................................................9-2
Table 9-2 Updating the firmware from MMC.............................................................................................. 9-3
Table 10-1 The differences between forcing and modifying variables....................................................... 10-4
Table 10-2 Status and error displays ....................................................................................................... 10-10
Table 10-3 Evaluation of the SF LED (software error) ............................................................................. 10-11
Table 10-4 Evaluation of the SF LED (Hardware error)........................................................................... 10-13
Table 10-5 BUSF, BUSF1 and BUSF2 LEDs .......................................................................................... 10-14
Table 10-6 BUSF LED is lit ...................................................................................................................... 10-14
Table 10-7 BUSF LED flashes ................................................................................................................. 10-15
Information on.. is available in ...
Which memory concept is best suited to my application? CPU 31xC and CPU 31x Manual, Technical Data
How do I insert and remove Micro Memory Cards? S7-300, CPU 31xC and CPU 31x operating instructions:
Removing / inserting a Micro Memory Card (MMC)
Which CPU meets my demands on performance? S7-300 instruction list: CPU 31xC and CPU 31x
Length of the CPU response / execution times CPU 31xC and CPU 31x Manual, Technical Data
Which technological functions are implemented? Technological Functions Manual
How can I use these technological functions? Technological Functions Manual
Table 1-7 Communication
Information on.. is available in ...
Which principles do I have to take into account? Communication with SIMATIC Manual
PROFINET System Manual, System Description
Options and resources of the CPU CPU 31xC and CPU 31x Manual, Technical Data
How to use communication processors (CPs) to optimize
communication
Which type of communication network is best suited to my
application?
How to network the various components S7-300, CPU 31xC and CPU 31x operating instructions:
What to take into account when configuring PROFInet
networks
CP Manual
S7-300, CPU 31xC and CPU 31x operating instructions:
We will start by showing you the sequence of steps you have to follow to install your system.
Then we will go on to explain the basic rules that you should follow, and how you can modify
an existing system.
Installation procedure
Configuring
Do you want to
set up a subnet?
Mounting
Wiring
YES
2
Networking
NO
Addressing
Installation completed,
continue with commissioning
Basic rules for trouble-free operation of the S7 system
In view of the many and versatile applications, we can only provide basic rules for the
electrical and mechanical installation in this section.
You have to at least keep to these basic rules in order to obtain a fully functional SIMATICS7 system.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
2-1
Installation Order
Modifying the existing S7 system structure
To modify the configuration of an existing system, proceed as described earlier.
Reference
Note
When adding a new signal module, always refer to the relevant module information.
Also refer to the description of the various modules in the manual:
(1) Power supply (PS) module
(2) Central processing unit (CPU)
(3) Signal module (SM)
(4) PROFIBUS bus cable
(5) Cable for connecting a programming device (PG)
You use a programming device (PG) to program the S7300 PLC. Use the PG cable to
interconnect the PG with the CPU.
To commission or program a CPU with PROFINET interface, you may also use an Ethernet
cable to interconnect the PG with the PROFINET connector of the CPU. Please note that
you need to adjust the Ethernet interface on your PG.
Several S7-300 CPUs communicate with one another and with other SIMATIC S7 PLCs via
the PROFIBUS cable. Several S7-300 are connected via the PROFIBUS bus cable.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
the following S7-300 components
The example in the figure shows a CPU 31xC with integrated I/O.
3-1
S7-300 components
SIEMENS
3.2 Overview of the vital modules of an S7-300
3.2 Overview of the vital modules of an S7-300
You can choose from a number of modules for installing and commissioning the S7-300. The
most important modules and their functions are shown below.
Table 3-1 S7-300 components:
Component Function Illustration
Mounting rail
Accessories:
• Shielding terminal
Power supply (PS) module The PS converts the line voltage
S7-300 racks
(120/230 VAC) into a 24 VDC operating
voltage, and supplies the S7-300 and
its 24 VDC load circuits.
CPU
Accessories:
• Front connectors (CPU 31xC only)
The CPU executes the user program,
supplies 5 V to the S7-300 backplane
bus, and communicates with other
nodes of an MPI network via the MPI
interface.
• For further information, refer to the
(6ES7398-8EA00-8AA0), or
• the
4.2 Basic engineering principles
SIMATIC NET Twisted-Pair and Fiber-Optic Networks
(6GK1970-1BA10-0AA0)
Communication with SIMATIC
Manual
4
manual
Important information for engineering
Warning
Open equipment
S7-300 modules are open equipment. That is, the S7-300 must be installed in a cubicle,
cabinet or electrical control room which can only be accessed using a key or tool. Only
trained or authorized personnel are allowed access to such cubicles, cabinets or electrical
operating rooms.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-1
Configuring
n
4.2 Basic engineering principles
Caution
Operation of an S7-300 in plants or systems is defined by special set of rules and
regulations, based on the relevant field of application. Observe the safety and accident
prevention regulations for specific applications, for example, the machine protection
directives. This chapter and the appendix
provide an overview of the most important rules you need to observe when integrating an
S7-300 into a plant or a system.
General rules and regulations on S7-300 operatio
Central unit (CU) and expansion module (EM)
An S7-300 PLC consists of a central unit (CU) and of one or multiple expansion modules.
The rack containing the CPU is the central unit (CU). Racks equipped with modules and
connected to the CU form the expansion modules (EMs) of the system.
Use of an expansion module (EM)
You can use EMs if the CU runs out of slots for your application.
When using EMs, you might require further power supply modules in addition to the extra
racks and interface modules (IM). When using interface modules you must ensure
compatibility of the partner stations.
Racks
The rack for your S7-300 is a mounting rail. You can use this rail to mount all modules of
your S7-300 system.
You can mount an S7-300 either vertically or horizontally. The following ambient air
temperatures are permitted:
• Vertical assembly: 0 °C to 40 °C
• Horizontal assembly: 0 °C to 60 °C
Always install the CPU and power supply modules on the left or at the bottom.
1
1
SM
SM
SM
1
SM
2
SM
SM
SM
SM
SM
SM
SM
1
3
SM
SM
SM
SM
SM
PS
DC5V
FRCE
RUN
STOP
CPU
CPU
DC5
FRCE
RUN
STOP
PS
3
The figure illustrates the following
(1) the vertical installation of an S7-300
(2) the horizontal installation of an S7-300
(3) the mounting rail
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-3
Configuring
4.3 Component dimensions
4.3 Component dimensions
Length of the mounting rails
Table 4-1 Mounting rails - Overview
Mounting rail length Usable length for modules Order number
160 mm 120 mm 6ES7 390-1AB60-0AA0
482.6 mm 450 mm 6ES7 390-1AE80-0AA0
530 mm 480 mm 6ES7 390-1AF30-0AA0
830 mm 780 mm 6ES7 390-1AJ30-0AA0
2000 mm cut to length as required 6ES7 390-1BC00-0AA0
In contrast to other rails, the 2 m mounting rail is not equipped with any fixing holes. These
must be drilled, allowing optimal adaptation of the 2 m rail to your application.
Dimensions of modules
Table 4-2 Module width
Module Width
Power supply module PS 307, 2 A 50 mm
Power supply module PS 307, 5 A 80 mm
Power supply module PS 307, 10 A 200 mm
CPU For information on assembly dimensions,
refer to the Technical Data in
CPU 31x Manual, Technical Data
Analog I/O modules 40 mm
Digital I/O modules 40 mm
Simulator module SM 374 40 mm
Interface modules IM 360 and IM 365 40 mm
Interface module IM 361 80 mm
CPU 31xC and
.
• Module height: 125 mm
• Module height with shielding contact element: 185 mm
• Maximum assembly depth: 130 mm
• Maximum assembly depth of a CPU with an inserted DP connector with angled cable
feed: 140 mm
• Maximum assembly depth with open front panel (CPU): 180 mm
Dimensions of other modules such as CPs, FMs etc. are found in the relevant manuals.
The direct contact between the shielding contact element and the mounting rail makes it
easy for you to connect all shielded cables of your S7 modules to ground.
PS
CPU
1
2
The figure illustrates the following
(1) Shielding terminals
(2) The bracket.
Mount the bracket (order no. 6ES5 390-5AA0-0AA0) to the rail using the two screw bolts. If
you use a shielding contact element, the specified dimensions are measured from the base
of the element.
• Width of the shielding contact element: 80 mm
• Mountable shielding terminals per shielding contact element max. 4
Table 4-3 Shielding terminals - Overview
Cable with shielding diameter Shielding terminal order no.
Cable with 2 mm to 6 mm shielding diameter 6ES7 390–5AB00–0AA0
Cable with 3 mm to 8 mm shielding diameter 6ES7 390–5BA00–0AA0
Cable with 4 mm to 13 mm shielding diameter 6ES7 390–5CA00–0AA0
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-5
Configuring
4.4 Required clearances
4.4 Required clearances
You must maintain the clearance shown in the figure in order to provide sufficient space for
installing the modules, and to allow the dissipation of heat generated by the modules.
The S7-300 assembly on multiple racks shown in the figure below shows the clearance
between racks and adjacent components, cable ducts, cabinet walls etc.
For example, when routing your module wiring through cable duct, the minimum clearance
between the bottom of the shielding contact element and the cable duct is 40 mm.
PP
PP
PP
PP
36
PP
&38
&38
60
60
60
60
PPD
D
60
PP
The figure illustrates the following
(1) Wiring with cable duct
(2) Minimum clearance between the cable duct and the bottom edge of the shielding contact
The number of racks you need will depend on your application.
Reasons for using a single rack: Reasons for distributing modules between
several racks
• Compact, space-saving use of all your
modules
• Local use of all modules
• Fewer signals to be processed
• More signals to be processed
• Insufficient number of slots
Note
If you opt for the installation on a single rack, insert a dummy module to the right of the CPU
(order no.: 6ES7 370-0AA01-0AA0). This gives you the option of adding a second rack for
your application, simply by replacing the dummy module with an interface module, and
without having to reinstall and rewire the first rack.
Rules: Layout of modules on a single module rack
The following rules apply to module installations on a single rack:
• No more than eight modules (SM, FM, CP) may be installed to the right of the CPU.
• The accumulated power consumption of modules mounted on a rack may not exceed
1.2 A on the S7-300 backplane bus.
Reference
For further information, refer to the technical data, for example, in the
Specifications Reference Manual
Example
The figure below shows a layout with eight signal modules in an S7-300 assembly.
or in the
Reference Manual
S7-300 Module
for your CPU.
PS
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
CPU
SM1
SM2
SM3
SM4
SM5
SM6
SM7
SM8
4-7
Configuring
4.6 Distribution of modules to several racks
4.6 Distribution of modules to several racks
Exceptions
With CPU 312 and CPU 312C, only a single-row configuration on a rack is possible.
Using interface modules
If you are planning an assembly in multiple racks, then you will need interface modules (IM).
Interface modules route the backplane bus of an S7-300 to the next rack.
The CPU is always located on rack 0.
Table 4-4 Interface modules - Overview
Properties Two or more rows Cost-effective 2-row configuration
Send IM in rack 0 IM 360
order no..: 6ES7 360-3AA01-0AA0
Receiver IM in racks 1 to 3 IM 361
order no..: 6ES7 361-3CA01-0AA0
Maximum number of expansion
modules
Length of connecting cables 1 m (6ES7 368-3BB01-0AA0)
Remarks - Rack 1 can only receive signal modules;
3 1
2.5 m (6ES7 368-3BC51-0AA0)
5 m (6ES7 368-3BF01-0AA0)
10 m (6ES7 368-3CB01-0AA0)
IM 365
order no..: 6ES7 365-0AB00-0AA0
IM 365 (hard-wired to send IM 365)
1 m (hard-wired)
the accumulated current load is limited to
1.2 A, whereby the maximum for rack 1 is
0.8 A
These restrictions do not apply to operation
Rules: arrangement of the modules on several racks
Please note the following points if you wish to arrange your modules on multiple racks:
• The IM always uses slot 3 (slot 1: power supply module; slot 2: CPU, slot 3: Interface
module)
• It is always on the left before the first signal module.
• No more than 8 modules (SM, FM, CP) are permitted per rack.
• The number of modules (SM, FM, CP) is limited by the permitted current consumption on
the S7-300 backplane bus. The accumulated power consumption may not exceed 1.2 A
per row.
Note
For information on the power consumption of the various modules, refer to the
Specifications Reference Manual.
Module
Rules: Interference-proof interfacing
Special shielding and grounding measures are not required if you interconnect the CU and
EM using suitable interface modules (Send IM and Receive IM).
However, you must ensure
• a low impedance interconnection of all racks,
• that the racks of a grounded assembly are grounded in a star pattern,
• that the contact springs on the racks are clean and not bent, thus ensuring that
interference currents are properly discharged to ground.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-9
Configuring
4.6 Distribution of modules to several racks
Example: Full assembly using four racks
The figure shows the arrangement of modules in an S7-300 assembly on 4 racks.
SM4
SM4
SM4
SM5
SM5
SM5
SM6
SM6
SM6
SM7
6
SM7
SM7
SM8
SM8
SM8
SM3
SM2
SM1
PS
PS
IM
IM
IM
IM
5
SM3
SM2
SM1
5
SM3
SM2
SM1
5
4
4
3
2
1
PS
CPU
IM
IM
SM1
SM2
SM3
SM4
SM5
SM6
SM7
SM8
The figure illustrates the following
(1) Rack 0 (central unit)
(2) Rack 1 (expansion module)
(3) Rack 2 (expansion module)
(4) Rack 3 (expansion module)
(5) The connecting cable 368
(6) Restriction for CPU 31xC. When this CPU is used, do not insert SM 8 into Rack 4.
• if you are using your S7-300 systems in an environment subject to interference or
contamination, and
• to meet UL/CSA requirements for cabinet installation.
Selecting and dimensioning cabinets
Take the following criteria into account:
• ambient conditions at the cabinet's place of installation
• the specified mounting clearance for racks (mounting rails)
• accumulated power loss of all components in the cabinet.
The ambient conditions (temperature, humidity, dust, chemical influence, explosion hazard)
at the cabinet's place of installation determine the degree of protection (IP xx) required for
the cabinet.
Reference for degrees of protection
For further information on the degrees of protection, refer to IEC 529 and DIN 40050.
The power dissipation capability of cabinets
The power dissipation capability of a cabinet depends on its type, ambient temperature and
on the internal arrangement of devices.
Reference for power loss
For detailed information on power dissipation, refer to the Siemens catalogs NV21 and ET1.
Specification of cabinet dimensions
Note the following specifications when you determine the dimensions of a cabinet for your
S7-300 installation:
• Space required for racks (mounting rails)
• Minimum clearance between the racks and cabinet walls
• Minimum clearance between the racks
• Space required for cable ducts or fan assemblies
• Position of the stays
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-11
Configuring
4.7 Selection and installation of cabinets
Warning
Modules may get damaged if exposed to excess ambient temperatures.
Reference for ambient temperatures
For information on permitted ambient temperatures, refer to the
The table below gives you an overview of commonly used cabinet types. It shows you the
applied principle of heat dissipation, the calculated maximum power loss and the degree of
protection.
Table 4-5 Cabinet types
Open cabinets Closed cabinets
Enclosed ventilation by
means of natural
convection
Increased enclosed
ventilation
Natural convection Forced convection with
rack fan, improvement
of natural convection
Forced convection with
heat exchanger,
internal and external
auxiliary ventilation
Mainly inherent heat
dissipation, with a
small portion across
the cabinet wall.
Degree of protection
IP 20
Typical power dissipation under following marginal conditions:
• Cabinet size: 600 mm x 600 mm x 2,200 mm
• Difference between the outer and inner temperature of the cabinet is 20 °C (for other temperature differences refer to
the temperature charts of the cabinet manufacturer)
up to 700 W up to 2,700 W (with
Higher heat dissipation
with increased air
movement.
Degree of protection
IP 20
fine filter up to
1,400 W)
Heat dissipation only
across the cabinet
wall; only low power
losses permitted. In
most cases, the heat
accumulates at the top
of the cabinet interior.
Degree of protection
IP 54
up to 260 W up to 360 W up to 1,700 W
Heat dissipation only
across the cabinet
wall. Forced
convection of the
interior air improves
heat dissipation and
prevents heat
accumulation.
Degree of protection
IP 54
Heat dissipation by
heat exchange
between heated
internal air and cool
external air. The
increased surface of
the pleated profile of
the heat exchanger
wall and forced
convection of internal
and external air
provide good heat
dissipation.
Degree of protection
IP 54
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-13
Configuring
4.8 Example: Selecting a cabinet
4.8 Example: Selecting a cabinet
Introduction
The sample below clearly shows the maximum permitted ambient temperature at a specific
power loss for different cabinet designs.
Installation
The following device configuration should be installed in a cabinet:
• Central unit, 150 W
• Expansion modules, each with 150 W
• Load power supply under full load, 200 W
This results in an accumulated power loss of 650 W.
Power loss dissipated
The diagram in the figure below shows guide values for the permitted ambient temperature
of a cabinet with the dimensions 600 mm x 600 mm x 2,000 mm, based on the accumulated
power loss. These values only apply if you maintain the specified assembly and clearance
dimensions for racks (rails).
Ambient temperature in °C
60
50
1
40
2
30
1
3
20
200
40060080010001200
Power loss in W
1400
Trend shows you the following cabinet type
(1) Closed cabinet with heat exchanger (heat exchanger size 11/6
(920 mm x 460 mm x 111 mm)
(2) Cabinet with through-ventilation by natural convection
(3) Closed cabinet with natural convection and forced convection by equipment fans
4.9 Electrical assembly, protective measures and grounding
Result
The figure below shows the resultant ambient temperatures, based on an accumulated
power loss of 650 W:
Table 4-6 Cabinet selection
Cabinet design Maximum permitted ambient
temperature
Closed with natural convection and forced convection (trend
3)
Open with through-ventilation (trend 2) approx. 38 °C
Closed with heat exchanger (trend 1) approx. 45 °C
Cabinet types suitable for horizontal installation of the S7-300:
• open, with closed ventilation
• closed, with heat exchanger
Operation not possible
4.9 Electrical assembly, protective measures and grounding
4.9.1 Grounding concept and overall structure
This section contains information about the overall configuration of an S7-300 connected to a
grounded TN-S network:
• Circuit-breaking devices, short-circuit and overload protection to VDE 0100 and VDE
0113
• Load power supplies and load circuits
• Grounding concept
Definition: Grounded mains
Note
An S7-300 can be used in many different ways, so we can only describe the basic rules
for the electrical installation in this document. Those basic rules are a must in order to
achieve a fully functional S7-300 system.
In a grounded mains network, the neutral conductor is always bonded to ground. A shortcircuit to ground of a live conductor, or of a grounded part of the system, trips the protective
devices.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-15
Configuring
4.9 Electrical assembly, protective measures and grounding
Specified components and protective measures
A number of components and protective measures are prescribed for plant installations. The
type of components and the degree of compulsion pertaining to the protective measures will
depend on the VDE specification applicable to your particular plant.
The table below shows components and protective measures.
Table 4-7 VDE specifications for the installation of a PLC system
Compare ... 1) VDE 0100 VDE 0113
Disconnect devices for control
systems, signal generators and
final control elements
Short-circuit / overload
protection:
In groups for signal generators
and final control elements
Load power supply for AC load
circuits with more than five
electromagnetic devices
(1) ...Part 460:
Master switch
(2) ...Part 725:
Single-pole fusing of
circuits
(3) Galvanic isolation by
transformer
recommended
... Part 1:
Load disconnect switch
... Part 1:
• With grounded secondary
power circuit: single-pole
fusing
• Otherwise: fusing of all poles
Electrical isolation by transformer
mandatory
1) This column refers to the indexes of the figure in the chapter Overview: Grounding.
Reference
For further information on protective measures, refer to the Appendix.
4.9.2 Installing an S7-300 with grounded reference potential
Introduction
During installation of an S7-300 with grounded reference potential interference current is
discharged to the ground conductor / to earth. A grounding slide contact is used for this
except with CPU 31xC.
Note
Your CPU is supplied with grounded reference potential. Therefore, if you wish to install an
S7-300 with grounded reference potential, you do not need to modify your CPU!
4.9 Electrical assembly, protective measures and grounding
Grounded reference potential of the CPU 31x
The figure shows an S7-300 configuration with grounded reference potential (factory state.)
1
L+
M
M
M
10M
2
<100 nF
3
The figure illustrates the following
(1) Grounding slide contact in grounded state
(2) Ground of the internal CPU circuitry
(3) The mounting rail
Note
Do not pull out the grounding slide contact when you install an S7-300 with grounded
reference potential.
4.9.3 Configuring an S7-300 with ungrounded reference potential (not CPU 31xC)
Introduction
During installation of an S7-300 with ungrounded reference potential interference currents
are discharged to the ground conductor / to ground via an RC combination integrated in the
CPU.
Note
An S7-300 with a CPU 31xC cannot be configured ungrounded.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-17
Configuring
4.9 Electrical assembly, protective measures and grounding
Application
In large systems, the S7-300 may require a configuration with grounded reference potential
due to ground-fault monitoring. This is the case, for example, in chemical industry and power
stations.
Ungrounded reference potential of the CPU 31x
The figure shows an S7-300 configuration with floating potential
L+
M
M
1
M
10M
2
<100 nF
3
The figure illustrates the following
(1) How to implement an ungrounded reference potential in your CPU: Use a screwdriver with
3.5 mm blade width to push the grounding slide contact forwards in the direction of the arrow
until it snaps into place.
(2) Ground of the internal CPU circuitry
(3) The mounting rail.
Note
You should set up the ungrounded reference potential before you mount the device on the
rail. If you have already installed and wired up the CPU, you may have to disconnect the MPI
interface before you pull out the grounding slide contact.
4.9 Electrical assembly, protective measures and grounding
Example: Installing an S7-300 with common potential modules
When using an SM 334 AI 4/AO 2 analog I/O module, connect one of the grounding
terminals M
The figure below shows an example of such a configuration: An S7-300 with common
potential modules
to the CPU's chassis ground.
analog
PS
L1
N
PE
L+
M
external
24 V DC load power supply
L1
N
Common grounding
line in the cabinet
L+
M
M
S7-300 CPU
µ
P
1 mm
4AI/2AO
U
interna
Data
M
interna
D
2
++
V
A
D
A
M
analog
A
4.9.5 Grounding measures
Bonding to ground
Low-impedance connections to ground reduce the risk of electric shock as a result of a
short-circuit or system fault. Low-impedance connections (large surface, large-surface
contact) reduce the effects of interference on the system or the emission of interference
signals. An effective shielding of cables and devices is also a significant contribution.
Warning
All protection class 1 devices, and all larger metal parts, must be bonded to protective
ground. That is the only way to safely protect operators from electrical shock. This also
discharges any interference transmitted from external power supply cables, signal cables or
cables to the I/O devices.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-21
Configuring
4.9 Electrical assembly, protective measures and grounding
Measures for protective grounding
The table below shows an overview of the most important measures for protective
grounding.
Table 4-8 Measures for protective grounding
Device Measures
Cabinet / mounting frame Connection to central ground (equipotential busbar, for example)
using cables with protective conductor quality
Rack / mounting rail Connection to central ground, using cables with a minimum cross-
section of 10 mm
interconnected with larger metallic parts.
Module None
I/O Device Grounding via grounding-type plug
Sensors and final control
elements
Grounding in accordance with regulations applying to the system
2
, if the rails are not installed in the cabinet and not
Rule: Connect the cable shielding to ground
You should always connect both ends of the cable shielding to ground / system ground. This
is the only way to achieve an effective interference suppression in the higher frequency
range.
Attenuation is restricted to the lower frequency range if you connect only one end of the
shielding (that is, at the start or end of the cable) to ground. One-sided shielding connections
could be more favorable in situations
• not allowing the installation of an equipotential bonding conductor,
• where analog signals (some mA or A) are transferred,
• or if foil shielding is used (static shielding).
Note
Potential differences between two grounding points might cause an equipotential current
flow across shielding connected at both ends. In this case, you should install an
additional equipotential bonding conductor.
Caution
Always avoid the flow of operating current to ground.
4.9 Electrical assembly, protective measures and grounding
Rule: Load circuit grounding
You should always ground the load circuits. This common reference potential (ground)
ensures proper functioning.
Note
(not valid for CPU 31xC):
If you want to locate a fault to ground, provide your load power supply (terminal L or M) or
the isolating transformer with a removable connection to the protective conductor (see
Overview: Grounding
section 4).
Connecting the load voltage reference potential
A complex system containing many output modules requires an additional load voltage for
switching the final control elements.
The table below shows how to connect the load voltage reference potential M
various configurations.
Table 4-9 Connecting the load voltage reference potential
Installation common potential modules isolated modules Note
grounded Connect M
the CPU
ungrounded Connect M
the CPU
external
external
with M on
with M on
Connect or do not connect
M
to the grounding
external
busbar
Connect or do not connect
M
to the grounding
external
busbar
for the
external
-
Ungrounded installation
with CPU 31xC is not
possible
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-23
Configuring
4.9 Electrical assembly, protective measures and grounding
4.9.6 Overview: Grounding
CPU 31xC
The figure below shows you the complete assembly of an S7-300 with CPU 31xC with a
power supply from TN-S mains. Apart from powering the CPU, the PS 307 also supplies the
load current for the 24 VDC modules. Note: The layout of the power connections does not
correspond with their physical arrangement; it was merely selected to give you a clear
overview.
L1
L2
L3
N
PE
Low-voltage distribution
e.g. TN-S system (3 x 400 V)
Cabinet
1
Profile rail
3
AC
AC
AC
DC
L1
N
PS
4
1
L+
M
Common grounding line in the cabinet
Load circuit
24 to 230 V AC for AC modules
Load circuit
5 to 60 V DC non-isolated DC modules
4
CPU
µP
2
2
SM
Signal modules
AC
DC
Table 4-10 Connecting the load voltage reference potential
The figure illustrates the following
The main switch
(1)
The short-circuit / overload protection
(2)
The load current supply (galvanic isolation)
(3)
This connection is made automatically for the CPU 31xC
4.9 Electrical assembly, protective measures and grounding
All CPUs except CPU 31xC
The figure below shows you the complete assembly of an S7-300 with TN-S mains supply
(does not apply to CPU 31xC). Apart from powering the CPU, the PS 307 also supplies the
load current for the 24 VDC modules.
Note: The layout of the power connections does not correspond with their physical
arrangement; it was merely selected to give you a clear overview.
L1
L2
L3
N
PE
Low-voltage distribution
e.g. TN-S system (3 x 400 V)
Cabinet
1
Profile rail
3
AC
AC
AC
DC
L1
PS
L+
M
N
M
5
Common grounding line in the cabinet
Load circuit
24 to 230 V AC for AC modules
Load circuit
4
5 to 60 V DC for non-isolated DC modules
CPU
µP
2
2
SM
Signal modules
AC
DC
Table 4-11 Connecting the load voltage reference potential
The figure illustrates the following
(1) The main switch
(2) The short-circuit / overload protection
(3) The load current supply (galvanic isolation)
(4) The removable connection to the grounding conductor, for ground fault localization
(5) The grounding slide contact of the CPU (not CPU 31xC)
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
2
Load circuit
5 to 60 V DC for isolated DC modules
4-25
Configuring
4.10 Selecting the load power supply
4.10 Selecting the load power supply
Task of the load power supply
The load power supply feeds the input and output circuits (load circuits), and the sensors
and actuators.
Features of load power supply units
You will have to adapt the load power supply unit to your specific application. The table
below shows a comparison of the various load power supply units and their features to help
you make your choice:
Table 4-12 Features of load power supply units
Necessary for ... Feature of the load power
Modules requiring voltage
supplies ≤ 60 VDC or ≤ 25 VAC.
Only an extra-low voltage of ≤ 60 VDC which is safely isolated from mains may be used as
load voltage. Safe isolation from mains can be achieved, for example, in accordance with
VDE 0100 Part 410 / HD 384-4-41 / IEC 364-4-41 (as functional extra-low voltage with safe
isolation) or VDE 0805 / EN 60950 / IEC 950 (as safety extra-low voltage SELV) or VDE
0106 Part 101.
Load current determination
The required load current is determined by the accumulated load current of all sensors and
actuators connected to the outputs.
Remarks
supply
Safety isolation This is a common feature of the
Siemens power supply series
PS 307 and SITOP power
series 6EP1.
Output voltage tolerances:
20.4 V to 28.8 V
40.8 V to 57.6 V
51 V to 72 V
-
A short-circuit induces a surge current at the DC outputs which is 2 to 3 times higher than
the rated output current, until the clocked electronic short-circuit protection comes into effect.
Make allowances for this increased short-circuit current when selecting your load power
supply unit. Uncontrolled load power supplies usually provide this excess current. With
controlled load power supplies, and particularly for low output power up to 20 A, always
ensure that the supply can handle this excess current.
Example: S7-300 with load power supply from PS 307
The figure below shows the overall S7-300 configuration (load power supply unit and
grounding concept), with TN-S mains supply. The PS 307 supplies the CPU and the load
current circuit of the 24 VDC modules.
Note
The layout of the power connections does not correspond with their physical arrangement; it
Example: S7-300 with load power supply from PS 307
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
6LJQDOPRGXOHV
(TXLSRWHQWLDOEXVOLQH
LQWKHFDELQHW
2QORDGSRZHUFLUFXLWV
'&9IRU'&PRGXOHV
4-27
Configuring
4.11 Planning subnets
4.11 Planning subnets
4.11.1 Overview
Subnets
Subnets available in SIMATIC for the various automation levels (process, cell, field and
actuator/sensor level ):
• Multi-Point Interface (MPI)
• PROFIBUS
• PROFINET (Industrial Ethernet)
• Point-to-point communication (PtP)
• Actuator/Sensor Interface (ASI)
Multi Point Interface (MPI)
Availability: For all CPUs described in this document.
MPI is a small area subnet containing a small number of nodes at the field/cell level. It is a
multipoint-capable interface in SIMATIC S7/M7 and C7, designed as PG interface, for
networking a small number of CPUs, or for low volume data exchange with PGs.
MPI always retains the last configuration of the transmission rate, node number and highest
MPI address, even after CPU memory reset, power failure or deletion of the CPU parameter
configuration.
It is advisable to use the PROFIBUS DP network components for your MPI network
configuration. The same configuration rules apply in this case. Exception: OWG modules are
not allowed in the MPI network.
PROFIBUS
Availability: CPUs with the "DP" name suffix are equipped with a PROFIBUS interface (CPU
315-2 DP, for example).
PROFIBUS represents the network at the cell and field level in the SIMATIC open,
multivendor communication system.
PROFIBUS is available in two versions:
1. PROFIBUS DP field bus for high-speed cyclic data exchange, and PROFIBUS-PA for
intrinsically safe applications (requires DP/PA coupler).
2. The cell level as PROFIBUS (FDL or PROFIBUS FMS) for high-speed data exchange
with communication partners at the same authorization level (can only be implemented
via CP).
Availability: CPUs with a "PN" name suffix are equipped a second interface, namely the
PROFINET interface (CPU 317-2 PN/DP, for example) A PROFINET interface, or
communication processors, can be used to implement Industrial Ethernet in an S7-300 CPU
system.
Industrial Ethernet, in an open multivendor communication system, represents the SIMATIC
network at the process and cell level. PROFINET CPUs, however, also support real-time
communication at the field level. This structure also supports S7 communication. Industrial
Ethernet is suitable for high-speed and high-volume data exchange, and for remote network
operations via gateway.
PROFINET is available in two versions:
• PROFINET IO and
• PROFINET CBA.
PROFINET IO is a communications concept for the implementation of modular distributed
applications. PROFINET IO allows you to create automation solutions you are familiar with
from PROFIBUS.
PROFINET CBA Component-Based automation) is an automation concept for the
implementation of applications with distributed intelligence. PROFINET CBA lets you create
distributed automation solutions, based on default components and partial solutions. This
concept satisfies demands for a higher degree of modularity in the field of mechanical and
systems engineering by extensive distribution of intelligent processes.
Component-Based automation is designed for the integration of complete technological
modules as standardized components into large systems.
PtP communication (PtP)
Availability: CPUs with "PtP" name suffix are equipped with a second interface, namely the
PtP interface (CPU 314C-2 PtP, for example)
PtP does not represent a subnet in the common sense, because it is used to interconnect
only two stations.
If a PtP interface is not available, you require PtP Communication Processors (CP).
Actuator/Sensor Interface (ASI)
Implementation by means of communication processors (CP).
The ASI, or actuator/sensor interface, represents a subnet system on the lowest process
level for automation systems. It is designed especially for networking digital sensors and
actuators. The maximum data volume is 4 bits per slave station.
S7-300 CPUs require communication processor for the ASI connection.
Reference
For further information on communication, refer to the
manual.
Communication with SIMATIC
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-29
Configuring
4.11 Planning subnets
4.11.2 Configuring MPI and PROFIBUS subnets
4.11.2.1 Overview
The next section contains all the information you require to configure MPI, PtP and
PROFIBUS subnets:
Contents
• MPI, PtP and PROFIBUS subnets
• Multi-Point Interface
• PROFIBUS DP
• MPI and PROFIBUS network components
• Example of networks - MPI
4.11.2.2 Basic principles of MPI and PROFIBUS subnets
Convention: device = node
All devices you interconnect on the MPI or PROFIBUS network are referred to as nodes.
Segment
A segment is a bus line between two terminating resistors. A segment may contain up to 32
nodes. It is also limited with respect to the permitted line length, which is determined by the
transmission rate.
Transmission rate
Maximum transmission rates:
• MPI:
– CPU 315-2 PN/DP and CPU 317: 12 Mbps
– All other CPUs: 187.5 kbps
Parameters MPI PROFIBUS DP
Number 127 126 1
Addresses 0 to 126 0 to 125
Note Default: 32 addresses
Reserved addresses:
• Address 0 for PG
• Address 1 for OP
1
Note the CPU-specific maximum specifications in the relevant CPU manual.
of those:
• 1 master (reserved)
• 1 PG connection (address 0 reserved)
• 124 slaves or other masters
MPI/PROFIBUS DP addresses
You need to assign an address to all nodes in order to enable intercommunication:
• On the MPI network: an MPI address
• On the PROFIBUS DP network: a PROFIBUS DP address
You can use the PG to set the MPI/PROFIBUS addresses for each one of the nodes (some
of the PROFIBUS DP slaves are equipped with a selector switch for this purpose).
Default MPI/PROFIBUS DP addresses
The table below shows you the default setting of the MPI/PROFIBUS DP addresses, and the
factory setting of the highest MPI/PROFIBUS DP addresses for the nodes.
Table 4-14 MPI/PROFIBUS DP addresses
Node (device) Default
MPI/PROFIBUS DP
address
PG 0 32 126
OP 1 32 126
CPU 2 32 126
Default highest MPI
address
Rules: Assignment of MPI /PROFIBUS DP addresses
Note the following rules before assigning MPI/PROFIBUS addresses:
• All MPI/PROFIBUS subnet addresses must be unique.
Default highest PROFIBUS DP
address
• Highest MPI/PROFIBUS address ≥ physical MPI/PROFIBUS address, and must be
identical for each node. (Exception: connecting a PG to multiple nodes; refer to the next
chapter).
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-31
Configuring
BUSFDC5VFRCERUNSTOP
4.11 Planning subnets
Differences in the MPI addresses of CPs/FMs in an S7300 system
Table 4-15 MPI addresses of CPs/FMs in an S7-300 system
Options Example
Example:
A system containing an S7-300 CPU and 2
CPs.
You have two options of assigning MPI
addresses to CPs/FMs installed in a system:
1st option: The CPU accepts the MPI addresses
you set for the CPs in STEP 7.
2nd option: The CPU automatically assigns MPI
addresses to the CPs in its system, based on
the following syntax: MPI addr. CPU; MPI
addr.+1; MPI addr.+2.
(Default)
Special feature: CPU 315-2 PN/DP and CPU
317
BUSFDC5VFRCERUNSTOP
CPU
CP
CP
SM
CPU CP CP
MPI addr. MPI
addr.+x
MPI addr. MPI
addr.+1
When the central rack of an S7-300 contains
FM/CPs with their own MPI address, the CPU
forms its own communication bus via the
backplane bus for these FM/CPs and separates it
from the other subnets.
The MPI address of those FM/CPs is thus no
longer relevant for the nodes on other subnets.
The MPI address of the CPU is used to
communicate with these FMs/CPs.
MPI
add.+y
MPI
addr.+2
Recommended MPI address settings
Reserve MPI address "0" for a service PG, or "1" for a service OP, for temporary
connections of these devices to the subnet. You should therefore assign different MPI
addresses to PGs/OPs operating on the MPI subnet.
Recommended MPI address of the CPU for replacement or service operations:
Reserve MPI address "2" for the CPU. This prevents duplication of MPI addresses after you
connect a CPU with default settings to the MPI subnet (for example, when replacing a CPU).
That is, you should assign an MPI address > "2" to CPUs on the MPI subnet.
Recommended PROFIBUS address settings
Reserve PROFIBUS address "0" for a service PG that you can subsequently connect briefly
to the PROFIBUS subnet as required. You should therefore assign unique PROFIBUS
addresses to PGs integrated in the PROFIBUS subnet.
PROFIBUS DP: Electrical cables or fiber-optic cables?
Use fiber optic cables on a field bus with greater length, rather than copper conductors, in
order to be independent on the transmission rate, and to exclude external interference.
For information on what to take into account with respect to equipotential bonding in your
network configuration, refer to the corresponding chapter in the appendix.
Reference
For further information, refer to the Communication section in
Manual, Technical Data
.
CPU 31xC and CPU 31x
4.11.2.3 Multi-Point Interface (MPI)
Availability
All CPUs described in this manual are equipped with an MPI interface X1.
A CPU equipped with an MPI/DP interface is configured and supplied as MPI. To use the DP
interface, set DP interface mode in STEP 7.
Properties
The MPI (Multi-Point Interface) represents the CPU interface for PG/OP connections, or for
communication in an MPI subnet.
The typical (default) transmission rate for all CPUs is 187.5 kbps. You can also set 19.2 kbps
for communication with an S7-200. The 315-2 PN/DP and 317 CPUs support transmission
rates up to 12 Mbps.
The CPU automatically broadcasts its bus configuration via the MPI interface (the
transmission rate, for example). A PG, for example, can thus receive the correct parameters
and automatically connect to a MPI subnet.
Note
You may only connect PGs to an MPI subnet which is in RUN.
Other stations (for example, OP, TP, ...) should not be connected to the MPI subnet while
the system is in RUN. Otherwise, transferred data might be corrupted as a result of
interference, or global data packages may be lost.
Devices capable of MPI communication
• PG/PC
• OP/TP
• S7-300 / S7-400 with MPI
• S7-200 (19.2 kbps only)
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-33
Configuring
4.11 Planning subnets
4.11.2.4 PROFIBUS DP interface
Availability
CPUs with “DP“ name suffix are equipped at least with a DP X2 interface.
The 315-2 PN/DP and 317 CPUs are equipped with an MPI/DP X1 interface. A CPU with
MPI/DP interface is supplied with default MPI configuration. You need to set DP mode in
STEP 7 if you want to use the DP interface.
Operating modes for CPUs with two DP interfaces
Table 4-16 Operating modes for CPUs with two DP interfaces
MPI/DP interface (X1) PROFIBUS DP interface (X2)
• MPI
• DP master
1
• DP slave
1
simultaneous operation of the DP slave on both interfaces is excluded
• not configured
• DP master
• DP slave 1
Properties
The PROFIBUS DP interface is mainly used to connect distributed I/O. PROFIBUS DP
allows you to create large subnets, for example.
The PROFIBUS DP interface can be set for operation in master or slave mode, and supports
transmission rates up to 12 Mbps.
The CPU broadcasts its bus parameters (transmission rate, for example) via the PROFIBUS
DP interface when master mode is set. A PG, for example, can thus receive the correct
parameters and automatically connect to a PROFIBUS subnet. You can disable this bus
parameter broadcast in you configuration.
Note
(for DP interface in slave mode only)
When you disable the Commissioning / Debug mode / Routing check box in the DP interface
properties dialog in STEP 7, all user-specific transmission rate settings will be ignored, and
the transmission rate of the master is automatically set instead. This disables the routing
function at this interface.
Further information on PROFIBUS: http://www.profibus.com
4.11.2.5 Network components of MPI/DP and cable lengths
MPI subnet segment
You can install cables with a length of up to 50 m in an MPI subnet segment. This length of
50 m is the distance between the first and the last node of the segment.
Table 4-17 Permissible cable length of a segment on the MPI subnet
Transmission rate S7-300 CPUs (common
19.2 kbps
187.5 kbps
1.5 Mbps 200 m
3.0 Mbps
6.0 Mbps
12.0 Mbps
Segment on the PROFIBUS subnet
The maximum cable length of a a segment on the PROFIBUS subnet is determined by the
set transmission rate.
Table 4-18 Permissible cable length of a segment on the PROFIBUS subnet
Transmission rate Maximum cable length of a segment
9.6 kbps to 187.5 kbps 1000 m
500 kbps 400 m
1.5 Mbps 200 m
3 Mbps to 12 Mbps 100 m
CPU 317
potential
MPI) without CPU 317
50 m 1000 m
-
100 m
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-35
Configuring
4.11 Planning subnets
Longer cable lengths via RS 485 repeater
You need to install RS485 repeaters for segments requiring cable lengths longer than the
allowed length. For further information, refer to the RS485 Repeater Product Information.
Stub cables
Make allowances for the maximum stub cable length when you connect bus nodes to a bus
segment by means of stub cables, for example, a PG via standard PG cable.
For transmission rates up to 3 Mbps, you can use a PROFIBUS bus cable with bus
connector as stub cable. For transmission rates higher than 3 Mbps, use the patch cord to
connect the PG or PC. You can connect several PG patch cords to the the bus (for order
numbers see table 4-20). Other types of stub cables are not permitted.
Length of stub cables
The table below shows the maximum permitted lengths of stub cables per segment:
Table 4-19 Lengths of stub cables per segment
PG patch cord
Transmission rate Max. length of stub
cables per segment
9.6 kbps to 93.75 kbps 96 m 32 32
187.5 kbps 75 m 32 25
500 kbps 30 m 20 10
1.5 Mbps 10 m 6 3
3 Mbps to 12 Mbps
1
To connect PGs or PCs when operating at rates higher than 3 Mbps, use patch cords with
1
Number of nodes with stub cable length of ...
1.5 m or 1.6 m 3 m
1
1
the order no. 6ES7 901-4BD00-0XA0. In your bus configuration, you can use multiple PG
patch cords with this order number. Other types of stub cables are not permitted.
Table 4-20 PG patch cord
Type Order number
PG patch cord 6ES7 901-4BD00-0XA0
For PROFIBUS DP or MPI networking we offer you the following bus cables for diverse fields
of application:
Table 4-21 Available bus cables
Bus cable Order number
PROFIBUS cable 6XV1 830-0AH10
PROFIBUS cable, halogen-free 6XV1 830-0CH10
PROFIBUS underground cable 6XV1 830-3AH10
PROFIBUS trailing cable 6XV1 830-3BH10
PROFIBUS cable with PUR sheath for
environments subject to chemical and
mechanical stress
PROFIBUS cable with PE sheath for the food and
beverages industry
PROFIBUS cable for festooning 6XV1 830-3CH10
6XV1 830-0DH10
6XV1 830-0BH10
Properties of PROFIBUS cables
The PROFIBUS cable is a 2-wire, shielded twisted-pair cable with copper conductors. It is
used for hardwired transmission in accordance with US Standard EIA RS485.
The table below lists the characteristics of these bus cables.
Table 4-22 Properties of PROFIBUS cables
Properties Values
Wave impedance approx. 135 Ω to 160 Ω (f = 3 MHz to 20 MHz)
Loop resistance ≤ 115 Ω/km
Effective capacitance 30 nF/km
Attenuation 0.9 dB/100 m (f = 200 kHz)
Permitted conductor cross-sections 0.3 mm2 to 0.5 mm2
Permitted cable diameter 8 mm ± 0.5 mm
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-37
Configuring
4.11 Planning subnets
Installation of bus cables
When you install PROFIBUS cables, you must not
• twist,
• stretch
• or compress them.
When wiring indoor bus cables, also maintain the following marginal conditions (d
cable diameter):
Table 4-23 Marginal conditions for wiring interior bus cables
Characteristics Condition
Bending radius (one-off) ≥ 80 mm (10 x dA)
Bending radius (multiple times) ≥ 160 mm (20 x dA)
Permitted temperature range during installation –5 °C to +50 °C
Shelf and static operating temperature range –22 °F to +149 °F
Reference
For information on the use of fiber-optic cables for PROFIBUS, refer to the SIMATIC NET,
PROFIBUS Networks Manual.
Bus connector RS 485
Table 4-24 Bus connector
Type Order number
RS485 bus connector, up to 12 Mbps,
with 90° cable exit,
without PG interface,
with PG interface
Fast Connect RS485 bus connector, up to 12 Mbps,
with 90° cable exit, with insulation displacement technology,
without PG interface,
with PG interface
RS485 bus connector up to 12 Mbps
with 35° cable exit (not for CPU 31xC, 312, 314, and 315-2 DP
without PG interface
with PG interface
= outer
A
6ES7 972-0BA11-0XA0
6ES7 972-0BB11-0XA0
6ES7 972-0BA50-0XA0
6ES7 972-0BB50-0XA0
6ES7 972-0BA40-0XA0
6ES7 972-0BB40-0XA0
Fields of application
You need bus connectors to connect the PROFIBUS cable to an MPI or PROFIBUS-DP
interface
You do not require a bus connector for:
• DP slaves with degree of protection IP 65 (ET 200X, for example)
Type Order number
RS 485 repeater 6ES7 972-0AA00-0XA0
Purpose
RS485 repeaters are used to amplify data signals on bus lines and to couple bus segments.
You require this RS 485 Repeater in the following situations:
• more than 32 network nodes
• when interconnecting a grounded with an ungrounded segment
• when exceeding the maximum line length in a segment
Longer cable lengths
If you want to implement cable lengths above those permitted in a segment, you must use
RS485 repeaters. The maximum cable length possible between two RS 485 repeaters
corresponds to the cable length of a segment. Please note that these maximum cable
lengths only apply if there is no further node interconnected between the two RS 485
repeaters. You can connect up to nine RS 485 repeaters in series. Please note that you
have to add the RS 485 repeater when you determine the number of nodes in your subnet,
even if it is not assigned its own MPI/PROFIBUS address.
Reference
• Technical data about the RS 485 repeater can be found in the product information.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-39
Configuring
SF
BUSF
DC5V
FRCE
RUN
STOP
4.11 Planning subnets
4.11.2.6 Cable lengths of MPI and PROFIBUS subnets
Example: Installation of an MPI subnet
The figure below shows you the block diagram of a MPI subnet.
• the principle of "Line extension" using RS 485 repeaters
6
&3836&38
03,DGGU
23
03,DGGU
6
3*
&3836&38
03,DGGU
03,DGGU
6
&3836&38
03,DGGU
3*
03,DGGU
56
5HSHDWHU
PD[ P
PD[ P
23
03,DGGU
6
&3836&38
03,DGGU
23
03,DGGU
PD[ P
6
&3836&38
03,DGGU
56
5HSHDWHU
Key to numbers in the figure
(1) Terminating resistor enabled.
(2) PG connected by means of a stub cable for maintenance purposes
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-41
Configuring
4.11 Planning subnets
Example: Terminating resistor in the MPI subnet
The figure below shows you an example of an MPI subnet and where to enable the
terminating resistor.
The figure below illustrates where the terminating resistors must be enabled in an MPI
subnet. In this example, the programming device is connected via a stub cable only for the
duration of commissioning or maintenance.
S7-300
PS
PS
CPU
ET200M
CPU
CPU
PG
21
S7-300
PS
PS
CPU
CPU
ET200M
CPU
21
OP 27
S7-300
PS
PS
CPU
CPU
ET200M
CPU
RS 485Repeater
21
S7-300
PS
PS
CPU
ET200M
CPU
CPU
OP 27
21
22
PG
Key to numbers in the figure
(1) Terminating resistor enabled.
(2) PG connected by means of a stub cable for maintenance purposes
Warning
Disturbance of data traffic might occur on the bus. A bus segment must always be
terminated at both ends with the terminating resistor. This, for example, is not the case if the
last slave with bus connector is off power. The bus connector draws its power from the
station, and the terminating resistor is thus disabled. Please make sure that power is always
supplied to stations on which the terminating resistor is active. Alternatively, you can also
use the PROFIBUS terminator as active bus termination.
The next section contains all the information you require to configure PROFINET subnets:
Contents
• PROFINET nodes
• Integration of field bus system into PROFINET
• PROFINET IO and PROFINET CBA (Component-Based Automation)
• PROFINET cable lengths
• Ethernet bus cable and connector
• Example of a PROFINET subnet
• Example of a PROFINET IO system
4.11.3.2 PROFINET nodes
Definition: Nodes in the PROFINET environment
Within the context of PROFINET, "node" is the generic term for:
• Automation systems
• Field devices (for example, PLC, PC, hydraulic devices, pneumatic devices)
• Active network components (for example, distributed I/O, valve blocks, drives)
The main characteristics of a node is its integration into PROFINET communication by
means of Ethernet or PROFIBUS.
The following device types are distinguished based on their attachment to the bus:
• PROFINET nodes
• PROFIBUS nodes
Definition: PROFINET nodes
A PROFINET node always has at least one Industrial Ethernet port. A PROFINET node can
also have a PROFIBUS port, that is, as master with proxy functionality. In exceptional
circumstances, a PROFINET node can also have more than one PROFIBUS port (for
example the CP 5614).
Definition: PROFIBUS nodes
A PROFIBUS node has at least one or more ports.
A PROFIBUS node cannot take part directly in PROFINET communication, but must be
implemented by means of PROFIBUS master with PROFINET port or Industrial
Ethernet/PROFIBUS link (IE/PB Link) with proxy functionality.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-45
Configuring
4.11 Planning subnets
Comparison of the terminology in PROFIBUS DP and PROFINET IO
The following schematic shows you the general names of the most important devices in
PROFINET IO and PROFIBUS DP. The table below shows the designation of the various
components in the PROFINET IO and PROFIBUS DP context.
1
2
3
4
66
5
Figure 4-1 PROFINET and PROFIBUS nodes
Number PROFINET PROFIBUS Comment
1 IO system DP master
system
2 IO controller DP master Node used to address the connected IO
A PROFINET node can have a modular structure similar to a DP slave. A PROFINET node
consists of slots in which the modules/submodules are inserted. The modules/submodules
have channels over which the process signals are read in or output.
The following graphic illustrates the situation.
12
10111111
12
12
12
12
12
12
12
Figure 4-2 Module, Submodule, Slot, and Channel
Number Description
10 Interface module
11 Slot with module/submodule
12 Channel
It is always possible for a slot to be divided into subslots that contain submodules.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-47
Configuring
4.11 Planning subnets
4.11.3.3 Integration of field bus systems in PROFINET
Field bus Integration
PROFINET allows you to integrate existing field bus systems (for example, PROFIBUS, ASI,
etc.) into PROFINET via proxy. This allows you to set up mixed systems consisting of field
bus and Ethernet based subsystems. This makes a continuous technological transition to
PROFINET possible.
Interconnection of PROFINET and PROFIBUS
You can connect PROFIBUS devices to the local PROFIBUS interface of a PROFINET
device. This allows you to integrate existing PROFIBUS configurations in PROFINET.
The following figure shows the supported network types for PROFINET:
• Industrial Ethernet and
• PROFIBUS.
Industrial Ethernet
1
2
3
PROFIBUS
Figure 4-3 PROFINET Devices, PROFIBUS Devices, and Proxy
Number Description
1 PROFINET devices
2 PROFINET device with proxy functionality (for more detailed information, see below)
3 PROFIBUS devices
PROFINET device with proxy functionality = Substitute
The PROFINET device with proxy functionality is the substitute for a PROFIBUS device on
Ethernet. The proxy functionality allows a PROFIBUS device to communicate not only with
its master but also with all nodes on PROFINET.
You can integrate existing PROFIBUS systems in PROFINET communication, for example
with the help of an IE/PB Link or a CPU 31x-2 PN/DP. The IE/PB Link then handles
communication over PROFINET as a substitute for the PROFIBUS components.
Currently, you can include DPV0 slaves in PROFINET in this way.
Further Information
For information on the differences and common features of PROFINET IO and PROFIBUS
DP and for information on migrating from PROFIBUS DP to PROFIBUS I/O, refer to the
From PROFIBUS DP to PROFINET IO
programming manual.
4.11.3.4 PROFINET IO and PROFINET CBA
What is PROFINET IO?
Within the framework of PROFINET, PROFINET IO is a communication concept for the
implementation of modular, distributed applications.
PROFINET IO allows you to create automation solutions familiar from PROFIBUS.
PROFINET IO is implemented by the PROFINET standard for the programmable controllers
on the one hand, and on the other hand by the engineering tool STEP 7.
This means that you have the same application view in STEP 7 regardless of whether you
configure PROFINET devices or PROFIBUS devices. Programming your user program is
essentially the same for PROFINET IO and PROFIBUS DP if you use the expanded blocks
and system status lists for PROFINET IO.
Reference
For more detailed information on new and modified blocks, refer to the
to PROFINET IO
programming manual.
User Programs in PROFINET IO and PROFIBUS DP
A comparison of the most important differences and common features in PROFINET IO and
PROFIBUS DP that are relevant for the creation of user programs can be found in the
programming manual
From PROFIBUS DP to PROFINET IO.
From PROFIBUS DP
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-49
Configuring
4.11 Planning subnets
What is PROFINET CBA? (Component based Automation)?
Within the framework of PROFINET, PROFINET CBA is an automation concept for the
implementation of applications with distributed intelligence.
PROFINET CBA lets you create distributed automation solutions, based on default
components and partial solutions. This concept satisfies demands for a higher degree of
modularity in the field of mechanical and systems engineering by extensive distribution of
intelligent processes.
Component based Automation allows you to use complete technological modules as
standardized components in large systems.
PROFINET CBA is implemented by:
• the PROFINET standard for programmable controllers and
• the SIMATIC iMAP engineering tool.
The components are also created in an engineering tool that can differ from vendor to
vendor. Components of SIMATIC devices are generated, for example, with STEP 7.
The following figures illustrate how automation solutions are being transformed as a result of
PROFINET CBA.
Conventional Automation Solutions without PROFINET CBA
Program is running on
a central
PLC
Industrial Ethernet
PROFIBUS
Distributed
I/O
Engineering
Human-Machine
Interface
Mechanical
Electrical/Electronic
Figure 4-4 Existing automation concept with modular plant engineering
Figure 4-6 Extent of PROFINET IO and Component based Automation
Component based Automation divides the entire plant into various functions. These functions
are configured and programmed.
PROFINET IO provides you with a picture of the plant that is very similar to the view
obtained in PROFIBUS. You continue to configure and program the individual programmable
controllers.
Controllers in PROFINET IO and PROFINET CBA
You can also use some PROFINET IO controllers for PROFINET CBA.
The following list illustrates which PROFINET devices can adopt the function of a
PROFINET CBA or IO controller:
• Programmable controllers such as the S7-300 CPU 317-2 PN/DP
The following list illustrates which PROFINET devices can only adopt the function of a
PROFINET IO controller:
• PCs attached to PROFINET with a CP (for example CP 1616) and SOFTNET PROFINET
(for example CP 1612). With the CP 1616, the user program executes on the CP, with
SOFTNET PROFINET, it executes in the CPU of the PC.
• SIMOTION device for particularly strict real-time requirements.
PROFINET devices can only adopt the function of a PROFINET CBA controller, for example
PCs with a standard Ethernet interface and the WinLC software.
Proxy in PROFINET IO and PROFINET CBA
Proxies for PROFINET IO and proxies for PROFINET CBA are different.
In PROFINET IO, the proxy for PROFINET IO represents each connected PROFIBUS DP
slave as a PROFINET IO device on PROFINET.
In PROFINET CBA, the proxy for PROFINET CBA represents each connected PROFIBUS
DP slave as a component on PROFINET.
As a result, there are, for example, different IE/PB Links for PROFINET IO and PROFINET
CBA. Currently, you can only use a CPU 317-2 DP/PN as a proxy for PROFINET CBA.
Integrating Components and Devices
In Component based Automation, you integrate the components in an interconnection editor
(for example SIMATIC iMap). The components are described in a PCD file.
In PROFINET IO, you integrate the devices in an engineering system (for example STEP 7).
The components are described in a GSD file.
Connecting PROFIBUS Devices via an IE/PB Link
Remember that there is a separate proxy functionality for PROFINET I/O and PROFINET
CBA. With the IE/PB Link, this means that you must use different devices depending on the
system you are using.
Interaction of PROFINET CBA and PROFINET IO
PROFINET IO integrates field devices (IO devices) in PROFINET. The input and output data
of the IO devices is processed in the user program. The IO devices with their IO controller
themselves can, in turn, be part of a component in a distributed automation structure.
You configure communication between, for example, a CPU as IO controller and the IO
devices assigned to it as PROFINET IO in much the same way as a PROFIBUS DP master
system in STEP 7. You also create your user program in STEP 7. From this, you generate a
component in STEP 7.
You then configure communication between the components conveniently in SIMATIC iMAP.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-53
Configuring
4.11 Planning subnets
Note
Update Times for Cyclic Data Exchange
STEP 7 automatically calculates a time within which each PROFINET IO device completes
exchange of its user data with the corresponding IO controller: the update time.
Based on the existing hardware configuration and the resulting cyclic data traffic, STEP 7
automatically calculates an update time that you can extend manually.
If other cyclic services (for example PROFINET CBA) need to be taken into account in
addition to PROFINET IO: Set a percentage in STEP 7/HW Config that will be reserved for
PROFINET IO.
For more detailed information, refer to the STEP 7 online help.
Details on the Possible Uses of the Individual Products
For more information, refer to the documentation of the particular product.
4.11.3.5 PROFINET cable lengths and network expansion
Network expansion options are based on various factors (hardware design used, signal
propagation delay, minimum distance between data packets, etc.)
Prefabricated twisted-pair cord cables
Twisted-pair cables can be used in environments with low EMC loads and with transmission
lines up to 10 m. They employ the TP cord that is designed significantly thinner and more
flexible by using reduced shielding compared to industrial twisted-pair cables. The
connectors used in connecting industrial twisted-pair components are standardized RJ45
connectors and sub-D connectors.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-55
Configuring
4.11 Planning subnets
Reference
For detailed information on network configuration, refer to the Internet: SIMATIC NET:
Twisted Pair and Fiber-Optic Networks (6GK1970-1BA10-0AA0) at
http://www.siemens.com/automation/service&support.
See also
Connecting the PG to a node (Page 8-14)
Connecting the PG to several nodes (Page 8-15)
4.11.3.6 Connectors and other components for Ethernet
The selection of the bus cable, bus connector and other components for Ethernet (for
example, switches, etc.) depends on the intended application.
We offer a range of products covering a variety of applications for the installation of an
Ethernet connection.
Reference
•
SIMATIC NET: Twisted-Pair and Fiber-Optic Networks
The graphic illustrates the combination of corporate level and process control level via
industrial Ethernet. PCs in a classical office environment can be used to acquire data of the
process automation system.
Subnet 1Subnet 1Subnet 2Subnet 2
Company network
INDUSTRIAL ETHERNET
Switch 1
Router
CPU
31x-2 PN/DP
Figure 4-7 Example of a PROFINET Subnet
Switch 2
CPU
31x-2 PN/DP
PG
Switch 3
31x-2 PN/DP
(DP SLAVE)
CPU
CPU
CPU
(DP master)
PROFIBUS
ET200
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-57
Configuring
4.11 Planning subnets
Installation guidelines
PROFINET allows you to set up a high-performance and continuous communication system.
You can further increase performance by using the following installation guidelines.
• Interconnect a router between the office network and the PROFINET system. Use the
router to define access privileges for your PROFINET system.
• Set up your PROFINET in a star architecture where this is useful (for example: in a switch
cabinet).
• Keep the number of switches low. This increases clarity of your PROFINET system
architecture.
• Connect your programming device (PG) close to the communication partner (for example:
connect the PG and the communication partner to the same switch).
• Modules with PROFINET interfaces may only be operated in LANs where all nodes are
equipped with SELV/PELV power supplies or protection systems of equal quality.
• A data transfer device that ensures this safety must be specified for the coupling to the
WAN.
Reference
For detailed information on Industrial Ethernet networks or network components, refer to:
• the Internet URL http://www.siemens.com/automation/service&support.
• The STEP 7 Online Help. There you can also find further information on IP address
assignment.
• The Communication with SIMATIC (EWA 4NEB 710 6075-01) manual
• The SIMATIC NET manual: Twisted-Pair and Fiber Optic Networks
The figure below shows you the new functions of PROFINET IO
&RPSDQ\1HWZRUN
6ZLWFK
5RXWHU
&38
[
31'3
,2
&RQWUROOHU
'3
0DVWHU
,QGXVWULDO(WKHUQHW
,2
'HYLFH
1
6ZLWFK
,2
'HYLFH
6
'36/$9(
,(
,(3%/LQN
3%
(7
(7
6
(7
6
5
2
&38
[
31'3
3
352),%86
3*
6ZLWFK
,2
&RQWUROOHU
'3
0DVWHU
4
(7
'36/$9(
The figure shows The figure shows the communication path
The interconnection of the
company network with field
level
The interconnection between
the automation system and
field level
The IO controller of the CPU
31x-2 PN/DP (1) controls the
nodes connected to the
Industrial Ethernet and
PROFIBUS directly
A CPU can be both IO
controller and DP master
From PCs in your company network, you can access devices at the field level
Example:
• PC — Switch 1 — Router — Switch 2 — CPU 31x-2 PN/DP (1).
You can, of course, also access other areas in Industrial Ethernet from a field PG.
Example:
• PG — Switch 3 — Switch 2 — to an IO device of ET 200S (2).
At this point, you see the enhanced IO feature between the IO controller and IO device(s)
on Industrial Ethernet:
• The CPU 31x-2 PN/DP (1) is the IO controller for one of the ET 200S (2) IO devices.
• The CPU 31x-2 PN/DP (1) is also the IO controller for the ET 200 (DP slave) (5) via
the IE/PB Link (6).
Here, you can see that a CPU can be both IO controller for an IO device as well as DP
master for a DP slave:
• The CPU 31x-2 PN/DP (3) is the IO controller for the other ET 200S (2) IO device.
CPU 31x-2 PN/DP (3) — Switch 3 — Switch 2 — ET 200S (2)
• The CPU 31x-2 PN/DP (3) is the DP master for a DP slave (4). The DP slave (4) is
assigned locally to the CPU (3) and is not visible on the Industrial Ethernet.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-59
Configuring
4.11 Planning subnets
Requirements
• CPUs as of Firmware 2.3.0 (for example CPU 315-2 PN/DP)
• STEP 7, as of Version 5.3 + Service Pack 1
Reference
For information on PROFINET, refer to:
• the
• in the programming manual
System Description PROFINET
From PROFIBUS DP to PROFINET.
provides a comprehensive overview of the new PROFINET blocks and system status
lists.
4.11.4 Routed network transitions
Example: PG access to remote networks (routing)
A CPU with several interfaces can also serve as a router for intercommunication with
different subnets. With a PG you can access all modules on local and remote networks.
Requirements:
• STEP 7 Version 5.0 or higher.
Note: For STEP 7 requirements with respect to the CPUs used, refer to the technical
specifications.
• Assign the PG/PC to a network in your STEP 7 project (SIMATIC Manager, assigning a
PG/PC).
• The various networks are interconnected using modules with routing functions.
This manual also
• After you configured all networks in NETPRO, initiated a new compilation for all stations,
and then download the configuration to all modules with routing function. This also
applies to all changes made in the network.
All routers therefore know all paths to a destination station.
Example 1
To access the CPU 31x-2 DP using PG/PC 1:
PG/PC 1 - MPI network (1) - CPU 417 as router - PROFIBUS network (3) - CPU 31x-2 DP
Example 2
To access the the S7-300 CPU (on the right in the figure) using PG/PC 2:
PG/PC 2 - PROFIBUS network (3)- CPU 31x-2 DP as router - MPI network (2) - S7-300 CPU
Example 3
To access the 416 CPU using PG/PC 3:
PG/PC 3 - MPI network (2) - CPU 31x-2 DP as router - PROFIBUS network (3)- CPU 417 as
router - MPI network (1) - CPU 416
Note
Only for CPUs with DP interface:
If these CPUs are operated as I-slaves and you want to use routing functionality, set the
Commissioning / Debug Mode / Routing check box in the DP Interface for DP Slave dialog
box in STEP 7.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
4-61
Configuring
4.11 Planning subnets
Information on routing can be found ...
•
CPU Data Reference Manual
for your CPU
• In the
Communication with SIMATIC
4.11.5 Point-to-point (PtP)
Availability
CPUs with a “PtP“ name suffix are equipped with a PtP X2 interface.
Properties
Using the PtP interface of your CPU, you can connect external devices with serial interface.
You can operate such a system at transmission rates up to 19.2 kbps in full duplex mode
(RS 422), and up to 38.4 kbps in half duplex mode (RS 485).
Transmission rate
• Half duplex: 38.4 kbps
• Full duplex: 19.2 kbps
Driver
PtP communication drivers installed in those CPUs:
manual.
• ASCII drivers
• 3964(R) Protocol
• RK 512 (only CPU 314C-2 PtP)
Devices capable of PtP communication
Devices equipped with a serial port, for example, barcode readers, printers, etc.
Implementation using communication processors (CP).
The ASI, or Actuator/Sensor Interface, represents a subnet system on the lowest process
level for automation systems. It is designed especially for networking digital sensors and
actuators. The maximum data volume is 4 bits per slave station.
S7-300 CPUs require communication processor for the ASI connection.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
Here we will explain the steps required for the mechanical assembly of an S7-300.
Open components
Note
Note the installation guidelines and notes on safety in this manual when mounting,
commissioning and operating S7-300 systems.
S7-300 modules are "Open Components" according to IEC 61131-2 and EC directive
73/23/EEC (Low-Voltage directive), and to UL/CSA Approval an "open type".
5
In order to conform with specifications on safe operation relating to mechanical strength,
inflammability, stability and touch-protection, the following alternative installation modes are
prescribed:
• Installation in a suitable cubicle
• Installation in a suitable cabinet
• Installation in an appropriately equipped and closed operating area
Access to these areas must only be possible with a key or tool. Only trained or authorized
personnel is allowed access to these cubicles, cabinets or electrical operating rooms.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
5-1
Installing
5.1 Installing an S7-300
Accessories included
Installation accessories are included with the module package. The appendix contains a list
of accessories and spare parts together with the corresponding order numbers.
Table 5-1 Module accessories
Module Accessories included Explanation
1 x Slot number label For assigning slot numbers CPU
Inscription labels for the MPI address and Firmware
Version (all CPUs)
for labeling of integrated inputs
and outputs (CPU 31xC only)
Tip: Templates for labeling strips
are available on the Internet at
http://www.ad.siemens.de/csinfo,
under article ID 11978022.
Signal module (SM)
Function Module (FM)
To install the S7-300, you require the tools and materials listed in the table below.
Table 5-2 Installation tools and materials
You require ... for ...
cutting the 2 m rail to length commonly available tool
scribing and drilling holes on the 2 m rail commonly available tool, 6.5 mm diameter drill bit
screw-mounting the rail wrench or screwdriver, matching the selected
fixing screws
diverse M6 screws (length depends on the place
of installation) with nuts and spring lock washers
screw-fastening the modules on the rail screwdriver with 3.5 mm blade width (cylindrical
design)
pulling out the grounding slide contact to achieve
ungrounded state
screwdriver with 3.5 mm blade width (cylindrical
design)
5.2 Installing the mounting rail
Mounting rail versions available
• Ready-to-use, four standard lengths (with 4 holes for fixing screws and 1 ground
conductor bolt)
• One meter mounting rail
May be shortened to any special length. Supplied without holes for fixing screws and
without ground conductor bolt.
Requirements
Prepare the 2 m mounting rail for installation.
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
5-3
Installing
5.2 Installing the mounting rail
Preparing the 2 m mounting rail for installation
1. Cut the 2 m mounting rail to the required length.
2. Mark out:
– four bores for the fixing screws (for dimensions, refer to "Dimensions for fixing holes")
– one hole for the protective conductor bolt.
3. If the length of your rail exceeds 830 mm, you must stabilize it by providing additional
holes for fixing it with more screws.
Mark out these holes along the groove in the middle section of the rail (see the Figure
below). The pitch should be approx. 500 mm.
4. Drill the marked holes, bore diameter = 6.5
5. Mount an M6 bolt for fixing the ground conductor.
+0,2
mm for M6 screws.
2
3
4
1
5
Key to numbers in the figure
(1) Hole for the ground conductor bolt
(2) Groove for drilling additional holes for mounting screws
(3) Hole for the mounting screw
(4) Additional hole for mounting screw
(5) Hole for the mounting screw
The fixing hole dimensions for the mounting rail are shown in the table below..
Table 5-3 Mounting holes for rails
"Standard" rail 2 m mounting rail
32.5 mm
57.2 mm
a
b
Length of rail Dimension a Dimension b
160 mm 10 mm 140 mm
482.6 mm 8.3 mm 466 mm
530 mm 15 mm 500 mm
830 mm 15 mm 800 mm
Fixing screws
To fix the mounting rails you can use the following types of screws:
For ... you can use ... description
outer fixing screws
additional fixing screws
(only 2 m mounting rail)
32.5 mm
57.2 mm
approx.
500 mm
_
15 mm
_
–
cylindrical head screw M6 to
ISO 1207/ISO 1580
(DIN 84/DIN 85)
M6 hexagonal head screw to
ISO 4017 (DIN 4017)
cylindrical head screw M6 to
ISO 1207/ISO 1580
(DIN 84/DIN 85)
approx.
500 mm
15 mm
_
Choose a suitable screw length
for your assembly.
You also need size 6.4 washers
to ISO 7092 (DIN 433)
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
5-5
Installing
SIEMEN S
5.2 Installing the mounting rail
Installing the mounting rail
1. Install the mounting rails so that sufficient space is available for installing modules and to
allow heat dissipation (clearance of at least 40 mm above and below the modules. See
the figure below).
2. Mark up the mounting holes on the mounting surface. Drill the holes,
diameter = 6.5
+0.2
mm.
3. Screw the rail (M6 screws) onto the mounting surface.
Note
Always make sure of a low-impedance contact between the rail and a mounting surface,
if the latter is a grounded metal panel or equipment mounting panel. On varnished or
anodized metals, for instance, use a suitable contacting agent or contact washers.
The figure below shows the clearance required for the installation of an S7-300.
You should assign a slot number to each one of the mounted modules, thus making it easier
to assign the modules in the configuration table in STEP 7. The table below shows the slot
number assignment.
Table 5-4 Slot numbers for S7 modules
Slot number Module Comment
1 Power supply (PS) –
2 CPU –
3 Interface module (IM) to the right of the CPU
4 1. Signal module (SM) to the right of the CPU or IM
5 2. Signal module (SM) –
6 3. Signal module (SM) –
7 4. Signal module (SM) –
8 5. Signal module (SM) –
9 6. Signal module (SM) –
10 7. Signal module (SM) –
11 8. Signal module (SM) –
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
5-9
Installing
5.4 Labeling the modules
Slot numbers Clipping the slot numbers onto the modules
1. Hold the corresponding slot number in front of the relevant module.
2. Insert the pin into the opening on the module (1).
3. Press the slot number into the module (2). The slot number breaks off from the wheel.
The figure below illustrates this procedure. The slot number labels are included with the
Describes the requirements for wiring the PS, CPU and front connectors.
Accessories required
The following accessories are required for wiring the S7-300.
Table 6-1 Wiring accessories
Accessories Description
Front connectors for connecting the sensors / actuators of the
Labeling strips for labeling the module I/Os
Shielding contact element, shielding terminals
(matching the shielding diameter)
6
system to the S7-300
for connecting cable shielding
Tools and material required
Tools and materials required for wiring the S7-300.
Table 6-2 Tools and material for wiring
To ... you need ...
Connect the protective conductor to the rail Wrench (size 10)
Adjust the power supply module to mains voltage Screwdriver with a blade width of 4.5 mm
Wire the power supply module and the CPU Screwdriver with a 3.5-mm blade, side-cutters,
S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions, Edition 08/2004, A5E00105492-05
Protective conductor cable (crosssection ≥ 10 mm
M6 nut, washer, spring lock washer
stripping tool
Flexible cable, for example, sheathed flexible
cable 3 x 1.5 mm
Wire end ferrules to DIN 46228
2
) with M6 cable lug
2
6-1
Wiring
6.1 Requirements for wiring the S7-300
To ... you need ...
Wire the front connector Screwdriver with a 3.5-mm blade, side-cutters,
stripping tool
Flexible cables, 0.25 mm
2
to 0.75/1.5 mm2
Shielded cables as required
Wire end ferrules to DIN 46228
Wiring conditions for PS and CPU
Table 6-3 Wiring conditions for PS and CPU
Connectable cables to PS and CPU
Solid conductors No
Flexible conductors
• without wire end ferrule
• With wire end ferrule
Number of conductors per terminal 1 or 2, up to 1.5 mm2 (total) in a common wire
Diameter of the conductor insulation max. 3.8 mm
Stripped length 11 mm
Wire end ferrules to DIN 46228
• without insulating collar
• with insulating collar
0.25 mm
0.25 mm
2
to 2.5 mm2
2
to 1.5 mm2
end ferrule
Design A, 10 mm to 12 mm length
Design E, up to 12 mm length
Wiring conditions for front connectors
Table 6-4 Wiring conditions for front connectors
Connectable cables
Solid conductors No No
Flexible conductors
• without wire end ferrule
• with wire end ferrule
Number of conductors per
terminal
Diameter of the conductor
insulation
Stripped length 6 mm 6 mm
Wire end ferrules to DIN
46228
• without insulating collar
• with insulating collar
Front connectors
20-pole 40-pole
0.25 mm
0.25 mm
2
to 1.5 mm2
2
to 1.5 mm2
0.25 mm
0.25 mm
• Mains feed 1.5 mm
1 or 2, up to 1.5 mm2 (total) in a
common wire end ferrule
max. 3.1 mm
1 or 2, up to 0.75 mm2 (total) in a
common wire end ferrule
• max. 2.0 mm for 40-pole
cables
• max. 3.1 mm for 20-pole
cables
Design A, 5 mm to 7 mm length
Design E, up to 6 mm length
Design A, 5 mm to 7 mm length
Design E, up to 6 mm length