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
Specifications and Main Features
Frequently Asked Questions
User Manual
SIMATIC
S7-300, CPU 31xC and CPU 31x:
Installation
Operating Instructions
Preface
Guide to the S7-300
documentation
Installation Order
S7-300 components
Configuring
Installing
Wiring
1
2
3
4
5
6
Addressing
Commissioning
Maintenance
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