Siemens SIMATIC S7-300 Hardware And Installation Manual

Siemens SIMATIC S7-300 Hardware And Installation Manual

Hide thumbs Also See for SIMATIC S7-300:
Table of Contents

Advertisement

SIMATIC
S7-300
Programmable Controller
Hardware and Installation
Manual
This manual is part of the documentation
package with order number:
6ES7398-8FA10-8BA0
Edition 09/2002
A5E00105492-02
Contents
Preface
Guide to the S7-300
documentation
Installation order
S7-300 modules
Configuration
Installation
Wiring
Addressing
Commissioning
Maintenance
Testing functions, Diagnostics
and Fault Elimination
Appendix
Glossary
Index
1
2
3
4
5
6
7
8
9
10
11
12
13

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S7-300

  • Page 1 Contents Preface Guide to the S7-300 SIMATIC documentation Installation order S7-300 S7-300 modules Programmable Controller Configuration Hardware and Installation Installation Wiring Manual Addressing Commissioning Maintenance Testing functions, Diagnostics and Fault Elimination Appendix Glossary Index This manual is part of the documentation package with order number: 6ES7398-8FA10-8BA0 Edition 09/2002...
  • Page 2: A5E00105492

    Trademarks SIMATIC®, SIMATIC HMI® and SIMATIC NET® are registered trademarks of SIEMENS AG. Third parties using for their own purposes any other names in this document which refer to trademarks might infringe upon the rights of the trademark owners.
  • Page 3: Table Of Contents

    Contents Preface..........................1-1 Guide to the S7-300 documentation ................2-1 Installation Order ......................3-1 S7-300 modules ......................4-1 Configuring ........................5-1 Summary of the Content ...................5-1 Basic Principles of Planning................5-2 Component dimensions ..................5-4 Arranging modules on a single rack..............5-7 Arranging modules on multiple racks..............5-9 Selection and installation of cabinets..............5-12 Example: Selecting a cabinet................5-14 Electrical assembly, protective measures and grounding.......5-16 5.8.1...
  • Page 4 Contents Wiring front connectors ..................7-8 Inserting front connectors into modules ............7-11 Labeling the module I/Os ................7-12 Connecting shielded cables to the shielding contact element ......7-13 Wiring the bus connector ................7-16 Addressing ........................8-1 Addressing ......................8-1 Slot-defined addressing of modules..............8-1 Introduction......................8-1 User-defined addressing of modules ..............8-3 Addressing signal modules ................8-4 Addressing the integrated I/O of the CPU............8-8 Consistent data ....................8-11...
  • Page 5 Contents 12.2.1 Basic points for system installations conforming with EMC requirements..12-3 12.2.2 Five basic rules for insuring EMC ..............12-5 12.2.3 EMC compatible installation of PLC..............12-7 12.2.4 Examples of an EMC compatible installation..........12-9 12.2.5 Outdoor cable routing..................12-17 12.3 Lightning and surge voltage protection ............12-18 12.3.1 In the following sections ...
  • Page 6 Contents Figures Documentation S7-300 ..................1-2 Additional Documentation .................1-3 SIMATIC Technical Support................1-4 Installing an S7 system ..................3-1 Modules in an S7-300 ..................4-1 Horizontal and vertical installation..............5-3 Shielding terminal module.................5-5 Clearance ......................5-6 Rack with eight signal modules.................5-8 Full assembly using racks ................5-11 Power loss dissipated ..................5-15 S7-300 configuration with grounded reference potential (CPU 313 –...
  • Page 7 Contents Using the mode selector switch to reset the memory ........9-16 Using the mode selector switch for a cold start (CPU 318-2 DP only) ...9-18 9-10 Intermediate memory in CPU 31x-2 DP/31xC-2 DP as DP slave....9-33 9-11 Direct Data Exchange with CPUs 31x-2 DP/31xC-2 DP.........9-37 10-1 Unlocking the front connector and removing the module .......10-6 10-2...
  • Page 8 Contents Tables Influence of the ambient conditions on the automation system (AS)....2-1 Electrical isolation....................2-1 Communication between sensors/actuators and the automation system ..2-2 Use of centralized and decentralized peripherals ..........2-2 Configuration consisting of the central processing unit (CPU) and expansion modules (EMs).................2-2 CPU performance .....................2-3 Communication ....................2-3 Software ......................2-3...
  • Page 9 Contents Recommended commissioning procedure - part II: software ......9-3 Possible causes for the CPU memory reset request ........9-15 Procedure for resetting the CPU memory............9-16 Operations in the CPU during a memory reset ..........9-19 Software requirements ..................9-26 DP address areas of the CPUs ...............9-26 Event recognition by CPUs 31x-2 DP/31xC-2 DP as the DP master .....9-29 Event recognition for CPUs 31x-2 DP/31xC-2 DP as the DP slave....9-32 9-10...
  • Page 10 Contents S7-300 Programmable Controller Hardware and Installation A5E00105492-02...
  • Page 11: Preface

    • Canadian Standards Association: CSA C22.2 No. 142, (Process Control Equipment) • Factory Mutual Research: Approval Standard Class Number 3611 CE mark The SIMATIC S7-300 product series conforms to the requirements and safety specifications of following EU directives: • EU directive 73/23/EWE "Low-voltage directive" •...
  • Page 12: Documentation S7-300

    Preface Standards The SIMATIC S7-300 product series is compliant with the requirements and criteria for IEC 61131-2. Documentation required This manual is part of the documentation package for the S7-300. Reference Manual “CPU Data CPU 312 IFM to 318-2 DP”...
  • Page 13: Additional Documentation

    The CPU is recycleable due to its non-toxic materials. Please contact a company certified in the disposal of electronic scrap for environmentally safe recycling and disposal of your old device. Further Support If you have any technical questions, please get in touch with your Siemens representative or agent responsible. http://www.siemens.com/automation/partner Training Centers Siemens offers a number of training courses to familiarize you with the SIMATIC S7 automation system.
  • Page 14 Technical Support 24 hours a day, 365 days a year Phone: +49 (0) 180 5050-222 Fax: +49 (0) 180 5050-223 E-Mail: adsupport@ siemens.com GMT: +1:00 Europe / Africa (Nuernberg) United States (Johnson City) Asia / Australia (Beijing) Authorization Technical Support and...
  • Page 15 Preface Service & Support on the Internet In addition to our documentation, we offer our Know-how online on the internet at: http://www.siemens.com/automation/service&support where you will find the following: • The newsletter, which constantly provides you with up-to-date information on your products.
  • Page 16 Preface S7-300 Programmable Controller Hardware and Installation A5E00105492-02...
  • Page 17: Guide To The S7-300 Documentation

    Guide to the S7-300 documentation In this chapter you will find a guide to the documentation for the S7-300. Selecting and configuring Table 2-1 Influence of the ambient conditions on the automation system (AS) Information on ... is available in ... What provisions do I have to make for PLC Chapter Configuring;...
  • Page 18: Communication Between Sensors/Actuators And The Automation System

    Guide to the S7-300 documentation Table 2-3 Communication between sensors/actuators and the automation system Information on ... is available in ... Which module is suitable for my sensor/actuator? for CPU: CPU Data Reference Manual for signal modules: Module Data Reference Manual How many sensors/actuators can I connect to the for CPU: CPU Data Reference Manual...
  • Page 19: Cpu Performance

    Guide to the S7-300 documentation Table 2-6 CPU performance Information on ... is available in ... Which memory concept is best suited to my CPU Data Reference Manual application? How do I insert and remove Micro Memory Cards? Chapter Commissioning; Removing/Installing Micro Memory Cards, in the Installation Manual Which CPU meets my requirements on Instruction list;...
  • Page 20: Supplementary Features

    Guide to the S7-300 documentation Table 2-9 Supplementary features Information on ... is available in ... How do I implement operator control and for text-based display units: the relevant device monitoring? manual (Human Machine Interface) for OPs: the relevant device manual for WinCC: the relevant device manual How can I integrate process control modules? for PCS 7: the relevant device manual...
  • Page 21: Installation Order

    Installation Order In which order should the installation be carried out? In this section, we start by showing you the specific order in which a SIMATIC S7 system should be installed. We then go on to explain the basic rules that you should follow, and how you can modify an existing system.
  • Page 22 - mounting - wiring - etc. sequence. In this case, however, you only have to consider information that is relevant to the new module. Cross-reference Also note the description of your specific module in the SIMATIC S7-300 PLCs manual and the Module Data Reference Manual. S7-300 Programmable Controller Hardware and Installation...
  • Page 23: S7-300 Modules

    S7-300 modules Which modules can you use to create an S7-300? An S7-300 consists of several modules. The following diagram illustrates a possible configuration: Power supply (PS) SIEMENS BUSF DC5V FRCE Signal module(SM) STOP PROFIBUS Bus cable PG cable SIEMENS...
  • Page 24: Components Of An S7-300

    S7-300 modules A programming device (PG) is used to program the S7-300 PLC. Use a PG cable to connect the PG and the CPU. Several S7-300 CPUs can communicate with one another and with other SIMATIC S7 PLCs via the PROFIBUS cable. You can connect several S7-300s using a PROFIBUS bus cable.
  • Page 25 S7-300 modules Components Function Illustration This runs the user program, SIEMENS provides a 5 V supply to the S7- Accessory: 300 backplane bus and Front connectors (for CPUs with communicates with other MPI integrated peripherals) network nodes via the MPI interface.
  • Page 26 S7-300 modules Components Function Illustration SIMATIC TOP connect Use for wiring the digital I/O modules Accessory: Front connector module with ribbon cable terminals Interface module (IM) Connects the individual rows in an S7-300 Accessory: Connecting cable PROFIBUS cable with bus Connect the nodes of an MPI or connector PROFIBUS subnet to one...
  • Page 27: Configuring

    Configuring Summary of the Content Aim of this section In this section we describe the basics of • how to plan the mechanical installation of an S7-300, • how to plan the electrical installation of an S7-300 and • what you need to consider for networking. Further information on networking For information on network topics we recommend the Communication with SIMATIC Manual.
  • Page 28: Basic Principles Of Planning

    Configuring Basic Principles of Planning Important information about planning Warning Open equipment The modules that make up an S7-300 are regarded as open equipment. This means that you must always install the S7-300 in a cubicle, cabinet or electrical control room that 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.
  • Page 29: Horizontal And Vertical Installation

    • Vertical installation: from 0 degC to 40 degC • Horizontal installation: from 0 degC to 60 degC. Always install the CPU and power supply on the left or at the bottom. Vertical installation Horizontal installation SIEMENS BUSF DC5V FRCE STOP...
  • Page 30: Component Dimensions

    Configuring Component dimensions Length of the rails The following rails are available. Table 5-1 rails - overview rail length usable length for modules Order No. 160 mm 120 mm ES7 390-1AB60-0AA0 482.6 mm 450 mm ES7 390-1AE80-0AA0 530 mm 480 mm ES7 390-1AF30-0AA0 830 mm 780 mm...
  • Page 32: Shielding Terminals - Overview

    Configuring Order no for the retaining clip: 6ES5 390-5AA0-0AA0. If you use a shielding terminal module, the specified dimensions apply from the lower edge of the module. • Width of the shielding terminal module: 80 mm • Number of mountable shielding terminalsper shielding terminal module: max 4 Table 5-3 Shielding terminals - overview Cable with shielding diameter...
  • Page 33: Arranging Modules On A Single Rack

    Configuring Arranging modules on a single rack Are you using one or more racks? The number of racks you need will depend on your application. Reasons for using a single rack: • Compact, space-saving use of all your modules • Centralized use of your modules •...
  • Page 34: Rack With Eight Signal Modules

    Configuring Example: The figure below shows the arrangement of eight signal modules in an S7-300 assembly. SIEMENS BUSF DC5V FRCE STOP Figure 5-4 Rack with eight signal modules see also [ → Page 5-9] Arranging modules on multiple racks S7-300 Programmable Controller Hardware and Installation...
  • Page 35: Arranging Modules On Multiple Racks

    Configuring Arranging modules on multiple racks Exceptions With the 312, 312 IFM, 312C and 313 CPUs, only one row is permitted on a rack. Using interface modules If you are planning a structure distributed between multiple racks then you will need interface modules (IM).
  • Page 36: Installation

    Configuring Note The power consumption of the individual modules is given in the Module Data Reference Manual. Rules: Interference-proof installation of the connection 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 that •...
  • Page 37: Full Assembly Using Racks

    Configuring Example of a full assembly The figure shows the arrangement of modules in an S7-300 assembly on 4 racks. Rack 3 (EG) Not with CPU 314 IFM/CPU 31xC Connecting cable 368 Rack 2 (EG) Connecting cable 368 Rack 1 (EG) Connecting cable 368 Rack 0...
  • Page 38: Selection And Installation Of Cabinets

    The cabinet’s power dissipation The power dissipation capability of a cabinet depends on its type, ambient temperature and on the internal arrangement of devices. Siemens catalogs NV21 and ET1 contain more detailed information about power dissipation. Cabinet dimensions Note the following specifications when you determine the dimensions of a cabinet suitable for an S7-300 installation: •...
  • Page 39: Types Of Cabinet

    Configuring Warning Modules are liable to get damaged if exposed to inadmissible ambient temperatures. Permitted ambient temperatures ... are found in the Appendix Ambient Conditions. Important cabinet types The table below gives you an overview of the commonly used cabinet types. It shows you the applied principle of heat dissipation, the calculated maximum power loss and the degree of protection.
  • Page 40: Example: Selecting A Cabinet

    Configuring Example: Selecting a cabinet Introduction The sample below clearly shows the maximum permitted ambient air temperature at a specific power loss for different cabinet designs. Assembly The following device configuration should be installed in a cabinet: • 1 central device 150 W •...
  • Page 41: Power Loss Dissipated

    Configuring Ambient temperature in °C 1000 1200 1400 Loss of Heat in W Closed cabinet with heat exchanger; size of heat exchanger 11/6 (920 x 460 x 111 mm) Cabinet with enclosed ventilation by self-convention Closedf cabinet with natural and forced ventilation with device fan Figure 5-6 Power loss dissipated Result: From the diagram we can see that the following ambient temperatures are obtained...
  • Page 42: Electrical Assembly, Protective Measures And Grounding

    Configuring Electrical assembly, protective measures and grounding 5.8.1 Grounding concept and overall structure Introduction This section contains information about the overall structure of an S7-300 connected to a grounded incoming supply (TN-S system). The following aspects are covered: • Circuit-breaking devices, short-circuit and overload protection to VDE 0100 and VDE 0113 •...
  • Page 43: Installing An S7-300 With Grounded Reference Potential

    Configuring The table below shows components and protective measures. Table 5-7 VDE specifications for the installation of a PLC system Compare ... VDE 0100 VDE 0113 Disconnecting devices for (1) ... Part 460: ... Part 1: control systems, sensors Master switch Circuit breaker and actuators Short-circuit/overload...
  • Page 44: S7-300 Configuration With Grounded Reference Potential (Cpu 313 - 318-2 Dp)

    Configuring Grounded reference potential on CPUs 313 – 318-2 DP This connection diagram applies to the following CPUs Order No. From hardware version CPU 313 6ES7 313-1AD03-0AB0 CPU 314 6ES7 314-1AE04-0AB0 6ES7 314-1AE84-0AB0 CPU 314 IFM 6ES7 314-5AE03-0AB0 CPU 314 IFM 6ES7 314-5AE83-0AB0 CPU 315 6ES7 315-1AF03-0AB0...
  • Page 45: Cpu With Grounded Reference Potential (As Supplied)

    Configuring Grounded reference potential on CPUs 312, 314 and 315-2 DP This connection diagram applies to the following CPUs Order No. From hardware version CPU 312 6ES7312-1AD10-0AB0 CPU 314 6ES7314-1AF10-0AB0 CPU 315-2 DP 6ES7315-2AG10-0AB0 The diagram illustrates an S7-300 configuration with grounded reference potential (implemented with a grounding slide contact) Grounded reference potential of a CPU (delivered condition)
  • Page 46 Configuring 5.8.3 Installing an S7-300 with ungrounded reference potential (not CPU 312 IFM or CPU 31xC) Introduction If you install an S7-300 with ungrounded reference potential, any interference currents that occur are dissipated via an RC system to the ground conductor/local ground integrated into the CPU.
  • Page 47: S7-300 Configuration With Floating Reference Potential (Cpu 313 - 318-2 Dp)

    Configuring <100 nF Grounded CPU connection Ground bus Profile rail Figure 5-9 S7-300 configuration with floating reference potential (CPU 313 – 318-2 DP) If the jumper is not installed, the reference potential of the S7-300 is connected internally to the ground conductor via an RC system and the rail. This discharges radio-frequency interference current and avoids static charge.
  • Page 48: Creating A Floating Reference Potential On A Cpu

    Configuring Floating reference potential on CPUs 312, 314 and 315-2 DP This connection diagram applies to the Order No. From hardware version CPU 312 6ES7 312-1AD10-0AB0 CPU 314 6ES7 314-1AF10-0AB0 CPU 315-2 DP 6ES7 315-2AG10-0AB0 The diagram illustrates an S7-300 configuration with floating reference potential (implemented with a grounding slide contact) Establish reference potential of a CPU <100 nF...
  • Page 49: Isolated Or Non-Isolated Modules

    Configuring 5.8.4 Isolated or non-isolated modules? Isolated modules In configurations with isolated modules, the reference potentials of the control circuit (M ) and load circuit (M ) are electrically isolated (see Figure). internal external Application Use isolated modules for: • All AC load circuits •...
  • Page 50: Configuration With Isolated Modules

    Configuring Example: The figure below shows a sample configuration: One CPU 31xC or 312 IFM with isolated modules. S7-300 CPU internal Data internal µ P Ground bus in cabinet external AC 230 V load DC 24 V load power supply power supply * In the case of CPU 31xC or 312 IFM, the connection is automatically established.
  • Page 51: Configuration With Non-Isolated Modules

    Configuring Example: For operation with an SM 334 AI 4/AO 2 analog I/O module you must connect one of the grounding terminals M to the CPU’s chassis ground. analog The figure below shows a sample configuration of an S7-300 CPU with non- isolated modules.
  • Page 52: Grounding

    Configuring 5.8.5 Grounding Bonding Low-resistance connections to ground reduce the risk of electric shock in case of a short-circuit or system fault. Low-impedance connections (large surface, large- surface contact) reduces the effects of interference on the system or the emission of interference signals.
  • Page 53 Configuring Rule: Ground the cable shielding You should always connect both ends of the cable shielding to ground/functional ground, since this is the only way to achieve good interference suppression in the higher frequency range. If you connect only one end of the shielding (that is, at one or the other end of the cable) to ground, you will merely achieve an attenuation in the lower frequency range.
  • Page 54: Overview: Grounding

    Configuring Connecting the reference potential of the load voltage Numerous output modules require an additional load voltage for switching control devices. The table below shows how to connect the load voltage reference potential M extern for the various configuration versions. Table 5-9 Connection of the load voltage reference potential Installation...
  • Page 55: Grounding Concept For The S7-300 With Cpu 31Xc

    Configuring low-voltage distribution e. g. TN-S System (3 x 400 V) Cabinet Rail µP Signal modules Ground bus in cabinet AC 24 to 230V l oad circuit for AC modules DC 5 to 60V l oad circuit non-isolated DC modules DC 5 to 60V load circuit for isolated DC modules * In the case of CPU 31xC or 312 IFM, the connection will automatically be established...
  • Page 56: Grounding Concept For The S7-300 (Excluding Cpu 31Xc)

    Configuring Note: The arrangement displayed does not correspond with the physical arrangement; it was merely selected to give you a clear overview. low-voltage distribution e. g. TN-S System (3 x 400 V) cabinet Rail µP Signal modules Ground bus in cabinet AC 24 to 230V load circuit for AC modules DC 5 to 60V load circuit for non-isolated DC modules...
  • Page 57: Selecting The Load Power Supply Unit

    Modules requiring voltage Protective separation These characteristics apply supplies of ”  9'& RU ”  to Siemens power supplies VAC. of the series PS 307 and to SITOP power (series 6EP1). 24 VDC load circuits Output voltage tolerances: 20.4 V to 28.8 V...
  • Page 58 Configuring How to determine load current The required load current is determined by the sum load current of all sensors and actuators connected to the outputs. In case of short-circuit the DC outputs are briefly loaded with twice to three times the rated output current before the clocked electronic short-circuit protection comes into effect.
  • Page 59: Example: S7-300 With Load Power Supply Unit From Ps 307

    Configuring Low-voltage distribution e. g. TN-S System (3 x 400 V) Cabinet S7 300 CPU Rail µP signal modules Ground bus in cabinet load circuit DC 24 V for DC modules Figure 5-15 Example: S7-300 with load power supply unit from PS 307 S7-300 Programmable Controller Hardware and Installation 5-33 A5E00105492-02...
  • Page 60: Planning Subnets

    Configuring 5.10 Planning subnets 5.10.1 Extending and networking subnets Overview: Subnets with SINAMIC SIMATIC offers the following subnets, according to different automation levels (process, cell, field and actuator/sensor level ): • Multi-Point Interface (MPI) • PROFIBUS • Point-to-point communication (PtP) •...
  • Page 61: Basic Principles Of Mpi, Dp And Ptp Subnets

    Configuring Point-to-point communication (PtP) Availability: CPUs with the letters "PtP" after the number have a PtP interface as their second interface (e.g. 314-2 PtP) Point-to-Point communication is no subnet in the common sense, because only two stations are interconnected. For this type of communication you require PtP communication processors (CP). Industrial Ethernet Implementation using communication processors (CP).
  • Page 62 Configuring Convention: Device = Node In the following, all networked devices are referred to as nodes. Segment A segment is a bus link between two terminating resistors. A segment can include up to 32 nodes. It is also limited by the permitted line length, depending on the transmission rate.
  • Page 63: Nodes On The Subnet

    Configuring Number of nodes Maximum possible number of nodes per subnet: Table 5-11 Nodes on the subnet Parameters MPI PROFIBUS DP Number Addresses 0 to 126 0 to 125 Remarks Default: 32 addresses of those: • Reserved are: 1 Master (reserved) •...
  • Page 64: Mpi Addresses Of Cps/Fms In An S7-300

    Configuring Rules: Assigning MPI/PROFIBUS DP addresses Note the following rules before assigning MPI/PROFIBUS addresses: • All MPI/PROFIBUS addresses in a subnet must be unique. • The highest MPI/PROFIBUS address must be • RI WKH SK\VLFDO MPI/PROFIBUS address, and it must be identical for each node. (Exception: Connecting a PG to multiple nodes;...
  • Page 65: Interfaces

    Configuring Recommended MPI address n Reserve PROFIBUS address “0” for a service PG that you can subsequently connect briefly to the PROFIBUS subnet if required. Therefore, assign unique PROFIBUS addresses to PGs integrated in the PROFIBUS subnet. PROFIBUS DP: Electrical conductor or optical waveguide? Use optical waveguides instead of copper conductors if you want your field bus to cover greater distances regardless of the transmission rate and be insensitive to external noise fields.
  • Page 66 Configuring PROFIBUS DP interface Availability: CPU types with the identifier "DP" (used as a DP master) The PROFIBUS DP interface is mainly used to connect distributed I/Os. PROFIBUS DP allows you to create large, extended subnets, for example. The PROFIBUS DP interface can be configured as either master or slave, and offers a transmission speed of up to 12 Mbps.
  • Page 67: Network Components

    Configuring Which devices can I connect to which interface? Table 5-14 The following devices may be connected PROFIBUS DP • • • PG/PC PG/PC Devices equipped with a serial port, e.g. barcode readers, • • OP/TP OP/TP printers, etc. • •...
  • Page 68: Marginal Conditions For Wiring Interior Bus Cables

    Configuring Properties of PROFIBUS cables The PROFIBUS cable is a shielded twisted-pair cable with copper conductors. It is used for line transmission in accordance with US Standard EIA RS485. The table below lists the characteristics of these bus cables. Characteristics of the bus cables for Values PROFIBUSProperties WR ...
  • Page 69: Rs 485 Repeater

    Configuring RS485 bus connector Table 5-17 Bus connector Type Order No. RS485 bus connector, up to 12 Mbps, with 90deg cable exit, without PG interface, 6ES7 972-0BA11-0XA0 with PG interface 6ES7 972-0BB11-0XA0 Fast Connect RS485 bus connector, up to 12 Mbps, with 90deg cable exit, with insulation displacement technology 6ES7 972-0BA50-0XA0...
  • Page 70: Pg Patch Cord

    Configuring The maximum cable lengths for RS485 Repeaters ..can be found in the Chapter Cable lengths. 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 RS485 repeaters corresponds to the cable length of a segment (see the following Chapter).
  • Page 71: Cable Length

    Configuring 5.10.5 Cable length MPI Subnet Segment You can implement cable lengths of up to 50 m in an MPI subnet segment. This 50 m applies from the first node to the last node in the segment. Table 5-20 Permitted cable lengths in an MPI subnet segment Transmission rate S7-300 CPUs CPU 318-2 DP...
  • Page 72: Sample Networks

    Configuring Table 5-22 Stub cable lengths per segment Transmission rate Max. length of stub Number of nodes with stub cable length cables per segment of ... 1.5 m or 1.6 m 9.6 Kbps to 93.75 M 96 Kbps 187.5 Kbps M 75 500 Kbps M 30...
  • Page 73: Example Of An Mpi Subnet

    Configuring S7-300 CP**** S7-300 S7-300 S7-300** PROFI- SIEMENS SIEMENS OP 27** BUSF SIEMENS BUSF BUSF DC5V DC5V SIEMENS DC5V FRCE FRCE BUSF FRCE DC5V STOP STOP BUS- FRCE STOP STOP Subnetwork S7-300 S7-300 S7-300 FM**** BUSF SIEMENS SIEMENS SIEMENS OP 27...
  • Page 74: Example: Maximum Distances In The Mpi Subnet

    The figure below shows you: • a possible MPI Subnet configuration • maximum distances possible in an MPI subnet • the principle of “Line extension“ using RS485 repeaters S7-300 S7-300 S7-300 OP 27 SIEMENS SIEMENS SIEMENS BUSF BUSF BUSF DC5V DC5V...
  • Page 75: Example Of A Profibus Subnet

    Example: Installing a PROFIBUS subnet The figure below shows you the block diagram of a PROFIBUS subnet. S7-300 with CPU 31x-2 DP as DP master ET 200M ET 200M S7-300 ET 200M S5-95U SIEMENS SIEMENS BUSF BUSF DC5V DC5V DC5V FRCE FRCE FRCE...
  • Page 76: Example: Cpu 314C-2 Dp As Mpi And Profibus Nodes

    Example: CPU 314C-2 DP as MPI and PROFIBUS node The figure below shows you an assembly with a CPU 314C-2 DP integrated in an MPI subnet and also operated as DP master in a PROFIBUS subnet. S5-95U S7-300 SIEMENS BUSF DC5V DC5V FRCE...
  • Page 77: Example Of Pg Access Across Network Boundaries (Routing)

    Thus, every router knows all possible paths to a target station. PG/PC 3 S7-400 S7-400 with CPU 417 with CPU 416 MPI network 2 MPI network1 S7-300 S7-300 with CPU 31xC-2 DP with CPU 31xC-2 DP SIEMENS SIEMENS BUSF BUSF BUSF DC5V DC5V FRCE FRCE STOP STOP PG/PC 1...
  • Page 78: Installing The Terminating Resistors In An Mpi Subnet

    • CPU Data Reference Manual for your CPU • In the Communication with SIMATIC manual. Example: Terminating resistor in the MPI subnet The figure below shows you an example of an MPI subnet and where to install the terminating resistor. S7-300 SIEMENS BUSF DC5V FRCE STOP S7-300...
  • Page 79: Installation

    Installation Installing an S7-300 In this chapter we explain the steps required for the mechanical assembly of an S7-300. Note Note the installation guidelines and notes on safety in this manual when mounting, commissioning and operating S7-300 systems. Open components S7-300 modules are "Open Components"...
  • Page 80: Bus Connector

    I/Os (only CPU 312 IFM, 314 IFM and 31xC) Tip: Templates for labeling strips are available on the Internet at http://www.ad.siemens.de/cs info under article ID 11978022. Signal module (SM) 1 bus connector For electrical interconnection...
  • Page 81: Installing The Rail

    Installation Table 6-2 Installation tools and materials You require ... for ... cutting the 2 m rail to length Standard tool scribing and drilling holes on the 2 m rail Standard 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...
  • Page 82: Holes For Mounting The 2 M Rail

    Installation Preparing the 2 m rail for installation 1. Cut the 2 m 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. –...
  • Page 83: Mounting Holes For Rails

    Installation Dimension of the mounting holes The mounting hole dimensions for the rail are shown in the table below. Table 6-3 Mounting holes for rails “Standard” rail 2 m rail 32.5 mm 32,5 mm 32.5 mm 57.2 mm 57,2 mm 57.2 mm 500 mm 500 mm...
  • Page 84: Free Space Required For An S7-300 Installation

    In the case of varnished or anodized metals, for instance, use a suitable contacting agent or contact washers. 40 mm SIEMENS 40 mm Figure 6-2 Free space required for an S7-300 installation S7-300 Programmable Controller Hardware and Installation...
  • Page 85: Installing Modules On The Rail

    Installation Installing modules on the rail Requirement • Your S7-300 PLC is fully configured. • The rail is installed. Order of the modules Snap the modules onto the rail, starting at the left and in the following order: 1. Power supply module 2.
  • Page 86 Installation Installation steps The steps for installing the modules are described below. Plug the bus connectors into the CPU and signal/function/communication/interface modules. One bus connector is included per module, but not for the CPU. • Always start at the CPU when you plug in the bus connectors.
  • Page 87: Label The Modules

    Installation Label the modules Assigning slot numbers After installation, you should assign a slot number to each module. This makes it easier to assign the modules in the configuration table in STEP 7. The table below shows the slot number assignment. Table 6-4 Slot numbers for S7 modules Slot number...
  • Page 88: Inserting Slot Numbers In Modules

    Installation Inserting slot numbers 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.
  • Page 89: Wiring

    Wiring Wiring In this chapter we shall explain the procedures for wiring an S7-300. Accessories required To wire the S7-300, you require the accessories listed in the table below. Table 7-1 Wiring accessories Accessories Description Connection comb (included with the PS) for the connection between the power supply module and the CPU (not CPU 31xC)
  • Page 90: Conditions For Connecting The Ps And Cpu

    Wiring Tools and material required To wire the S7-300, you require the tools and materials listed in the table below. Wiring tools and materials You require ... for ... connecting the protective conductor to the Wrench (size 10) rail Protective conductor cable (cross- section •...
  • Page 91: Wiring

    Wiring Brief overview of front connectors Table 7-3 Wiring conditions for front connectors Connectable cables Front connector 20-pin 40-pin solid conductors flexible conductors • Without wire end 0.25 mm to 1.5 mm 0.25 mm to 0.75 mm ferrule • 0.25 mm to 1.5 mm 0.25 mm to 0.75 mm...
  • Page 92: Connecting The Protective Conductor To The Rail

    Wiring connecting the protective conductor to the rail Requirement The rail is fixed to the mounting surface. Connecting the protective conductor 1. Connect the protective conductor to the rail, using the M6 protective conductor bolt. Minimum cross-section of the protective conductor: 10 mm The figure below shows how the protective conductor must be bonded to the rail.
  • Page 93: Adjusting The Power Supply Module To Mains Voltage

    Wiring Adjusting the power supply module to mains voltage Introduction You can operate the S7-300 power supply on 120 VAC or on 230 VAC. Factory setting for PS 307 is always 230 VAC. Setting the mains voltage selector switch Check to see whether the selector switch is set to the correct mains voltage. You can change the selector switch setting as follows: 1.
  • Page 94: Wiring The Power Supply Module And The Cpu

    Wiring Wiring the power supply module and the CPU Requirement The modules are mounted on the rail. Connection comb (not CPU 312 IFM and CPUs with MMC) You can connect some of the CPUs to the PS 307 power supply module using the connection comb included with the module.
  • Page 95: Wiring The Power Supply Module And The Cpu

    Wiring The figure below illustrates the procedures described above. CPU 31xC,312, 314 (6ES7314-1AF10-0AB0) SIEMENS 315-2 DP (6ES7315-2AG10-0AB0) DC 24 V 230V Strain relief CPU power supply connector (removable) 230 V/120 V Connection leads for CPU power supply Remaining CPUs: (except CPU 312 IFM)
  • Page 96: Wiring Front Connectors

    Wiring Wiring front connectors Introduction The front connector is used to connect the sensors and actuators of your system to the S7-300 PLC. Wire the sensors and actuators to this front connector and then plug it into the module. Front connector versions Front connectors come in 20-pin and 40-pin versions, each with screw contacts or spring terminals.
  • Page 97: Move The Front Connector Into Wiring Position

    Wiring Requirement The modules (SM, FM, CP 342-2) are mounted on the rail. Preparing the front connector and the cables Warning You can come into contact with live wires if the power supply module and any additional load power supply units are connected to the mains. You should therefore disconnect the S7-300 from the power supply before starting the wiring.
  • Page 98: Wiring The Front Connector

    Wiring Wiring the front connector Table 7-5 Wiring the front connector Step 20-pin front connector 40-pin front connector Thread the cable strain relief into the front – connector. Do you want to exit the cables at the bottom of the module? If yes: Starting at terminal 20, work your way down Starting at terminal 40 or 20, wire the connector,...
  • Page 99: Inserting Front Connectors Into Modules

    Wiring Inserting front connectors into modules Requirement The front connectors are completely wired as described in the Chapter Wiring front connectors . Inserting the front connector Inserting with 20-pin front connector with 40-pin front connector the front connect or Step Push in the unlocking mechanism on top Screw-tighten the fixing screw in the of the module (1).
  • Page 100: Labeling The Module I/Os

    2. Slide the labelled strips into the front panel. Figure 7-5 Slide the labelled strips into the front panel Tip: Templates for labeling strips are available on the Internet at http://www.ad.siemens.de/csinfo under article ID 11978022. S7-300 Programmable Controller Hardware and Installation 7-12 A5E00105492-02...
  • Page 101: Connecting Shielded Cables To The Shielding Contact Element

    Wiring Connecting shielded cables to the shielding contact element Application Using the shielding contact element, you can easily ground all shielded cables of S7 modules, due to the direct contact of the shielding contact element to the rail. Design of the shielding contact element The shielding contact element consists of: •...
  • Page 102: Shielding Contact Element Underneath Two Signal Modules

    Wiring The two rows of the shielding contact element allow you install a maximum of 4 shielding terminals. Fixing bracket Shield terminal Edge a Figure 7-6 Shielding contact element underneath two signal modules Terminating cables Only one or two shielded cables can be terminated per shielding terminal (see the figure below).
  • Page 103: Connecting 2-Wire Cables To The Shielding Contact Element

    Wiring If you need more than four shielding terminals, start wiring at the rear row of the shielding contact element. Shield must be under shield terminal clamp. Figure 7-7 Connecting 2-wire cables to the shielding contact element Tip: For your connection to the front connector, leave a sufficient cable length behind the shielding terminal.
  • Page 104: Wiring The Bus Connector

    Wiring Wiring the bus connector Introduction You need to network the nodes if you want to create a multiple-node subnet. The components you require here are listed in the Chapter Configuring, Configuring a Subnet.Information on how to wire the bus connector can be found in the article below.
  • Page 105: Bus Connector: Enabled And Disabled Terminating Resistor

    Wiring Inserting the bus connector into the module 1. Insert the wired bus connector into the module. 2. Screw-tighten the bus connector on the module. 3. If the bus connectoris at the start or end of a segment, you have to enable the terminating resistor (Switch position "ON"...
  • Page 106 Wiring Removing bus connectors With a looped-through bus cable, you can unplug the bus connector from the PROFIBUS-DP interface at any time, without interrupting data communication on the network. Possible data traffic errors Warning Data traffic error might occur on the bus! A bus segment must always be terminated at both ends with the terminating resistor.
  • Page 107: Addressing

    Addressing Addressing In this chapter shows you the options for addressing specific module channels. Slot-based addressing Slot-based addressing is the default setting, that is, STEP 7 assigns each slot number a defined module start address. User-defined addressing With user-defined addressing, you can assign any module address from the address area managed by the CPU.
  • Page 108: S7-300 Slots And The Associated Module Start Addresses

    (EG) slot number initial address digital initial address analog Rack 1 (EG) slot number initial address digital initial address analog SIEMENS BUSF DC5V DC5V FRCE Rack 0 STOP (ZG) slot number 124 (CPU 31xC)* initial address digital 256 272 initial address...
  • Page 109: User-Defined Addressing Of Modules

    Addressing User-defined addressing of modules The following CPUs support free addressing Order No. As of version Firmware Hardware CPU 312 6ES7312-1AD10-0AB0 V2.0.0 CPU 312C 6ES7312-5BD0x-0AB0 CPU 313C 6ES7313-5BE0x-0AB0 CPU 313C-2 PtP 6ES7313-6BE0x-0AB0 CPU 313C-2 DP 6ES7313-6CE0x-0AB0 CPU 314 6ES7314-1AF10-0AB0 V2.0.0 CPU 314C-2 PtP 6ES7314-6BF0x-0AB0 CPU 314C-2 DP...
  • Page 110: Addressing Signal Modules

    Addressing Addressing signal modules Introduction This section shows you how to address signal modules. You need this information in order to be able to address the channels of the signal modules in your user program. Addresses of digital modules The address of an input or output of a digital module consists of a byte address and a bit address.
  • Page 111: Addresses Of The I/O Of Digital Modules

    Addressing Byte address: start address of modules Byte address: start address of modules + 1 Bit address Figure 8-2 Addresses of the I/O of digital modules S7-300 Programmable Controller Hardware and Installation A5E00105492-02...
  • Page 112: I/O Addresses Of A Digital Module In Slot 4

    4 (that is, when the module start address is 0). Slot number 3 has not been assigned since there is no interface module in the example. SM (digital modules) SIEMENS Address 0.0 BUSF DC5V Address 0.1...
  • Page 113: I/O Addresses Of An Analog Module In Slot 4

    I/O module are addressed starting at the same address, namely the module start address. Slot number 3 has not been assigned since there is no interface module in the example. SM (Analog modules) Inputs SIEMENS BUSF Channel0: Address256 DC5V FRCE Channe1: Address 258...
  • Page 114: Addressing The Integrated I/O Of The Cpu

    Addressing Addressing the integrated I/O of the CPU CPU 312 IFM The following addresses are assigned to the integrated I/O of CPU 312 IFM: Table 8-1 Integrate inputs and outputs on the CPU 312 IFM Inputs/Outputs Addresses Remarks 10 digital inputs 124.0 to 125.1 of those are 4 Inputs for Optional utilization of Inputs for...
  • Page 115: Integrated Inputs And Outputs On The Cpu 312C

    Addressing Table 8-3 Integrated inputs and outputs on the CPU 312C Inputs/Outputs Default: addresses Remarks 10 digital inputs 124.0 to 125.1 All digital inputs can be programmed as interrupt input. of those are 8 Inputs for technological functions: 124.0 to 124.7 Optional technological functions: 6 digital outputs 124.0 to 124.5...
  • Page 116: Integrated Inputs And Outputs On The Cpu 313C-2 Ptp/Dp

    Addressing CPU 313C-2 PtP/DP The following addresses are assigned to the integrated I/O of CPU 313C-2 PtP/DP: Table 8-5 Integrated inputs and outputs on the CPU 313C-2 PtP/DP Inputs/Outputs Default: addresses Remarks 16 digital inputs 124.0 to 125.7 All digital inputs can be programmed as interrupt input.
  • Page 117: Consistent Data

    Addressing Consistent data Consistent data The table below illustrates the points to consider with respect to communication in a DP master system if you want to transfer I/O areas with "Total length" consistency. CPU 315-2 DP CPU 318-2 DP CPU 315-2 DP (firmware version •...
  • Page 118 Addressing S7-300 Programmable Controller Hardware and Installation 8-12 A5E00105492-02...
  • Page 119: Commissioning

    Commissioning In this Chapter In this chapter contains notes on commissioning which you should take into account in order to avoid personal injury or damage to machines. Note Since your commissioning phase is determined primarily by your application, we can only offer you general information, without claiming completeness of this topic. Always note ...
  • Page 120: Recommended Commissioning Procedure - Part I: Hardware

    Commissioning Recommended procedure - Part I: Hardware With its modular structure and many different upgrade options, the S7-300 can be very large and extremely complex. It is therefore inappropriate to initially start up an S7-300 with multiple racks and all inserted (installed) modules. Rather, we recommend a step-by-step commissioning procedure.
  • Page 121: Recommended Commissioning Procedure - Part Ii: Software

    Commissioning Recommended procedure - Part II: Software Table 9-2 Recommended commissioning procedure - part II: software Tasks Remarks Information can be found in ... • Switch on the PG in the STEP 7 and start SIMATIC Programming Manual Manager • Download the configuration and the program to the CPU...
  • Page 122: The Commissioning Checklist

    Commissioning The commissioning checklist Introduction After you have mounted and wired your S7-300, we recommend you check all previous steps once again. The checklist tables below are a guide for your examination of the S7-300. They also provide cross-references to chapters containing further information on the relevant topic.
  • Page 123 Commissioning Module installation and wiring Points to be examined refer to the refer to the Installation Reference Manual; Manual; Chapter ... Chapter ... Are all modules properly inserted and screwed in? Are all front connectors properly wired, plugged, screw- 5; 6 tightened or latched to the correct module? Mains voltage Points to be examined...
  • Page 124: Insert The Back-Up Battery Or Rechargeable Battery

    Commissioning Insert the back-up battery or rechargeable battery Rechargeable battery and back-up battery for non maintenance-free CPUs Rechargeable battery: If the CPU is operated without a back-up battery and you only wish to back up the time against power failures on CPUs with a hardware clock, you can insert a rechargeable battery in place of the back-up battery in the back-up battery compartment.
  • Page 125: Inserting Or Replacing A Memory Card Or Micro Memory Card

    Commissioning Figure 9-1 Insert a back-up battery into CPUs 313/314 Inserting or replacing a Memory Card or Micro Memory Card How can you recognize an MC and when is it an MMC? This manual describes various CPU versions. Some CPUs (e.g. the CPU 318-2 DP) use a memory card (MC) as the storage medium.
  • Page 126: Insert The Memory Card Into The Cpu

    Commissioning 1. Switch the CPU to STOP. 2. Is a Memory Card inserted? If yes, ensure that the MMC is not accessed by read/write operations. If required, disconnect all communication connections or switch to POWER OFF state. Then pull the memory card out of its slot in the CPU.
  • Page 127: Insert The Micro Memory Card Into The Cpu

    Commissioning Caution Data on a SIMATIC Micro Memory Card can be corrupted if you remove the card during write access. In this case you might have to insert the MMC memory in your PG to delete it, or you format the card in the CPU. Never remove an MMC in RUN mode.
  • Page 128: Commissioning The Modules

    Connecting a PG to an S7-300 1. Connect the PG with a patch cable to the MPI of the CPU. Alternatively, you can produce the connecting leads with PROFIBUS cable and bus connectors yourself (refer to Chapter Wiring, Connecting Bus Connectors). SIEMENS BUSF DC5V FRCE...
  • Page 129: Connecting A Pg To Multiple S7-300 Plcs

    1. Use bus connectors to connect a stationary PG in the MPI subnet to the other nodes of the MPI subnet. The following picture illustrates two networked S7-300s which are connected to one another using bus connectors. SIEMENS BUSF DC5V FRCE...
  • Page 130: Connecting A Pg To A Subnet

    Commissioning The figure below shows the interconnection of two networked S7-300 and a PG. SIEMENS BUSF DC5V FRCE STOP S7-300 PG cable Terminating resistor = spur line switched on. SIEMENS BUSF DC5V FRCE STOP S7-300 Terminating resistor switched on. Figure 9-6 Connecting a PG to a subnet...
  • Page 131: Initial Power On

    Commissioning Connecting PGs to ungrounded nodes of an MPI subnet (not with CPUs 31xC) Connecting a PG to ungrounded nodes Always connect an ungrounded PG to ungrounded MPI subnet nodes or S7-300 PLCs. Connecting a grounded PG to the MPI You want to operate with ungrounded nodes.
  • Page 132 Commissioning Initial power up for a CPU with memory card (MC) The CPU 312 IFM has no memory card, but it is covered in this section. Switch on the PS 307 power supply module. Result: • The 24 VDC LED on the power supply module is lit. •...
  • Page 133: Resetting Cpu Memory

    Commissioning 9.6.3 Resetting CPU memory When do you reset CPU memory? You must reset CPU memory, • Before you download a (completely) new user program to the CPU • If the CPU requests memory reset with its STOP LED flashing at 0.5 Hz intervals Possible reasons for this request are listed in the table below .
  • Page 134: Using The Mode Selector Switch To Reset The Memory

    Commissioning CPU memory reset with the mode selector switch The table below shows the steps required for resetting CPU memory. Table 9-4 Procedure for resetting the CPU memory Step Resetting CPU memory Turn the key to STOP position Turn the key to the MRES position and push it in Hold the key in this position until the STOP LED lights up for the second time and remains on (this takes 3 seconds).
  • Page 135 Commissioning In specific cases you might have to format the MMC if the CPU requests memory reset again after a successful reset. Refer to the CPU Data Reference Manual, Structure and Communication Functions, SIMATIC Micro Memory Card (MMC) chapter, section on Formatting an MMC on Memory Reset. STOP LED does not flash during the memory reset What should I do if the STOP LED does not flash during the memory reset or if other LEDs are lit (Exception: BATF LED)?
  • Page 136: Using The Mode Selector Switch For A Cold Start (Cpu 318-2 Dp Only)

    Commissioning RUN- STOP- max. 3 s Figure 9-9 Using the mode selector switch for a cold start (CPU 318-2 DP only) S7-300 Programmable Controller Hardware and Installation 9-18 A5E00105492-02...
  • Page 137: Operations In The Cpu During A Memory Reset

    Commissioning What happens in the CPU during memory reset? Table 9-5 Operations in the CPU during a memory reset Event CPU 312 / 313 / 314 / 314 IFM (314-5AE10) / 315 / 31x- CPU 312 IFM / 2 DP / CPU 31xC 314 IFM (314-5AE0x) CPU activities The CPU deletes the complete user program in main memory and RAM load...
  • Page 138: Starting Simatic Manager

    Commissioning CPU 312 IFM and 314 IFM: Erasing the integrated EPROM If you wish to erase the contents of the integrated EPROM, proceed as follows: 1. Use menu command View > online to open the online window for viewing an open project open the window Available nodes with a click on the Available nodes toolbar button or select the menu command PLC >...
  • Page 139: Monitoring And Controlling I/Os

    Commissioning User interface A corresponding editing tool pops up when you open the relevant objects. Double- click on a program block starts the program editor; the block can be edited (object- oriented start). Online Help The Online Help for the active window is always called with the F1 function key. 9.6.5 Monitoring and controlling I/Os The tool "Monitoring and Controlling a Variable"...
  • Page 140 Commissioning VAT structure: In the VAT, every operand to be monitored or controlled (e.g. inputs, outputs) occupies one row. The meaning of the VAT columns is as follows: Column text This field ... Operand contains the absolute address of the variable Symbol contains the symbolic descriptor of the variable This is identical to the specification in the Symbol Table.
  • Page 141 Commissioning Setting the trigger points Trigger points: • The "Trigger point for monitoring" determines the time of update for values of variables to be monitored. • The "Trigger point for controlling" determines the time for assigning the control values to the variables to be controlled. Trigger condition: •...
  • Page 142 Commissioning Saving/Opening the Variable Table Saving the VAT 1. After you abort or complete a test phase, you can save the variable table to memory. The name of a variable table starts with the letters VAT, followed by a number from 0 to 65535; e.g. VAT5. Opening the VAT 1.
  • Page 143 Commissioning Controlling outputs in CPU STOP mode The function Enable PO switches off output disable for the peripheral outputs (PO), thus enabling control of the PO in CPU STOP mode. In order to enable the POs, proceed as follows: 1. In menu item Table > Open the variable table (VAT), open the VAT that contains the PO you want to control, or activate the window containing the corresponding VAT.
  • Page 144: Commissioning Profibus Dp

    Commissioning Commissioning PROFIBUS DP Requirements Requirement for commissioning a PROFIBUS DP network is: • A PROFIBUS DP network has been created. • In STEP 7, you have configured the PROFIBUS DP network and you have assigned all network nodes a PROFIBUS DP address and memory area (see the Manual SIMATIC, STEP 7 V5.x;...
  • Page 145: Commissioning The Cpu As Dp Master

    Commissioning With a CPU 31xC-2DP or with the new, modular CPU315-2 as the master or a CPU318 >= V3.0 as the master with DPV1 configuration, assign two different diagnostic addresses for S7 slaves. • Diagnostic address of the slave (address for slot 0) At this address all slave events are reported in the DP master (station representative), e.g.
  • Page 146 Commissioning start-up of CPU 31x-2 DP/31xC-2 DP as DP master On start-up, CPU 31x-2 DP/31xC-2 DP compares the preset configuration of your DP master systems to the actual configuration. If preset configuration = actual configuration the CPU switches to RUN mode. If the preset configuration ...
  • Page 147: Event Recognition By Cpus 31X-2 Dp/31Xc-2 Dp As The Dp Master

    Commissioning Recognizing the operating state of DP slaves (Event recognition) The table below shows how CPU 31x-2 DP/31xC-2 DP as DP master recognizes operating mode transitions of a CPU as DP slave or data exchange interrupts. Table 9-8 Event recognition by CPUs 31x-2 DP/31xC-2 DP as the DP master Event What happens in the DP master? •...
  • Page 148: Commissioning The Cpu As Dp Slave

    CPU Data 31xC and 31x Reference Manual . GSD files When working on an IM 308-C or non-Siemens system, you require a GSD file in order to be able to configure CPU 31x-2 DP/31xC-2 DP as DP slave in a DP master system.
  • Page 149 Should you require a description of the configuration and parameter assignment frame, in order to use a bus monitor for example, you can find it on the Internet at http://www.ad.siemens.de/csinfo under article ID 1452338. Commissioning Commission CPU 31x-2 DP/31xC-2 DP as DP slave in the PROFIBUS subnet as follows: 1.
  • Page 150: Event Recognition For Cpus 31X-2 Dp/31Xc-2 Dp As The Dp Slave

    Commissioning Recognizing the Operating State of the DP master (Event Recognition) The table below shows how CPU 31x-2 DP/31xC-2 DP as DP slave recognizes operating mode transitions or data exchange interrupts. Table 9-9 Event recognition for CPUs 31x-2 DP/31xC-2 DP as the DP slave Event What happens in the DP slave? •...
  • Page 151: Configuration Example For The Address Areas In Intermediate Memory

    Commissioning That is, the DP master writes its Data to these intermediate memory address areas and the CPU reads these data in the user program, and vice versa. DP master CPU as DP slave Transfer memory in the address area PROFIBUS Figure 9-10 Intermediate memory in CPU 31x-2 DP/31xC-2 DP as DP slave Address areas in intermediate memory...
  • Page 152 Commissioning Sample program Below you will see a small sample program for data exchange between DP master and DP slave. The addresses used in the example are found in the table above. In the DP slave CPU In the DP master CPU //Data pre- processing in DP slave...
  • Page 153 Commissioning Working with intermediate memory Note the following rules when working with intermediate memory: • Assignment of address areas: Input data of DP slaves are always output data of the DP master – Output data of DP slaves are always input data of the DP master –...
  • Page 154: Direct Data Exchange

    Commissioning 9.7.3 Direct data exchange Requirement In 7 STEP 7 V 5.x or later, you can configure "Direct data exchange" for PROFIBUS nodes. CPUs 31x-2 DP/31xC-2 DP can participate in direct data exchange both as sending or receiving station. Definition "Direct data exchange"...
  • Page 155: Direct Data Exchange With Cpus 31X-2 Dp/31Xc-2 Dp

    Commissioning Example: The sample in the figure below shows the relationships you can configure for direct data exchange. In the figure, all DP masters DP slaves are a CPU 31x-2 DP/31xC- 2 DP respectively. Note that other DP slaves (ET 200M, ET 200X, ET 200S) can only operate as sending station.
  • Page 156 Commissioning S7-300 Programmable Controller Hardware and Installation 9-38 A5E00105492-02...
  • Page 157: Maintenance

    Maintenance 10.1 In this Chapter Maintenance = operating system back-up/update, replacement of modules and fuses S7-300 is a maintenance-free automation system. Thus, by maintenance we mean • backing up the operating system to a memory card (MC) or micro memory card (MMC).
  • Page 158: Operating System Back-Up

    Maintenance 10.2 Operating System back-up In which situations should I back-up the operating system? In some cases, we recommend that you back up your CPU’s operating system: For example, you might want to replace the CPU in your plant with a CPU from store.
  • Page 159: Updating The Operating System

    (update). Where do I get the latest version of the operating system? You can obtain the latest operating system versions from your Siemens partner or from the Internet (Siemens home page; Automation and Drives, Customer Support).
  • Page 160: Updating The Operating System With Mc/Mmc

    Maintenance Updating the Operating System How to update the operating system (OS): Table 10-2 Updating the operating system with MC/MMC Step Action required CPU Response Using STEP 7 and your programming device, transfer the update files to an empty MC/MMC. Remove the back- up/rechargeable battery from relevant CPUs.
  • Page 161: Module Replacement

    Maintenance 10.4 Module replacement Rules for Installation and Wiring The table below draws your attention to points to follow when wiring, installing or removing of S7-300 modules. Rules governing ... Power supply ... CPU ... SM/FM/CP Blade width of screwdriver 3.5 mm (cylindrical model) Tightening torque •...
  • Page 162: Unlocking The Front Connector And Removing The Module

    Maintenance Removing a module (SM/FM/CP) Remove the module as follows: Step 20-pin front connector 40-pin front connector Switch the CPU to STOP. Switch off the load voltage to the module. Remove the labeling strip from the module. Open the front panel. Unlock the front connector and remove it.
  • Page 163: Removing The Front Connector Coding Pin

    Maintenance Removing the front connector coding pin from the module Before you start installation of the new module, remove the upper part of the front connector coding pin from this module (see the figure below). Reason: This part is already inserted in the wired front connector. Figure 10-2 Removing the front connector coding pin Installing a new module Install the new module as follows:...
  • Page 164: Inserting The Front Connector

    Maintenance Removing the Front Connector Coding If you want to take a "used" front connector to wire another module, you can remove its coding mechanism: Simply push out the front connector coding with a screwdriver. This upper part of the coding key must then be plugged back into the old module. Putting a New Module into Service Proceed as follows to put the new module into service: 1.
  • Page 165: Replacing The Back-Up Battery Or Rechargeable Battery (Cpus With Mc Only)10-9

    Maintenance 10.5 Replacing the back-up battery or rechargeable battery (CPUs with MC only) Replacing the back-up battery or rechargeable battery (for CPUs with MC only) Always replace the back-up/rechargeable battery in POWER ON state of the CPU, in order to avoid data loss in internal memory or stopping the real-time clock. Note Data in internal main memory will be lost if you replace the back-up battery in POWER OFF state of the CPU.
  • Page 166: Replacing The Back-Up Battery In Cpu 313/314

    Maintenance Figure 10-5 Replacing the back-up battery in CPU 313/314 How often do I have to replace it? back-up battery: We recommend an annual replacement Rechargeable battery: Never needs to be replaced. Disposal Note your local regulations/directives on battery disposal. Storing back-up batteries Store back-up batteries in a dry and cool place.
  • Page 167 Maintenance Rules for the handling of back-up batteries To avoid risk of danger when handling back-up batteries, note the following rules: Warning Improper handling of back-up batteries could result in injury or damage to property. Improperly handled back-up batteries can explode and cause severe burns. Do not FKDUJH KHDW XS...
  • Page 168: Digital Output Module Ac 120/230 V: Replacing The Fuses

    Maintenance 10.6 Digital output module AC 120/230 V: Replacing the fuses Fuses for Digital Outputs the digital outputs of the following digital output modules are short-circuit protected by individual fusing of the channel groups: • Digit output module SM 322; DO 16 × A 120 V •...
  • Page 169: Location Of Fuses In The Digital Output Module 120/230 Vac

    Maintenance Position of the Fuses Digital output modules are equipped with 1 fuse per channel group. The fuses are located at the left side of the digital output module. The figure below shows you the location of the fuses on digital output modules. Sicherungen Figure 10-6 Location of fuses in the digital output module 120/230 VAC Replacing fuses...
  • Page 170 Maintenance S7-300 Programmable Controller Hardware and Installation 10-14 A5E00105492-02...
  • Page 171: Testing Functions, Diagnostics And Fault Elimination

    Testing functions, Diagnostics and Fault Elimination 11.1 In this Chapter Introduction This Chapter helps you to get acquainted with tools you can use to carry out the following tasks: • Hardware/software error diagnostics. • Elimination of hardware/software errors. • Testing the hardware/software – for example, during commissioning. Note It would go beyond the scope of this manual to provide detailed descriptions of all the tools you can use for diagnostics, testing and troubleshooting functions.
  • Page 172 Testing functions, Diagnostics and Fault Elimination Note The STEP 7 testing function with program status extends the CPU cycle time! In STEP 7 you can customize the maximum permitted increase in cycle time (not for CPU 318-2 DP). In this case, set process mode for the CPU parameters in STEP 7.
  • Page 173: The Differences Between Forcing And Controlling Variables

    Testing functions, Diagnostics and Fault Elimination With S7-300-CPUs, forcing is the same as “cyclical modify“ Execute force Execute force job for inputs job for inputs User program transfer transfer transfer transfer Forced value overwritten by T Forced value Forced value PQW! Execute force T PQW...
  • Page 174: Overview: Diagnostics

    Testing functions, Diagnostics and Fault Elimination 11.3 Overview: Diagnostics Introduction System errors can occur especially in the Commissioning phase. Tracking these errors might be a time-consuming effort, since they can occur likewise on hardware and on software side. Here, the multitude of testing functions ensures commissioning without problems.
  • Page 175 Testing functions, Diagnostics and Fault Elimination Cross-reference Notes on diagnostics with LEDs are found in the Chapter below. Notes on diagnostics of I/O modules capable of diagnostics are found in the relevant Manual. Diagnostic buffer If an error occurs, the CPU writes the cause of error to the diagnostic buffer. In STEP 7 you can read the diagnostic buffer with your PG.
  • Page 176: Diagnostic Options With Step 7

    Testing functions, Diagnostics and Fault Elimination You can use SFC59 "RD_REC" (read record) to read a specific data record from the addressed module. Data records 0 and 1 are especially suitable for reading diagnostic information from a diagnosable module. Data record 0 contains 4 bytes of diagnostic data describing the current state of a signal module.
  • Page 177: Diagnostics With Leds

    Testing functions, Diagnostics and Fault Elimination 11.5 Diagnostics with LEDs Introduction Diagnostics with LEDs is an initial tool for error localization. Usually you evaluate the diagnostic buffer for further error localization. The buffer contains plain text information on the error that has occurred. For example, it contains the number of the associated error OB. You can then generate this OB to prevent the CPU status changing to STOP.
  • Page 178: Software

    Testing functions, Diagnostics and Fault Elimination Table 11-3 Evaluation of the SF LED (software error) Possible Errors response of the CPU Remedies TOD interrupt is enabled and Calls OB 85. CPU Load OB 10 or 11 (CPU 318-2 triggered. However, a does not STOP if only) (OB number can be viewed in matching block is not...
  • Page 179: Evaluation Of The Sf Led (Hardware Error)

    Testing functions, Diagnostics and Fault Elimination Possible Errors response of the CPU Remedies number • Read/write access to wrong area • Etc. I/O access error Calls OB 122. CPU Check module addressing in HW does not STOP if Config or whether a module/DP An error has occurred when OB 122 is loaded.
  • Page 180: The Busf, Busf1 And Busf2 Leds

    Testing functions, Diagnostics and Fault Elimination Cross-reference Details on the OBs and on SFCs required for their evaluation can be found in the STEP 7 Online Help and in the Manual System Software for S7-300/400 - System and Standard Functions. Status and error display of DP-compliant CPUs Table 11-5 The BUSF, BUSF1 and BUSF2 LEDs...
  • Page 181: The Busf Led Flashes

    Testing functions, Diagnostics and Fault Elimination Table 11-7 The BUSF LED flashes Possible Errors response of the CPU Remedies The CPU is the DP master/active Calls OB 86 (when CPU is in Ensure that the bus cable is slave: RUN mode). CPU switches to connected to the CPU and that STOP if OB 86 is not loaded.86 the bus is not interrupted.
  • Page 182: Diagnostics Of Dp Cpus

    Testing functions, Diagnostics and Fault Elimination 11.6 Diagnostics of DP CPUs 11.6.1 Diagnostics of DP CPUs operating as DP master Diagnostics evaluation in the user program The figure below illustrates the procedure for evaluating the diagnostics in the user program. Diagnostic event Valid for the following CPUs CPU 318-2-DP>=V3.0.0,...
  • Page 183: Diagnostic Addresses For Dp Masters And Dp Slaves

    Testing functions, Diagnostics and Fault Elimination Diagnostic Addresses With CPU 31x-2 you assign diagnostic addresses for the PROFIBUS DP. Make sure during configuration that DP diagnostic addresses are assigned to the DP master and to the DP slave. CPU as DP slave CPU as DP master PROFIBUS DP During configuration you must specify two diagnostic addresses:...
  • Page 184: Event Recognition By Cpus 31X-2 As The Dp Master

    Testing functions, Diagnostics and Fault Elimination Special features of the CPU 31xC-2 DP, 315-2 DP and 318-2 DP Applies to the following CPUs From firmware version CPU 313C-2 DP V 2.0.0 CPU 314C-2 DP V 2.0.0 CPU 315-2 DP V 2.0.0 (6ES7315-2AG10-0AB0) CPU 318-2 DP >= V3.0.0...
  • Page 185: Evaluation In The Dp Master Of Run To Stop Transitions By The Dp Slave

    Testing functions, Diagnostics and Fault Elimination Evaluation in the user program The table below shows how you can, for example, evaluate RUN to STOP transitions of the DP slave in the DP master. Table 11-9 Evaluation in the DP master of RUN to STOP transitions by the DP slave In the DP master In the DP slave (CPU 31x-2DP) Diagnostic addresses: (Example)
  • Page 186: Diagnostic Address For The Receiving Station With Direct Data Exchange

    Testing functions, Diagnostics and Fault Elimination 11.6.1.1 Reading Slave Diagnostic Data The slave diagnostic data is compliant with EN 50170, Volume 2, PROFIBUS. Depending on the DP master, diagnostic data for all DP slaves conforming to standard can be read with STEP 7 . Diagnostic addresses with direct data exchange You assign a diagnostic address to the receiving station when directly exchanging data:...
  • Page 187: Reading The Diagnostic Information Using Step 5 And Step 7 In The Masters System

    Manual user program) FB 125/FC 125 Evaluating slave On the Internet URL diagnostic data http://www.ad.siemens.d e/simatic-cs, Article ID 387 257 SIMATIC S5 with IM FB 192 “IM308C” Reading slave Manual Distributed I/O 308-C operating as DP...
  • Page 188 Testing functions, Diagnostics and Fault Elimination Agreement for the STEP 5 user program For this STEP 5 user program it is assumed that: • The IM 308-C operating as DP master uses page frame 0 to 15 (number 0 of IM 308-C).
  • Page 189 Testing functions, Diagnostics and Fault Elimination Agreement for the STEP 7 user program For this STEP 7 user program it is assumed that: • Diagnostic data for the input module at address 200 is to be read. • Data record 1 is to be read out. •...
  • Page 190: Diagnostic Addresses For Dp Masters And Dp Slaves

    Testing functions, Diagnostics and Fault Elimination Diagnostic Addresses With CPU 31x-2 you assign diagnostic addresses for the PROFIBUS DP. Make sure during configuration that DP diagnostic addresses are assigned to the DP master and to the DP slave. CPU as DP slave CPU as DP master PROFIBUS DP During configuration you must specify two diagnostic addresses:...
  • Page 191: Event Recognition By Cpus 31X-2 Acting As The Dp Slave

    Testing functions, Diagnostics and Fault Elimination Special features of the CPU 31xC-2 DP, 315-2 DP and 318-2 DP Applies to the following CPUs From firmware version CPU 313C-2 DP V 2.0.0 CPU 314C-2 DP V 2.0.0 CPU 315-2 DP V 2.0.0 (6ES7315-2AG10-0AB0) CPU 318-2 DP >= V 3.0.0...
  • Page 192: Interrupts On The Dp Master

    Testing functions, Diagnostics and Fault Elimination Evaluation in the user program The table below shows you how you can, for example, evaluate RUN-STOP transitions of the DP master in the DP slave (see also the previous table). Table 11-12 Evaluation of RUN to STOP transitions in the DP master/DP slave In the DP master In the DP slave Diagnostic addresses: (Example)
  • Page 193 Testing functions, Diagnostics and Fault Elimination You can set any intelligent slave interrupts using SFB75 Applies to the following Order No. From firmware version CPUs CPU 313C-2 DP 6ES7313-6CE01-0AB0 V 2.0.0 CPU 314C-2 DP 6ES7314-6CF01-0AB0 V 2.0.0 CPU 315-2 DP 6ES7315-2AG10-0AB0 V 2.0.0 SFB 75 "SALRM"...
  • Page 194: Structure Of Slave Diagnostic Data

    Testing functions, Diagnostics and Fault Elimination Byte 0 Byte 1 Station status 1 to 3 Byte 2 Master PROFIBUS address Byte 3 High-Byte Byte 4 Manufacturer ID Low-Byte Byte 5 Module diagnostics Byte 6 length depends on the number of the configured areas of the Byte x-1 Intermediate memory)
  • Page 195: Structure Of Station Status 1 (Byte 0)

    Testing functions, Diagnostics and Fault Elimination Station status 1 Table 11-13 Structure of station status 1 (byte 0) Description Remedy • 1: DP slave cannot be addressed by DP master. Is the correct DP address set on the DP slave? •...
  • Page 196: Structure Of The Master Profibus Address (Byte 3)

    Testing functions, Diagnostics and Fault Elimination Station Status 3 Table 11-15 Structure of station status 3 (byte 2) Description 0 to 6 0: These bits are always “0” 1:The DP slave is out of memory for received diagnostic messages. The DP master cannot write all diagnostic messages sent by the DP slave to its diagnostic buffer.
  • Page 197: Structure Of The Id-Specific Diagnostics For Cpu 31X-2

    Testing functions, Diagnostics and Fault Elimination 7 6 5 4 3 2 1 0 Bit No Byte 6 length of the module diagnostics incl. Byte 6 (dependent on the number of configured address areas up to 6 Byte) Code for module diagnostics 5 4 3 2 1 0 Bit No.
  • Page 198: Structure Of The Module Status

    Testing functions, Diagnostics and Fault Elimination Module status The module status reflects the status of the configured address areas, and provides detailed ID-specific diagnostics with respect to the configuration. Module status starts with module diagnostics and consists of a maximum of 13 bytes. Byte x Length of module status incl.
  • Page 199: Structure Of The Interrupt Status

    Testing functions, Diagnostics and Fault Elimination Interrupt status The interrupt status of module diagnostics provides details on a DP slave. The maximum length of module diagnostics starting at byte y is 20 bytes. The following figure describes the structure and content of the bytes for a configured address area of intermediate memory.
  • Page 200 Testing functions, Diagnostics and Fault Elimination Structure of the interrupt data for a process interrupt (from byte y+4) When a process interrupt occurs (code 02 for process interrupt in byte y+1), 4 bytes of interrupt information after byte y+4 are transferred. These 4 bytes were transferred to the intelligent slave using SFC 7 „DP_PRAL“...
  • Page 201: Bytes Y+4 To Y+7 For The Diagnostic Interrupt (Sfb 75)

    Testing functions, Diagnostics and Fault Elimination Structure of the interrupt data when a diagnostic interrupt is generated by SFB 75 on the intelligent slave (after byte y+4) 6 5 4 3 2 1 0 bit no.. 0: module o.k. Byte y +4 1: module fault 6 5 4 3 2 1 0 bit no.
  • Page 202 Testing functions, Diagnostics and Fault Elimination S7-300 Programmable Controller Hardware and Installation 11-32 A5E00105492-02...
  • Page 203: Appendix

    Appendix 12.1 Assembly 12.1.1 General rules and regulations for S7-300 operation Introduction In view of the many and versatile S7-300 applications, this chapter can only describe the basic rules on its electrical configuration. You must observe at least these basic rules if you want your S7-300 to operate free of trouble. EMERGENCY-OFF devices EMERGENCY-OFF devices to IEC 204 (corresponds to VDE 113) must remain effective in all operating modes of the plant or system.
  • Page 204: Mains Voltage

    Appendix Mains voltage The following table shows you what to watch with respect to the mains voltage. Table 12-2 Mains voltage In the case of ... is ... For stationary systems or systems without Installation of a mains disconnect switch or all-pole mains disconnect switch a fuse in the building installation system.
  • Page 205: Protection Against Electromagnetic Interference

    • Interference coupling via the system wiring • Interference influencing the system via the power supply and/or protective ground The figure below shows the likely paths of electromagnetic interference. electromagnetic fields SIEMENS BUSF DC5V FRCE STOP process wiring bus signal...
  • Page 206: Coupling Mechanisms

    Appendix Coupling mechanisms Depending on the emitting media (line or isolated) and the distance between the interference source and the device, four different coupling mechanisms can influence the PLC. Table 12-5 Coupling mechanisms Coupling Cause Typical interference sources mechanisms • Electrical Electrical or mechanical Clocked devices (influence on the...
  • Page 207: Five Basic Rules For Insuring Emc

    Appendix 12.2.2 Five basic rules for insuring EMC If you conform with theses five basic rules ... you can insure EMC in many cases! Rule 1: Large-area grounding When you install the automation equipment, make sure that surfaces of inactive metal parts are well bonded to chassis ground (see the following sections).
  • Page 208 Appendix Rule 3: Mounting the cable shielding Take care that all cable shielding is properly fastened (refer to the section on Shielding of cables). • Always use shielded data cable. Always connect both ends of the shielding to ground on a large area. •...
  • Page 209: Emc Compatible Installation Of Plc

    Appendix see also [ → Page 5-16] Grounding concept and overall structure [ → Page 12-12] Shielding of cables [ → Page 12-17] Outdoor cable routing [ → Page 12-15] Cable routing inside buildings [ → Page 12-7] EMC compatible installation of PLC 12.2.3 EMC compatible installation of PLC Introduction...
  • Page 210 Appendix Observe for ground connection: • In the same way as with active elements, exercize meticulous care to interconnect inactive metal elements. • Always make sure that you have a low-impedance interconnection between metal elements (e.g. large and highly conductive contact surface). •...
  • Page 211: Examples Of An Emc Compatible Installation

    Appendix 12.2.4 Examples of an EMC compatible installation Introduction Below you can find two examples of an EMC compatible PLC installation. Sample 1: EMC compatible cabinet installation The figure below shows a cabinet installation with the measures described above (bonding of inactive metal parts to chassis ground and connecting the cable shielding to ground).
  • Page 212: Key To Example 1

    Appendix Key to example 1 The numbers in the following list refer to the numbers in the figure above. Table 12-6 Key to example 1 Description Explanation Ground straps If no large-surface metal-to-metal connections are available, you must either interconnect inactive metal parts (e.g. cabinet doors or mounting plates) or bond them to chassis ground using ground straps.
  • Page 213: Example Of Emc Compatible Wall-Mounting

    Appendix Note the following points on framewall-mounting: • When mounting on varnished or anodized metal parts, use special contact washers or remove the insulating layers. • Provide a large-surface and low-impedance metal-to-metal connection for fastening the shielding/protective conductor busbar. • Always touch-protect live mains conductors. The figure below shows an example of EMC compatible wall-mounting of an S7.
  • Page 214 Appendix 12.2.4.1 Shielding of cables Purpose of the shielding A cable is shielded to attenuate the effects of magnetic, electrical and electromagnetic interference on the cable. Operating principle Interference currents on cable shielding is diverted to ground conductive interconnection between the shielding and the cabinet. To avoid interference as a result of these currents, it is imperative to provide a low-impedance connection to the protective conductor.
  • Page 215: Mounting Cable Shielding

    Appendix The figure below shows some options for mounting shielded cables, using cable clamps. Figure 12-4 Mounting cable shielding 12.2.4.2 Equipotential bonding Potential differences Potential differences can occur between separate system elements. This can result in high equipotential currents, e.g. if the cable shielding is terminated at both ends and grounded to different system components.
  • Page 216: Equipotential Bonding

    Appendix Equipotential bonding conductor To reduce potential differences and ensure proper functioning of your electronic equipment, you must install equipotential bonding conductors. Note the following points on the use of equipotential bonding conductors: • The lower the impedance of an equipotential bonding conductor, the more effective is equipotential bonding.
  • Page 217: Routing Cables Inside Buildings

    Appendix 12.2.4.3 Cable routing inside buildings Introduction Inside buildings (inside and outside cabinets), clearances must be maintained between groups of different cables to achieve the necessary electromagnetic compatibility (EMC). The table contains information on the general rules governing clearances to enable you to choose the right cables. How to Read the Table To find out how to run two cables of different types, proceed as follows: 1.
  • Page 218 Appendix Cables for ... and cables for ... Run ... • • DC voltage (> 60 V and Bus signals, shielded In separate bundles or cable ” 400 V), unshielded (PROFIBUS) ducts (no minimum clearance necessary) • • AC voltage (> 25 V and Data signals, shielded ”...
  • Page 219: Outdoor Cable Routing

    Appendix 12.2.5 Outdoor cable routing Rules for EMC compatible cable routing The same EMC compatibility rules apply both for indoor and outdoor routing of cables. The following also applies: • Running cables on metal cable trays. • Electrical connection of the joints of cable trays/ducts. •...
  • Page 220: Lightning And Surge Voltage Protection

    If you wish to obtain detailed information on surge protection, we therefore recommend you contact your Siemens partner or a company specialized in lightning protection. S7-300 Programmable Controller Hardware and Installation...
  • Page 221 Appendix 12.3.1.1 Lightning protection zone concept Principally of the Lightning protection zone concept to IEC 61312-1/DIN VDE 0185 T103 The principle of the lightning protection zone concept states that the volume to be protected against overvoltage, for example, a manufacturing hall, is subdivided into lightning protection zones in accordance with EMC directives (see Figure ).
  • Page 222: Lightning Protection Zones Of A Building

    Appendix Lightning-protection zone 0 (field side) Building shield External lightning prot. (Steel reinforcing) Ligtning-protection zone 1 Room shield (Steel reinforcing) Ligtning-prot. zone 2 Line in power Device shield Lightning system -prot. (Metal casing) Zone 3 device Non- electric Metal line part (metalic) Internal...
  • Page 223: Rules For The Transition Point Between Lightning Protection Zones 1

    Appendix Principle of the transition points between lightning protection zones At the transitions points between lightning protection zones, you must take measures to prevent surges being conducted downstream. The principle of the lightning protection zone concept also specifies that all cables which are capable of carrying lightning current (!) and installed at the transition points of lightning protection zones must be included in the equipotential bonding system.
  • Page 224 Appendix Table 12-8 High-voltage protection of cables with surge voltage protection omponents Consec. Cables for ..equip transition point 0 <-> 1 Order No. with: 3-phase TN-C system DEHNbloc/3 900 110* lightning conductor, phase 5SD7 031 L1/L2/L3 to PEN 3-phase TN-S system DEHNbloc/3 900 110*...
  • Page 225: Rules For The Transition Points Between Lightning Protection Zones

    Appendix 12.3.3 Rules for the transition points between lightning protection zones 1 <-> 2 and higher Rules for transition points 1 <-> 2 and higher (local equipotential bonding) The following measures must be taken on all transition points 1 <-> 2 and higher: •...
  • Page 226: Surge Voltage Protection Components For Lightning Protection Zones 1 <-> 2

    Appendix Table 12-9 Surge voltage protection components for lightning protection zones 1 <-> 2 Consec. Cables for ..equip transition point Order No. 1 <-> 2 with: 3-phase TN-C system DEHNguard 275 surge 900 600* arresters 5SD7 030 3-phase TN-S system DEHNguard 275 surge 900 600* arresters...
  • Page 227: Surge Voltage Protection Components For Lightning Protection Zones 2 <-> 3

    Appendix Low-voltage protection elements for 2<-> 3 For the transition points between lightning protection zones 2 <-> 3 we recommend the surge protection components listed in the table below. This low-voltage protection must be used in S7-300 for CE compliance. Table 12-10 Surge voltage protection components for lightning protection zones 2 <->...
  • Page 228: Sample Of A Surge Protection Circuit For Networked S7-300 Plcs

    Appendix 12.3.4 Sample of a surge protection circuit for networked S7-300 PLCs Sample circuit The sample in the figure below shows you how install an effective surge protection for 2 networked S7-300 PLCs: Lightning-protection 0, Field side zone Lightning-protection zone 1 Switchgear cubicle1 Switchgear cubicle2 Lightning-protection zone 2...
  • Page 229: Example Of A Lightning-Protected Structure (Key To Figure Above)

    Appendix Components in previous figure 1-2 The table below explains consecutive numbers in the figure above: Table 12-11 Example of a lightning-protected structure (key to figure above) Consec. Components Description from figure above lightning arrestor, depending on the mains High-voltage protection against system, e.g.
  • Page 230: How To Protect Digital Output Modules Against Inductive Surge Voltage

    Appendix 12.3.5 1 How to protect digital output modules against inductive surge voltage Inductive surge voltage Overvoltage occurs when inductive devices are switched off. Examples are relay coils and contactors. Integrated surge arrestor S7-300 digital output modules are equipped with an integrated surge arrester. Additional Overvoltage Protection Inductive devices require additional surge arresters only in following cases: •...
  • Page 231: Circuit For Coils Operated With Dc Voltage

    Appendix Circuit for coils operated with DC voltage The figure below shows DC-operated coils equipped with diode or Zener diode circuit. with diode with Zener diode Figure 12-9 Circuit for coils operated with DC voltage Diode/Zener diode circuits have the following characteristics: •...
  • Page 232: Safety Of Electronic Control Equipment

    Appendix 12.4 Safety of electronic control equipment Introduction The notes below apply independent of the type or manufacturer of the electronic control. Reliability Maximum reliability of SIMATIC devices and components is achieved by implementing extensive and cost-effective measures during development and manufacture: This includes the following: •...
  • Page 233 Appendix Splitting the group into safety-relevant areas and areas which are not safety relevant Most plants contain equipment performing safety-relevant operations (e.g. EMERGENCY-OFF switch, protective gates, two-hand controls). To avoid the need to examine the entire controller from the aspect of safety, the controller is usually divided into an area that is safety-relevant and an area that is not safety- relevant In the non-safety-related area, no special demands are placed on the safety of the control equipment because any failure in the electronics will have no...
  • Page 234 Appendix S7-300 Programmable Controller Hardware and Installation 12-32 A5E00105492-02...
  • Page 235: Glossary

    Glossary Terminating resistor The terminating resistor is used to avoid reflections on data links. Address An address represents the ID for a specific address or address range. Example: Input I12.1; Memory bit word MW25; Data block DB3. Accumulator The --> CPU uses the accumulator registers as intermediate memory for load, transfer, comparison, calculation and conversion operations.
  • Page 236 Glossary Interrupt, status A status interrupt can be generated by a DPV1 slave and causes OB 55 to be called on the DPV1 master. For detailed information on OB 55, see the Reference Manual "System software for S7-300/400: System and Standard Functions" Interrupt, time-of-day The time-of-day interrupt belongs to one of the priority classes when processing programs in SIMATIC S7.
  • Page 237 Glossary User Program The SIMATIC system distinguishes between the --> CPU operating system and user programs. The latter are created with --> -->STEP 7 programming software, using optional programming languages (LAD and STL). User programs are stored in code blocks. data is stored in data blocks. User memory User memory contains -->...
  • Page 238 Glossary Reference ground --> Ground Reference potential Potential with reference to which the voltages of participating circuits are observed and/or measured. A bus is a communication medium connecting several nodes. Data can be transferred via serial or parallel circuits, that is, via electrical conductors or optic waveguides.
  • Page 239 Glossary Data, temporary Temporary data is local data of a block that is stored in the L stack during block execution and no longer available after execution. Diagnostics --> System Diagnostics Diagnostic Interrupt Modules capable of diagnostics operations report detected system errors to the --> CPU via diagnostic interrupts.
  • Page 240 Glossary Ground (to) To ground means to connect an electrically conducting component to the grounding electrode (one or more conducting components which have a very good contact with the earth) across a grounding system. Floating potential Having no electrical connection to ground Substitute Value Substitute values are configurable values which output modules transfer to the process when the CPU switches to STOP mode.
  • Page 241 Glossary Error Response Response to a --> runtime error. The operating system can respond in the following ways: transition of the PLC to STOP mode, call of an organization block in which the user can program an error response or display. Flash EPROM FEPROMs are the same as electrically erasable EEPROMS in that they can retain data in the event of a power failure, but they can be erased much more quickly...
  • Page 242 Glossary GD circuit A GD circle encompasses a number of CPUs which exchange data by means of global data communication and which are used as follows: • One CPU broadcasts a GD packet to the other CPUs. • One CPU sends and receives a GD packet from another CPU. A GD circuit is identified by a GD circuit number.
  • Page 243 Glossary Configuration Assignment of modules to racks/slots and (e.g. for signal modules) addresses. Consistent data Data whose contents are related and which should not be separated are known as consistent data. For example, the values of analog modules must always be handled consistently, that is the value of an analog module must not be corrupted by reading it out at two different times.
  • Page 244 Glossary Micro Memory Card (MMC) Micro Memory Cards are memory media for CPUs and CPs. Its smaller dimensions form the only difference compared to the --> Memory Card. This interface is capable of multipoint communication (MPI). It forms part of the SIMATIC S7 PG interface.
  • Page 245 Glossary Parameters 1. Variable of a STEP 7 code block 2. Variable for declaring module response (one or several per module). All modules have a suitable basic factory setting which can be customized inSTEP 7. There are --> static parameters and --> dynamic parameters Parameters, dynamic Unlike static parameters, dynamic parameters of modules can be changed during operation by calling an SFC in the user program, for example limit values of an...
  • Page 246 Glossary PROFIBUS DP The PLC distributes controls for digital, analog and intelligent modules and to a wide range of field devices to EN 50170, part 3, such as drives or valve blocks, to processes at external locations - even across distances exceeding 23 km. The modules and field devices are connected to the programmable controller via the PROFIBUS-DP field bus and are addressed in the same way as centralized I/Os.
  • Page 247 Glossary Backplane Bus The serial backplane data bus supplies the power required by the modules. It is also used by the modules for communication. The connection between the modules is established by bus connectors. Nesting depth One block can be called from another by means of a block call. Nesting depth is defined as the number of simultaneously called -->...
  • Page 248: Communication

    Glossary --> Programmable controller STEP 7 Programming language for developing user programs for SIMATIC S7 PLCs. System diagnostics System diagnostics is the term used to describe the detection, evaluation and signaling of errors which occur within the programmable controller. Examples of such errors are program errors or module failures.
  • Page 249 Glossary Clock memory bits Memories that can be used for clocking purposes in the user program (1 memory byte). Note Note in the case of S7-300 CPUs that the clock memory byte is not overwritten in the user program. Timer -->...
  • Page 250 Glossary Timers Timers are part of CPU --> system memory. The contents of the “timer cells” are updated automatically by the operating system asynchronously to the user program. STEP 7 instructions are used to define the exact function of the timer cells (for example on-delay) and initiate their execution (e.g.
  • Page 251 Index bus termination ..........5-52 BUSF LED............11-10 BUSF1 accessories LED............11-10 wiring............7-1 BUSF2 accessories ............6-2 LED............11-10 accumulator..........13-1 Actuator/Sensor Interface......5-35 address ............13-1 addresses analog modules ..........8-6 cabinet dimensions..........5-12 integrated I/O of CPUs .......8-8 technological functions .......8-8 Power loss dissipated ......5-14 Addresses Selecting and dimensioning .....
  • Page 252 Index connecting cables Addresses ..........8-4 for interface modules ......... 5-9 digital output module connecting sensors ........7-8 replacement fuses ........10-12 connection comb..........7-6 replacing fuses ........10-13 consistent data..........8-11 dimensions Consistent data ..........13-9 the modules..........5-4 controlling Direct data exchange ........9-36 of variables ..........
  • Page 253 Index GD packet ............13-8 Global data...........13-8 ground ............13-5 labeling strips Ground ............13-6 assignment to modules ......7-12 ground conductor inserting ........... 7-12 fixing the ground conductor ......6-4 LED............11-10 grounding concept........5-23 Lightning protection equipotential bonding 12-21 GSD file (device master file)......13-8 Lightning protection zone concept .....
  • Page 254 Index dimensions..........5-4 isolated ............ 5-23 access across network boundaries ..5-51 non-isolated ..........5-23 connecting ..........9-10 Monitor and control variable ungrounded installation ......9-13 Setting the trigger points ......9-23 via stub cable to subnet......9-11 monitor and control variables Point-to-Point controlling variables ......... 9-22 maximum baud rate........5-36 monitoring Maximum possible number of nodes ..5-37...
  • Page 255 Index Signal module ..........13-13 SIMATIC Manager ........9-20 start............9-20 rail SINEC L2-DP..........13-12 connecting the protective conductor...7-4 single-step mode ......... 11-1 ground conductor ........6-4 Slave Diagnostic mounting hole dimensions......6-5 read ............11-16 preparing ............6-4 slave diagnostics rails read, example ........11-17 fixing screws..........6-5 structure..........
  • Page 256 Index variable monitoring or control wiring create variable table......... 9-21 accessories required ........7-1 variables front connector .........7-10 controlling ..........11-1 front connectors..........7-3 force............11-2 PS and CPU ..........7-6 monitoring ..........11-1 required tools and materials .......7-2 vendor ID ........... 11-26 Wiring vendor-specific interrupt.......

Table of Contents