Download  Print this page

Siemens CPU 313C Hardware And Installation Manual

S7-300 automation system.
Hide thumbs

Advertisement

s
SIMATIC
This manual is part of the documentation
package with the order number:
6ES7398-8FA10-8BA0
Edition 06/2003
A5E00105492-03
Contents
Preface
Guide to the S7-300
Documentation
Installation Order
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

   Also See for Siemens CPU 313C

   Summary of Contents for Siemens CPU 313C

  • Page 1: Table Of Contents

    Contents Preface Guide to the S7-300 SIMATIC Documentation Installation Order S7-300 Automation System, Hardware and Installation: S7-300 Modules CPU 31xC and CPU 31x Configuring Installation Manual Installation Wiring Addressing Commissioning Maintenance Testing Functions, Diagnostics and Fault Elimination Appendix Glossary Index This manual is part of the documentation package with the order number: 6ES7398-8FA10-8BA0...
  • Page 2 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 &RQWHQWV 3UHIDFH  *XLGH WR WKH 6 'RFXPHQWDWLRQ  ,QVWDOODWLRQ 2UGHU  6 0RGXOHV &RQILJXULQJ 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-8 Selection and installation of cabinets ..............5-11 Example: Selecting a Cabinet .................5-14 Electrical Assembly, Protective Measures, and Grounding ......5-16...
  • Page 4 &RQWHQWV :LULQJ Wiring ........................7-1 Connecting the Protective Conductor to the Rail ..........7-4 Adjusting the Power Supply Module to the Mains Voltage .......7-5 Wiring the Power Supply Module and the CPU ..........7-6 Wiring Front Connectors ...................7-8 Inserting Front Connectors into Modules ............7-12 Labeling the Module I/O ..................7-13 Connecting Shielded Cables to the Shielding Contact Element .....7-14 Wiring the Bus Connector ................7-17...
  • Page 5 &RQWHQWV 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 11.1 In this Chapter ....................11-1 11.2 Overview: Testing Functions ................11-1 11.3 Overview: Diagnostics ..................11-4 11.4 Diagnostic options with STEP 7 ..............11-6 11.5 Diagnostics with LEDs..................11-7 11.6 Diagnostics of DP CPUs ................11-12 11.6.1 Diagnostics of DP CPUs Operating as DP Master........11-12 11.6.2 Reading slave diagnostic data ..............11-15 11.6.3...
  • Page 6 &RQWHQWV )LJXUHV Information Landscape of S7-300 ..............1-3 Additional Documentation ................1-4 SIMATIC Technical Support.................1-5 Installing an S7 system ................3-1 Modules in an S7-300 ..................4-1 Horizontal and vertical installation..............5-3 Shielding contact element ................5-5 Clearance .....................5-6 Rack with eight signal modules ..............5-8 Full assembly using racks ................5-10 Power loss dissipated.................5-15 CPU with grounded reference potential (as supplied) .......5-18 Creating an ungrounded reference potential on a CPU......5-19...
  • Page 7 &RQWHQWV 11-1 Principle of forcing in S7-300 CPUs............11-3 11-2 Diagnostics with CPU 31x-2..............11-12 11-3 Diagnostic addresses for DP masters and DP slaves ......11-13 11-4 Diagnostic address for the receiving station with direct data exchange ..11-15 11-5 Diagnostic addresses for DP masters and DP slaves ......11-19 11-6 Structure of slave diagnostic data ............11-22 11-7...
  • Page 8 Integrated inputs and outputs on the CPU 312C ..........8-6 Integrated inputs and outputs on the CPU 313C ..........8-7 Integrated inputs and outputs on the CPU 313C-2 PtP/DP ......8-7 Integrated inputs and outputs on the CPU 314C-2 PtP/DP ......8-8 S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x...
  • Page 9 &RQWHQWV Recommended commissioning procedure - part I: Hardware ......9-2 Recommended commissioning procedure - part II: software .......9-3 Possible causes for the CPU memory reset request ........9-13 Procedure for resetting the CPU memory...........9-13 Operations in the CPU during a memory reset ...........9-15 Software requirements ................9-22 DP address areas of the CPUs ..............9-23 Event recognition by CPUs 31x-2 DP/31xC-2 DP as the DP master ..9-25...
  • Page 10 &RQWHQWV S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x A5E00105492-03...
  • Page 11 P…qr…ÃI‚à 6†Ã‚sÉr…†v‚Ã UurÃ8QV†Ãh…rÃ…rsr……rqà Av…€h…rà Ch…qh…rà ‡‚ÃvÃ‡uv†Ã€hˆhyÃh†Ã s‚yy‚†)à CPU 312C CPU 31xC 6ES7312-5BD01-0AB0 V2.0.0 CPU 313C 6ES7313-5BE01-0AB0 V2.0.0 CPU 313C-2 PtP 6ES7313-6BE01-0AB0 V2.0.0 CPU 313C-2 DP 6ES7313-6CE01-0AB0 V2.0.0 CPU 314C-2 PtP 6ES7314-6BF01-0AB0 V2.0.0 CPU 314C-2 DP 6ES7314-6CF01-0AB0 V2.0.0 CPU 312 CPU 31x 6ES7312-1AD10-0AB0 V2.0.0...
  • Page 12 3UHIDFH $SSURYDOV The SIMATIC S7-300 product series has the following approvals: • Underwriters Laboratories, Inc.: UL 508 (Industrial Control Equipment) • Canadian Standards Association: CSA C22.2 No. 142, (Process Control Equipment) • Factory Mutual Research: Approval Standard Class Number 3611 &( PDUN The SIMATIC S7-300 product series conforms to the requirements and safety specifications of following EU directives:...
  • Page 13: S7-300 Automation System

    3UHIDFH 'RFXPHQWDWLRQ UHTXLUHG This manual is part of the documentation package for the S7-300. Reference Manual Description of the operation, the functions and the CPU Specifications: CPU 312 IFM to 318-2 DP technical data of the CPU CPU Specifications: CPU 31xC and CPU 31x Manual Description of the individual technological functions: CPU 31xC: Technological Functions...
  • Page 14: Additional Documentation

    Figure 1-2 Additional Documentation )XUWKHU VXSSRUW If you still have questions about how to use the products described in this manual, then please contact your local Siemens dealer. http://www.siemens.com/automation/partner 7UDLQLQJ &HQWHU We can provide training courses to help you get started with your S7-300 PLC.
  • Page 15: Simatic Technical Support

    7HFKQLFDO 6XSSRUW Local time: 0:00 to 24:00 / 365 days a year Phone: +49 (0) 180 5050 222 Fax: +49 (0) 180 5050 223 E-mail: adsupport@siemens.com GMT: +1:00 (XURSH  $IULFD (Nuremberg) $PHULFD (Johnson City) $VLD  $XVWUDOLD (Beijing) $XWKRUL]DWLRQ...
  • Page 16 6XSSRUW RQ WKH ,QWHUQHW We offer you our complete knowledge base online on the Internet as a supplement to our documentation. http://www.siemens.com/automation/service&support There you can find: • Up-to-date product information (What's new), FAQs (Frequently Asked Questions), Downloads, Tips and Tricks.
  • Page 17: Influence Of The Ambient Conditions On The Automation System (as)

    *XLGH WR WKH 6 'RFXPHQWDWLRQ ,Q WKLV &KDSWHU you will find a guide to the documentation for the S7-300. 6HOHFWLQJ DQG FRQILJXULQJ Table 2-1 Influence of the ambient conditions on the automation system (AS) ,QIRUPDWLRQ RQ  LV DYDLODEOH LQ  What provisions do I have to make for PLC Chapter &RQILJXULQJ 0RXQWLQJ GLPHQVLRQV RI installation space?
  • Page 18: Communication Between Sensors/actuators And The Automation System

    *XLGH WR WKH 6 'RFXPHQWDWLRQ Table 2-3 Communication between sensors/actuators and the automation system ,QIRUPDWLRQ RQ  LV DYDLODEOH LQ  Which module is suitable for my sensor/actuator? for CPU: in applicable &38 'DWD Reference Manual for signal modules: 0RGXOH 'DWD Reference Manual How many sensors/actuators can I connect to the for CPU: in applicable &38 'DWD Reference module?
  • Page 19: Communication

    *XLGH WR WKH 6 'RFXPHQWDWLRQ Table 2-7 Communication ,QIRUPDWLRQ RQ  LV DYDLODEOH LQ  Which principles do I have to take into account? &RPPXQLFDWLRQ ZLWK 6,0$7,& Manual Which options and resources are available on the in applicable &38 'DWD Reference Manual CPU ? How do I optimize communication with the help of the respective manual...
  • Page 20 *XLGH WR WKH 6 'RFXPHQWDWLRQ S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x A5E00105492-03...
  • Page 21: Installing An S7 System

    ,QVWDOODWLRQ 2UGHU ,Q WKLV &KDSWHU We will show you the sequence of steps you must follow to install your SIMATIC- S7 system. We shall then go on to explain the basic rules that you should follow, and how you can modify an existing system. 3URFHGXUH IRU LQVWDOOLQJ DQ 6 V\VWHP Configuration Installation...
  • Page 22 ,QVWDOODWLRQ 2UGHU %DVLF UXOHV IRU WURXEOHIUHH RSHUDWLRQ RI 6 An S7 system can be used in many different ways, so we can only provide basic rules for the electrical and mechanical installation in this section. You must at least keep to these basic rules if you want your S7 system to operate correctly.
  • Page 23: Modules In An S7-300

    6 0RGXOHV :KLFK PRGXOHV FDQ \RX XVH WR FUHDWH DQ 6" An S7-300 consists of several modules. The following diagram illustrates a possible configuration: BUSF DC5V FRCE STOP BUSF DC5V FRCE STOP Figure 4-1 Modules in an S7-300 7KH GLDJUDP WKH IROORZLQJ PRGXOHV RI DQ 6 LOOXVWUDWHV XQGHU QXPEHU...
  • Page 24: Components Of An S7-300:

    6 0RGXOHV 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 6 0RGXOHV &RPSRQHQWV )XQFWLRQ ,OOXVWUDWLRQ This runs the user program, SIEMENS supplies 5 V to the S7-300 Accessory: backplane bus; communicates Front connectors (for CPUs with with other nodes of an MPI integrated peripherals) network via the MPI interface. Additional properties of specific CPUs: e.g., CPU 31xC...
  • Page 26 6 0RGXOHV &RPSRQHQWV )XQFWLRQ ,OOXVWUDWLRQ Communication processor (CP). This performs communication for the CPU, e.g. CP 342-5 DP Accessory: connection to PROFIBUS DP Connecting cable 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...
  • Page 27 &RQILJXULQJ 6XPPDU\ RI WKH &RQWHQW ,Q WKLV &KDSWHU we will provide you with all the information you need • Mechanical configuration of an S7-300 • Electrical configuration of an S7-300 • Considerations for networking )XUWKHU LQIRUPDWLRQ RQ QHWZRUNLQJ For information on network topics we recommend the &RPPXQLFDWLRQ ZLWK 6,0$7,&...
  • Page 28 &RQILJXULQJ %DVLF 3ULQFLSOHV RI 3ODQQLQJ ,PSRUWDQW LQIRUPDWLRQ DERXW SODQQLQJ :DUQLQJ 2SHQ HTXLSPHQW 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 °C to 40 °C • Horizontal installation: from 0 °C to 60 °C. Always install the CPU and power supply on the left or at the bottom. SIEMENS SIEMENS BUSF DC5V FRCE...
  • Page 30: Rails - Overview

    &RQILJXULQJ &RPSRQHQW 'LPHQVLRQV /HQJWK RI WKH UDLOV The following rails are available. Table 5-1 Rails - overview 5DLO OHQJWK 8VDEOH OHQJWK IRU PRGXOHV 2UGHU 1R 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 31: Shielding Contact Element

    &RQILJXULQJ 6KLHOGLQJ FRQWDFW HOHPHQW The direct contact between the shielding contact element and the rail makes it easy for you to connect all shielded cables of your S7 modules to ground. Figure 5-2 Shielding contact element 7KH GLDJUDP LOOXVWUDWHV XQGHU QXPEHU Shielding terminals Bracket Mount the bracket (Order No.
  • Page 32: Assembly

    &RQILJXULQJ 5HTXLUHG FOHDUDQFHV You must maintain the clearance shown in the figure in order to provide sufficient space to install the modules and to dissipate the heat generated by the modules. The S7-300 assembly on multiple racks shown in the figure below specifies the clearance between racks and adjacent components, cable ducts, cabinet walls etc.
  • Page 33 &RQILJXULQJ $UUDQJLQJ 0RGXOHV RQ D 6LQJOH 5DFN $UH \RX XVLQJ RQH RU PRUH UDFNV" The number of racks you need will depend on your application. 5HDVRQV IRU XVLQJ D VLQJOH UDFN • Compact, space-saving use of all your modules • Centralized use of your modules •...
  • Page 34: Arranging Modules On Multiple Racks

    &RQILJXULQJ ([DPSOH The figure below shows the arrangement of eight signal modules in an S7-300 assembly. SIEMENS BUSF DC5V FRCE STOP SM2 SM3 SM5 SM6 Figure 5-4 Rack with eight signal modules VHH DOVR Arranging Modules on Multiple Racks $UUDQJLQJ 0RGXOHV RQ 0XOWLSOH 5DFNV...
  • Page 35 &RQILJXULQJ 5XOHV $UUDQJLQJ PRGXOHV RQ PXOWLSOH UDFNV Please note the following points if you wish to arrange your modules on multiple racks: • The interface module always uses slot 3 (slot 1: power supply; slot 2: CPU, slot 3: interface module) •...
  • Page 36: Full Assembly Using Racks

    &RQILJXULQJ ([DPSOH RI D IXOO DVVHPEO\ The figure shows the arrangement of modules in an S7-300 assembly on 4 racks. SM1 SM2 SM 4 SM5 SM 4 SM5 SM 4 SM5 SM3 SM 4 SM5 Figure 5-5 Full assembly using racks 7KH GLDJUDP LOOXVWUDWHV XQGHU QXPEHU Rack 0 (central unit) Rack 1 (expansion module)
  • Page 37 The power dissipation capability of a cabinet depends on its type, ambient temperature and on the internal arrangement of devices. 5HIHUHQFH IRU SRZHU ORVV Siemens catalogs NV21 and ET1 contain more detailed information about power dissipation. S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x...
  • Page 38 &RQILJXULQJ 6SHFLILFDWLRQV IRU FDELQHW GLPHQVLRQV Note the following specifications when you determine the dimensions of a cabinet suitable for an S7-300 installation: • Space required for racks (rails) • Minimum clearance between the racks and cabinet walls • Minimum clearance between the racks •...
  • Page 39: Types Of Cabinet

    &RQILJXULQJ 2YHUYLHZ RI W\SLFDO FDELQHW W\SHV 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. Table 5-5 Types of cabinet 2SHQ FDELQHWV &ORVHG FDELQHWV...
  • Page 40 &RQILJXULQJ ([DPSOH 6HOHFWLQJ D &DELQHW ,QWURGXFWLRQ The sample below clearly shows the maximum permitted ambient air temperature at a specific power loss for different cabinet designs. $VVHPEO\ The following device configuration should be installed in a cabinet: • Central unit, 150 W •...
  • Page 41: Selection And Installation Of Cabinets

    &RQILJXULQJ Ambient temperature in °C 1000 1200 1400 Loss of heat in W Figure 5-6 Power loss dissipated &XUYH &DELQHW 7\SH Closed cabinet with heat exchanger (heat exchanger size 11/6 (920 mm x 460 mm x 111 mm) Cabinet with through-ventilation by natural convection Closed cabinet with natural convection and forced ventilation by equipment fans 5HVXOW...
  • Page 42 &RQILJXULQJ (OHFWULFDO $VVHPEO\ 3URWHFWLYH 0HDVXUHV DQG *URXQGLQJ  *URXQGLQJ FRQFHSW DQG RYHUDOO VWUXFWXUH ,Q WKLV &KDSWHU This section contains information about the overall configuration of an S7-300 on a grounded incoming supply (TN-S network): • Circuit-breaking devices, short-circuit and overload protection to VDE 0100 and VDE 0113 •...
  • Page 43: General Rules And Regulations For S7-300 Operation

    &RQILJXULQJ 6SHFLILHG FRPSRQHQWV DQG SURWHFWLYH PHDVXUHV A number of components and protective measures are prescribed for plant installations. The type of components and the degree of compulsion pertaining to the protective measures will depend on the VDE specification applicable to your particular plant.
  • Page 44: Cpu With Grounded Reference Potential (as Supplied)

    &RQILJXULQJ  ,QVWDOOLQJ DQ 6 ZLWK *URXQGHG 5HIHUHQFH 3RWHQWLDO ,QWURGXFWLRQ In an S7-300 configuration with grounded reference potential occurring interference current is dissipated to the ground conductor/ to ground. A grounding slide contact is used for this except with CPU 31xC. 1RWH Your CPU already is supplied complete with a grounded reference potential, so if you wish to install an S7-300 with grounded reference potential, then you do...
  • Page 45: Creating An Ungrounded Reference Potential On A Cpu

    &RQILJXULQJ  &RQILJXULQJ DQ 6 ZLWK 8QJURXQGHG 5HIHUHQFH 3RWHQWLDO 1RW &38 [& ,QWURGXFWLRQ 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. 1RWH An S7-300 with a CPU 31xC cannot be configured ungrounded.
  • Page 46 &RQILJXULQJ 1RWH If at all possible, set up the ungrounded reference potential before mounting on the rail. If you have already installed and wired up the CPU, you may have to detach the connection to the MPI interface before you pull out the grounding slide contact.  ,VRODWHG RU 1RQ,VRODWHG 0RGXOHV"...
  • Page 47: Configuration With Isolated Modules

    &RQILJXULQJ ([DPSOH &38 [& The figure below shows a sample configuration of a CPU 31xC with isolated modules. The connection is automatically generated for the CPU 31xC (1). S7-300 CPU internal Data internal µ P Ground bus in cabinet external AC 230 V load DC 24 V load power supply power supply...
  • Page 48: Configuration With Non-isolated Modules

    &RQILJXULQJ 1RQLVRODWHG PRGXOHV When non-isolated modules are installed, the reference potentials of the control circuit (M ) and analog circuit (M ) are not electrically isolated. internal analog ([DPSOH 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.
  • Page 49: Grounding Measures

    &RQILJXULQJ  *URXQGLQJ 0HDVXUHV %RQGLQJ 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 50 &RQILJXULQJ 5XOH *URXQG WKH FDEOH VKLHOGLQJ 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 51: Connection Of The Load Voltage Reference Potential

    &RQILJXULQJ &RQQHFWLQJ WKH UHIHUHQFH SRWHQWLDO RI WKH ORDG YROWDJH 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 external for the various configuration versions. Table 5-9 Connection of the load voltage reference potential ,QVWDOODWLRQ...
  • Page 52: Overview: Grounding

    Configuring 5.8.6 Overview: Grounding CPU 31xC The figure below shows you the complete assembly of an S7-300 with CPU 31xC with a power supply from TN-S mains. Apart from powering the CPU, the PS 307 also supplies the load current for the 24 VDC modules.
  • Page 53: Grounding Concept For The S7-300 (excluding Cpu 31xc)

    &RQILJXULQJ $OO &38V H[FHSW &38 [& The figure below shows you the complete assembly of an S7-300 with TN-S mains supply (does not apply to CPU 31xC). Apart from powering the CPU, the PS 307 also supplies the load current for the 24 VDC modules.
  • Page 54: Characteristics Of Load Power Supply Units

    SRZHU VXSSO\ Modules requiring voltage Protective separation These characteristics apply supplies of ≤ 60 VDC or ≤ 25 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 55: Example: S7-300 With Load Power Supply From Ps 307

    &RQILJXULQJ ([DPSOH 6 ZLWK ORDG SRZHU VXSSO\ IURP 36  The figure below shows the overall S7-300 configuration (load power supply unit and grounding concept), with TN-S mains supply. Apart from powering the CPU, the PS 307 also supplies the load current for the 24 VDC modules.
  • Page 56 &RQILJXULQJ  3ODQQLQJ 6XEQHWV  ([WHQGLQJ DQG 1HWZRUNLQJ 6XEQHWV 2YHUYLHZ 6XEQHWV ZLWK 6,0$7,& 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 57 &RQILJXULQJ 3RLQWWRSRLQW FRPPXQLFDWLRQ 3W3 $YDLODELOLW\ &38V ZLWK 3W3 LQ WKHLU QDPH KDYH D 3W3 LQWHUIDFH DV D VHFRQG LQWHUIDFH HJ &38 & 3W3 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). ,QGXVWULDO (WKHUQHW ,PSOHPHQWDWLRQ XVLQJ FRPPXQLFDWLRQ SURFHVVRUV &3  Industrial Ethernet in an open multivendor communication system represents the...
  • Page 58: Nodes On The Subnet

    &RQILJXULQJ  %DVLF 3ULQFLSOHV RI 03, '3 DQG 3W3 6XEQHWV 03, 352),%86 '3 3W3 These subnets are the most frequently used for S7-300 CPUs, so they are discussed in detail below. &RQYHQWLRQ 'HYLFH 1RGH In the following, all networked devices are referred to as nodes. 6HJPHQW A segment is a bus link between two terminating resistors.
  • Page 59: Mpi/profibus Dp Addresses

    &RQILJXULQJ 03,352),%86 '3 DGGUHVVHV To ensure that all nodes can intercommunicate, you must assign them an address: • In the MPI network: an “MPI address“ • In the PROFIBUS DP network: a “PROFIBUS DP address“ On the PG you can specify individual MPI/PROFIBUS addresses for each one of the nodes (on some of the PROFIBUS DP slaves this is also possible per selector switch).
  • Page 60: Mpi Addresses Of Cps/fms In An S7-300

    &RQILJXULQJ 'LIIHUHQFHV LQ WKH FDVH RI 03, DGGUHVVHV RI &3V)0V LQ DQ 6 Table 5-15 MPI addresses of CPs/FMs in an S7-300 2SWLRQV ([DPSOH Example: BUSF DC5V FRCE An S7-300 CPU and 2 CPs in one unit. STOP You have two options for assigning MPI addresses of CPs/FMs installed in one unit: )LUVW RSWLRQ The CPU adopts the CP...
  • Page 61: Interfaces

    &RQILJXULQJ 352),%86 '3 (OHFWULFDO FRQGXFWRU RU ILEHU RSWLF FDEOH" Use fiber optic cables 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. (TXLSRWHQWLDO ERQGLQJ For information on what to take into account relating to equipotential bonding when you configure your network, refer to the corresponding chapter in the appendix.
  • Page 62: Possible Interface Operating Modes For Cpu 317-2 Dp

    &RQILJXULQJ 352),%86 '3 LQWHUIDFH $YDLODELOLW\ &38 W\SHV ZLWK WKH '3 LQ WKHLU QDPH The PROFIBUS-DP interface is mainly used to connect distributed I/O. 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 63: The Following Devices May Be Connected

    &RQILJXULQJ :KLFK GHYLFHV FDQ , FRQQHFW WR ZKLFK LQWHUIDFH" Table 5-17 The following devices may be connected 352),%86'3 • • • PG/PC PG/PC Devices equipped with a serial port, e.g. barcode • • OP/TP OP/TP readers, printers, etc. • • S7-300/400 with MPI DP slaves interface...
  • Page 64: Available Bus Cables

    &RQILJXULQJ  1HWZRUN &RPSRQHQWV 352),%86 EXV FDEOH For PROFIBUS DP or MPI networking we offer you the following bus cables for diverse fields of application: Table 5-18 Available bus cables %XV FDEOH 2UGHU 1R PROFIBUS cable 6XV1 830-0AH10 PROFIBUS cable, halogen-free 6XV1 830-0CH10 PROFIBUS underground cable 6XV1 830-3AH10...
  • Page 65: Marginal Conditions For Wiring Interior Bus Cables

    &RQILJXULQJ :LULQJ EXV FDEOHV When wiring PROFIBUS cables, you must not • twist, • stretch • or compress them. When wiring indoor bus cables, also maintain the following marginal conditions = outer cable diameter): Table 5-20 Marginal conditions for wiring interior bus cables &KDUDFWHULVWLFV &RQGLWLRQ Bending radius (one-off)
  • Page 66: Rs 485 Repeater

    &RQILJXULQJ 56 UHSHDWHU Table 5-22 RS 485 repeater 7\SH 2UGHU 1R RS485 repeater 6ES7 972-0AA00-0XA0 3XUSRVH An RS485 repeater amplifies data signals on bus lines and interconnects bus segments. You require this RS485 Repeater in the following situations: • for operation with more than 32 network nodes •...
  • Page 67: Cable Length

    &RQILJXULQJ 6WXE FDEOHV If bus nodes are connected to a bus segment via stub cables (e.g. PG via a normal PG cable), then you must consider the maximum possible length of the stub cable. You can use a PROFIBUS bus cable with bus connector as the stub cable for up to 3 Mbps.
  • Page 68: Stub Cable Lengths Per Segment

    &RQILJXULQJ /RQJHU FDEOH OHQJWKV If you want to implement cable lengths above those permitted in a segment, you must use RS485 repeaters. Information on this topic can be found in the RS485 repeater product information. /HQJWK RI WKH VWXE FDEOHV If bus nodes are connected to a bus segment via stub cables (e.g.
  • Page 69: Example Of An Mpi Subnet

    &RQILJXULQJ  6DPSOH 1HWZRUNV ([DPSOH ,QVWDOOLQJ DQ 03, VXEQHW The figure below shows you the block diagram of an MPI subnet. S7-300 S7-300 S7-300 S7-300 BUSF BUSF DC5V DC5V FRCE FRCE STOP STOP OP 27 MPI addr. 3 MPI addr. 4 MPI addr.
  • Page 70: Example: Maximum Distances In The Mpi Subnet

    &RQILJXULQJ ([DPSOH 0D[LPXP GLVWDQFHV LQ WKH 03, VXEQHW 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 RS 485- Repeater OP 27 MPI addr.
  • Page 71: Example Of A Profibus Subnet

    &RQILJXULQJ ([DPSOH ,QVWDOOLQJ D 352),%86 VXEQHW The figure below shows you the block diagram of a PROFIBUS subnet. S7-300 S7-300 31x-2 DP PS ET 200M PS ET 200M PS ET 200 M PS ET 200M DP-CPU S5-95U MASTER MPI addr. 3 PROFIBUS PROFIBUS PROFIBUS...
  • Page 72: Example: Cpu 314c-2 Dp As Mpi And Profibus Nodes

    &RQILJXULQJ ([DPSOH &38 & '3 DV 03, DQG 352),%86 QRGH 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. S7-300 S5-95U PS CPU DP addr.
  • Page 73: Example Of Pg Access Across Network Boundaries (routing)

    &RQILJXULQJ ([DPSOH 3* DFFHVV DFURVV QHWZRUN ERXQGDULHV URXWLQJ With a programming device you can access all modules across network boundaries. Requirements • You are using STEP 7 Version 5.0 or higher. Note: for STEP 7 requirements on utilized CPUs, refer to technical specifications.
  • Page 74 &RQILJXULQJ ,QIRUPDWLRQ RQ URXWLQJ FDQ EH IRXQG LQ WKH  • &38 'DWD 5HIHUHQFH 0DQXDO for your CPU • In the &RPPXQLFDWLRQ ZLWK 6,0$7,& manual. ([DPSOH 7HUPLQDWLQJ UHVLVWRU LQ WKH 03, VXEQHW The figure below shows you an example of an MPI subnet and where to install the terminating resistor.
  • Page 75 &RQILJXULQJ :DUQLQJ Disturbance of data traffic might occur on the bus. A bus segment must always be terminated at both ends with the terminating resistor. This, for example, is not the case if the last slave with bus connector is off power.
  • Page 76 &RQILJXULQJ S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x 5-50 A5E00105492-03...
  • Page 77 ,QVWDOODWLRQ ,QVWDOOLQJ DQ 6 ,Q WKLV &KDSWHU we shall explain the steps required for the mechanical assembly of an S7-300. 1RWH Note the installation guidelines and notes on safety in this manual when mounting, commissioning and operating S7-300 systems. 2SHQ FRPSRQHQWV S7-300 modules are "Open Components"...
  • Page 78: Module Accessories

    Firmware Version (all CPUs) for labeling of integrated inputs and outputs (CPU 31xC only) Tip: Templates for labeling strips are available on the Internet at http://www.ad.siemens.de/cs info under article ID 11978022. Signal module (SM) 1 bus connector For electrical interconnection of modules...
  • Page 79: Installation Tools And Materials

    ,QVWDOODWLRQ 7RROV DQG PDWHULDO UHTXLUHG For your S7-300 installation you require the tools and materials listed in the table below. Table 6-2 Installation tools and materials <RX UHTXLUH  IRU  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...
  • Page 80: Holes For Mounting The 2 M Rail

    ,QVWDOODWLRQ 3UHSDULQJ WKH  P UDLO IRU LQVWDOODWLRQ 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 81: Mounting Holes For Rails

    ,QVWDOODWLRQ 'LPHQVLRQ RI WKH PRXQWLQJ KROHV The mounting hole dimensions for the rail are shown in the table below. Table 6-3 Mounting holes for rails ³6WDQGDUG´ UDLO  P UDLO 32.5 mm 32,5 mm 32.5 mm 57.2 mm 57,2 mm 57.2 mm 500 mm 500 mm...
  • Page 82: 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 Automation System, Hardware and Installation: CPU 31xC and CPU 31x...
  • Page 83 ,QVWDOODWLRQ ,QVWDOOLQJ 0RGXOHV RQ WKH 5DLO 5HTXLUHPHQW IRU LQVWDOOLQJ WKH PRGXOH • Configuration of the automation system is complete. • The rail is installed. 2UGHU RI WKH PRGXOHV Snap the modules onto the rail, starting at the left and in the following order: 1.
  • Page 84 ,QVWDOODWLRQ ,QVWDOODWLRQ VWHSV 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. C P U • Always start at the CPU when you plug in the bus connectors.
  • Page 85: Slot Numbers For S7 Modules

    ,QVWDOODWLRQ /DEHO WKH PRGXOHV $VVLJQLQJ VORW QXPEHUV After installation, you should assign a slot number to each module. This makes it easier to assign the modules in the configuration table in 67(3 . The table below shows the slot number assignment. Table 6-4 Slot numbers for S7 modules 6ORW QXPEHU...
  • Page 86: Inserting Slot Numbers In Modules

    ,QVWDOODWLRQ ,QVHUWLQJ VORW QXPEHUV 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 87: Wiring

    :LULQJ :LULQJ ,Q WKLV &KDSWHU we shall explain the procedures for wiring an S7-300. $FFHVVRULHV UHTXLUHG To wire the S7-300, you require the accessories listed in the table below. Table 7-1 Wiring accessories $FFHVVRULHV 'HVFULSWLRQ Front connector for the connection of system sensors/actuators to the S7-300 Labeling strips for labeling the module I/O...
  • Page 88: Conditions For Connecting The Ps And Cpu

    :LULQJ 7RROV DQG PDWHULDO UHTXLUHG To wire the S7-300, you require the tools and materials listed in the table below. :LULQJ WRROV DQG PDWHULDOV <RX UHTXLUH  IRU  connecting the protective conductor to the Wrench (size 10) rail Protective conductor cable (cross- section ≥...
  • Page 89: Wiring Conditions For Front Connectors

    :LULQJ %ULHI RYHUYLHZ RI IURQW FRQQHFWRUV Table 7-3 Wiring conditions for front connectors &RQQHFWDEOH FDEOHV )URQW FRQQHFWRU 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 90: Connecting The Protective Conductor To The Rail

    :LULQJ &RQQHFWLQJ WKH 3URWHFWLYH &RQGXFWRU WR WKH 5DLO 5HTXLUHPHQW The rail is fixed to the mounting surface. &RQQHFWLQJ WKH SURWHFWLYH FRQGXFWRU 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 91: Setting The Mains Voltage Selector Switch For The Ps 307

    :LULQJ $GMXVWLQJ WKH 3RZHU 6XSSO\ 0RGXOH WR WKH 0DLQV 9ROWDJH ,QWURGXFWLRQ You can operate the S7-300 power supply on 120 VAC or on 230 VAC. Factory setting for PS 307 is always 230 VAC. 6HWWLQJ WKH PDLQV YROWDJH VHOHFWRU VZLWFK Check to see whether the selector switch is set to the correct mains voltage.
  • Page 92 :LULQJ :LULQJ WKH 3RZHU 6XSSO\ 0RGXOH DQG WKH &38 5HTXLUHPHQW The modules are mounted on the rail. 36 DQG &38 ZLULQJ 1RWH The PS 307 power supply module is equipped with two additional DC 24 V connections (L+ and M) for the supply of I/O modules. 1RWH The power supply connection of your CPU can be inserted and removed.
  • Page 93: Wiring The Power Supply Module And The Cpu

    :LULQJ 1. Open the front panel to the PS 307 power supply module and CPU. 2. Open the strain relief on the PS 307. 3. Strip the power cable to a length of 11 mm and connect it to L1, N and to the ground conductor terminal of the PS 307.
  • Page 94: Assignment Of Front Connectors To Modules

    :LULQJ 1RWH The PS 307 power supply module is equipped with two additional DC 24 V connections (L+ and M) for the supply of I/O modules. :LULQJ )URQW &RQQHFWRUV ,QWURGXFWLRQ The front connector is used to connect the sensors and actuators of your system to the S7-300 PLC.
  • Page 95 :LULQJ :DUQLQJ You can damage the spring-based opening mechanism of the front connector if the screwdriver slips sideways or if you insert the wrong size of screwdriver. Always slide a suitable screwdriver vertically into the desired opening until it reaches the stop.
  • Page 96: Move The Front Connector Into Wiring Position

    :LULQJ 3UHSDULQJ WKH IURQW FRQQHFWRU DQG WKH FDEOHV :DUQLQJ You may 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 97: Wiring The Front Connector

    :LULQJ :LULQJ WKH IURQW FRQQHFWRU Table 7-6 Wiring the front connector 6WHS SLQ IURQW FRQQHFWRU SLQ IURQW FRQQHFWRU Thread the accompanying strain relief for the cable line into the front connector. Do you want to exit the cables at the bottom of the module? ,I \HV Starting at terminal 20, work your way down Starting at terminal 40 or 20, wire the connector,...
  • Page 98 :LULQJ ,QVHUWLQJ )URQW &RQQHFWRUV LQWR 0RGXOHV 5HTXLUHPHQW The front connectors are completely wired. ,QVHUWLQJ WKH IURQW FRQQHFWRU ,QVHUWLQ ZLWK SLQ IURQW FRQQHFWRU ZLWK SLQ IURQW FRQQHFWRU J WKH IURQW FRQQHFW RU 6WHS Push in the unlocking mechanism on top Tighten the mounting screw in the of the module.
  • Page 99: Slide The Labeled Strips Into The Front Panel

    C P U Figure 7-5 Slide the labeled strips into the front panel 7LS Templates for labeling strips are available on the Internet at http://www.ad.siemens.de/csinfo under article ID 11978022. S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x 7-13 A5E00105492-03...
  • Page 100: Assigning The Shielding Diameter To Shielding Terminals

    :LULQJ &RQQHFWLQJ 6KLHOGHG &DEOHV WR WKH 6KLHOGLQJ &RQWDFW (OHPHQW $SSOLFDWLRQ 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. 'HVLJQ RI WKH VKLHOGLQJ FRQWDFW HOHPHQW The shielding contact element consists of: •...
  • Page 101: Shielding Contact Element Underneath Two Signal Modules

    :LULQJ The two rows of the shielding contact element allow you install a maximum of 4 shielding terminals. C P U Figure 7-6 Shielding contact element underneath two signal modules 7KH GLDJUDP LOOXVWUDWHV XQGHU QXPEHU Bracket of shielding contact element Edge of bracket where the shielding terminal(s) must be placed.
  • Page 102: Connecting 2-wire Cables To The Shielding Contact Element

    :LULQJ If you need more than four shielding terminals, start wiring at the rear row of the shielding contact element. C P U Figure 7-7 Connecting 2-wire cables to the shielding contact element 7KH GLDJUDP LOOXVWUDWHV XQGHU QXPEHU Magnified view of shielding terminal Wiring of shielding terminal 7LS For your connection to the front connector, leave a sufficient cable length behind...
  • Page 103 :LULQJ :LULQJ WKH %XV &RQQHFWRU ,QWURGXFWLRQ 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 &RQILJXULQJ &RQILJXULQJ D 6XEQHW. Information on how to wire the bus connector can be found in the article below. :LULQJ WKH EXV FDEOH WR WKH EXV FRQQHFWRU %XV FRQQHFWRU ZLWK VFUHZ WHUPLQDOV 1.
  • Page 104: Bus Connector: Enabled And Disabled Terminating Resistor

    :LULQJ ,QVHUWLQJ WKH EXV FRQQHFWRU LQWR WKH PRGXOH 1. Insert the wired bus connector into the module. 2. Screw-tighten the bus connector on the module. 3. If the bus connector is at the start or end of a segment, you have to enable the terminating resistor (Switch position "ON"...
  • Page 105: Addressing

    $GGUHVVLQJ $GGUHVVLQJ ,Q WKLV &KDSWHU shows you the options for addressing specific module channels. 6ORWEDVHG DGGUHVVLQJ Slot-based addressing is the default setting, that is, 67(3  assigns each slot number a defined module start address. 8VHUGHILQHG DGGUHVVLQJ With user-defined addressing, you can assign any module address from the address area managed by the CPU.
  • Page 106: S7-300 Slots And The Associated Module Start Addresses

    $GGUHVVLQJ Not with CPU 31xC SM SM SM SM SM SM Rack 3 (EG) Slot number BG initial address digital BG initial address analog Rack 2 SM SM SM SM SM SM (EG) Slot number BG initial address digital BG initial address analog Rack 1 SM SM SM SM...
  • Page 107 $GGUHVVLQJ 8VHU'HILQHG $GGUHVVLQJ RI 0RGXOHV 8VHUGHILQHG DGGUHVVLQJ User-defined addressing means that you can assign an address of your choice to any module (SM/FM/CP). The addresses are assigned in 67(3 . Here, you specify the module start address that forms the basis for all other addresses of the module.
  • Page 108: Addresses Of The I/o Of Digital Modules

    $GGUHVVLQJ The byte address depends on the module start address. The bit address is the number printed on the module. Insert the first digital module into slot 4 so that it has default start address 0. The start address of every subsequent digital module will be incremented by 4 per slot (see diagram under 6ORWEDVHG PRGXOH DGGUHVVLQJ  The figure below shows you how the addresses of the individual channels of a digital module are obtained.
  • Page 109: I/o Addresses Of A Digital Module In Slot 4

    $GGUHVVLQJ $Q H[DPSOH IRU GLJLWDO PRGXOHV The example in the figure below shows which default addresses are obtained if a digital module is inserted in slot 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.
  • Page 110: 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 module) Inputs SIEMENS BUSF DC5V Channel 0: address 256 FRCE Channel 1: address 258...
  • Page 111: Integrated Inputs And Outputs On The Cpu 313c

    752 to 755 &38 & 3W3 DQG &38 & '3 The integrated inputs and outputs of these CPUs have the following addresses: Table 8-3 Integrated inputs and outputs on the CPU 313C-2 PtP/DP ,QSXWV2XWSXWV 'HIDXOW DGGUHVVHV 5HPDUNV 16 digital inputs 124.0 to 125.7...
  • Page 112: Consistent Data

    $GGUHVVLQJ &38 & 3W3 DQG &38 & '3 The integrated inputs and outputs of these CPUs have the following addresses: Table 8-4 Integrated inputs and outputs on the CPU 314C-2 PtP/DP ,QSXWV2XWSXWV 'HIDXOW DGGUHVVHV 5HPDUNV 24 digital inputs 124.0 to 126.7 All digital inputs can be programmed as interrupt input.
  • Page 113 &RPPLVVLRQLQJ ,Q WKLV &KDSWHU ,Q WKLV &KDSWHU There are notes on commissioning which you should take into account in order to avoid personal injury or damage to machines. 1RWH Since your commissioning phase is determined primarily by your application, we can only offer you general information, without claiming completeness of this topic.
  • Page 114: Recommended Commissioning Procedure - Part I: Hardware

    &RPPLVVLRQLQJ 5HFRPPHQGHG SURFHGXUH  3DUW , +DUGZDUH 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 115: Recommended Commissioning Procedure - Part Ii: Software

    &RPPLVVLRQLQJ 5HFRPPHQGHG SURFHGXUH  3DUW ,, 6RIWZDUH Table 9-2 Recommended commissioning procedure - part II: software 7DVNV 5HPDUNV ,QIRUPDWLRQ FDQ EH IRXQG LQ  • Switch on the PG in the 67(3  and start SIMATIC Programming Manual Manager • Download the configuration and the program to the CPU...
  • Page 116: Configuring

    &RPPLVVLRQLQJ &RPPLVVLRQLQJ &KHFNOLVW ,QWURGXFWLRQ 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 117 &RPPLVVLRQLQJ 0DLQV YROWDJH 3RLQWV WR EH H[DPLQHG 6 +DUGZDUH DQG UHIHUHQFH ,QVWDOODWLRQ PDQXDO &KDSWHUV 6HFWLRQ  Is the correct mains voltage set for all component? Wiring Module Specifications 3RZHU VXSSO\ PRGXOH 3RLQWV WR EH H[DPLQHG 6 +DUGZDUH DQG UHIHUHQFH ,QVWDOODWLRQ PDQXDO &KDSWHUV 6HFWLRQ ...
  • Page 118: Connecting A Pg To An S7-300

    1. Connect the PG to the MPI interface of your CPU  using a preassembled PG cable. Alternatively, you can produce the connecting leads with PROFIBUS cable and bus connectors yourself (refer to Chapter :LULQJ &RQQHFWLQJ %XV &RQQHFWRUV). The figure below illustrates the connection between PG and CPU SIEMENS BUSF DC5V FRCE...
  • Page 119: Connecting A Pg To Multiple S7-300 Plcs

    &RPPLVVLRQLQJ &RQQHFWLQJ WKH 3* WR VHYHUDO QRGHV 6WDWLRQDU\ 3* 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.
  • Page 120: Connecting A Pg To A Subnet

    The bus connector of these nodes must be equipped with a PG socket. The figure below shows the interconnection of two networked S7-300 and a PG. S IE ME N S SIEMENS BUS F BUSF DC5V DC5V...
  • Page 121: Pg Connected To An Ungrounded S7-300

    &RPPLVVLRQLQJ 03, DGGUHVVHV IRU VHUYLFH 3*V If there is no stationary PG, we recommend: To connect it to an MPI subnet with "unknown" node addresses, set the following addresses on the service PG: • MPI address: 0 • Highest MPI address: 126. Using 67(3 , you then determine the highest MPI address in the MPI subnet and adapt the highest MPI address in the PG to that of the MPI subnet.
  • Page 122 &RPPLVVLRQLQJ  ,QVHUWLQJ5HSODFLQJ D 0LFUR 0HPRU\ &DUG 00& 6,0$7,& 0LFUR 0HPRU\ &DUG 00& DV PHPRU\ PRGXOH Your CPU uses a SIMATIC Micro Memory Card (MMC) as a memory module. You can set up the MMC as a load memory or a portable data medium. 1RWH An inserted MMC is imperative for CPU operation.
  • Page 123: Insert The Micro Memory Card Into The Cpu

    &RPPLVVLRQLQJ ,QVHUWLQJUHSODFLQJ WKH 0LFUR 0HPRU\ &DUG 00& 1. Switch the CPU to STOP mode. 2. Is an MMC already inserted? If yes, ensure that no write operations are running on the PG (such as loading a block). If you cannot ensure this state, disconnect all communication lines of the CPU.
  • Page 124 &RPPLVVLRQLQJ  ,QLWLDO 3RZHU 2Q 5HTXLUHPHQWV • You must have installed and wired up the S7-300. • The MMC is inserted in the CPU. • Your CPU's mode selector switch must be set to STOP. ,QLWLDO SRZHU XS IRU D &38 ZLWK PLFUR PHPRU\ FDUG 00& Switch on the PS 307 power supply module.
  • Page 125: In This Chapter

    &RPPLVVLRQLQJ  5HVHWWLQJ 0HPRU\ YLD WKH 0RGH 6HOHFWRU 6ZLWFK RI WKH &38 :KHQ GR \RX UHVHW &38 PHPRU\" 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 126: Using The Mode Selector Switch To Reset The Memory

    &RPPLVVLRQLQJ The procedure described in the table above is only required if the user wishes to reset the CPU memory without being requested by the CPU to reset the memory (STOP LED flashing slowly). If the CPU prompts you for a memory reset, you only have to turn the mode selector briefly to MRES position to initiate the memory reset operation.
  • Page 127: Operations In The Cpu During A Memory Reset

    &RPPLVVLRQLQJ :KDW KDSSHQV LQ WKH &38 GXULQJ PHPRU\ UHVHW" Table 9-5 Operations in the CPU during a memory reset (YHQW $FWLRQ LQ &38 CPU activities The CPU deletes the entire user program in the main memory. The CPU deletes the retentive data. The CPU tests its own hardware.
  • Page 128 &RPPLVVLRQLQJ  )RUPDWWLQJ WKH 0LFUR 0HPRU\ &DUG 00& <RX PXVW IRUPDW WKH 00& LQ WKH IROORZLQJ FDVHV • Module type of MMC is not a user module. • MMC has not yet been formatted. • MMC is defective. • Content of MMC is invalid. The content of the MCC was identified as invalid.
  • Page 129 &RPPLVVLRQLQJ  6WDUWLQJ 6,0$7,& 0DQDJHU ,QWURGXFWLRQ SIMATIC Manager is a GUI for online/offline editing of S7 objects (projects, user programs, blocks, hardware Stations and Tools). The SIMATIC Manager lets you • manage projects and libraries, • call STEP 7 Tools, •...
  • Page 130 &RPPLVVLRQLQJ  0RQLWRULQJ DQG FRQWUROOLQJ ,2V 7KH WRRO 0RQLWRULQJ DQG &RQWUROOLQJ D 9DULDEOH The STEP 7 tool "Monitoring and Controlling a Variable" lets you • monitor program variables in any format, • edit the status or data of variables in the CPU (controlling). &UHDWH D YDULDEOH WDEOH You have two options for creating a variable table (VAT): •...
  • Page 131 &RPPLVVLRQLQJ 0RQLWRULQJ YDULDEOHV You have two options for monitoring variables: • updating the status values once via menu item 9DULDEOH ! 8SGDWH VWDWXV YDOXHV • continuous update of status values via menu item 9DULDEOH ! 0RQLWRU &RQWUROOLQJ YDULDEOHV To control variables, proceed as follows: 1.
  • Page 132 &RPPLVVLRQLQJ 7ULJJHU FRQGLWLRQ • The "Trigger condition for monitoring" determines whether to update values once when the trigger point is reached or continuously every time the trigger point is reached. • The "Trigger condition for controlling" determines whether to assign control values once or permanently to the variable to be controlled.
  • Page 133 &RPPLVVLRQLQJ (VWDEOLVKLQJ D FRQQHFWLRQ WR WKH &38 The variables of a VAT represent variable quantities of a user program. In order to monitor or control variables it is required to establish a connection to the relevant CPU. Every variable tables can be linked to another CPU. In menu item 3/&...
  • Page 134: Software Requirements

    &RPPLVVLRQLQJ 6. Control the PO via menu item 9DULDEOH ! (QDEOH FRQWURO YDOXHV . "Enable PO“ mode remains active until switched off again via 9DULDEOH ! (QDEOH 32 . "Enable PO" is also terminated when the connection to the PG goes down. 7.
  • Page 135: Dp Address Areas Of The Cpus

    • Diagnostic address of the module (address for slot 2) At this address all module (e.g. CPU 313C-2 DP as I-Slave) events are reported in the master (OB82). With a CPU as DP-Slave, for example, diagnostic interrupts for operating mode transitions are reported at this address.
  • Page 136 &RPPLVVLRQLQJ Is the DP CPU a DP slave? If so, you will find that DP slave in the PROFIBUS-DP catalog as DOUHDG\ FRQILJXUHG VWDWLRQ. In the DP master, assign a slave diagnostic address to this DP slave CPU. You must interconnect the DP master with the DP slave CPU and specify the address areas for data exchange with the DP slave CPU.
  • Page 137: Commissioning The Cpu As Dp Master

    &RPPLVVLRQLQJ 5HFRJQL]LQJ WKH RSHUDWLQJ VWDWH RI '3 VODYHV (YHQW UHFRJQLWLRQ The table below shows how the DP CPU operating as a DP master recognizes operating mode transitions of a CPU operating as a DP slave or data exchange interruptions. Table 9-8 Event recognition by CPUs 31x-2 DP/31xC-2 DP as the DP master (YHQW :KDW KDSSHQV LQ WKH '3 PDVWHU"...
  • Page 138 &RPPLVVLRQLQJ 6WDUWXS RI WKH '3 PDVWHU V\VWHP &38 [ '3  [& '3 LV D '3 PDVWHU Customize the start-up monitoring time for DP slaves in parameter 0RQLWRULQJ WLPH IRU SDUDPHWHU WUDQVIHU WR PRGXOHV. That is, the DP slaves must start up within the set time and be configured by the CPU (as DP master).
  • Page 139 CPU. 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. &RPPLVVLRQLQJ Commission the DP CPU as a DP slave in the PROFIBUS subnet as follows: 1.
  • Page 140: Commissioning The Cpu As Dp Slave

    &RPPLVVLRQLQJ 5HFRJQL]LQJ WKH 2SHUDWLQJ 6WDWH RI WKH '3 PDVWHU (YHQW 5HFRJQLWLRQ The table below shows how the DP CPU operating as a DP slave recognizes operating state transitions or data exchange interruptions. Table 9-9 Event recognition for CPUs 31x-2 DP/31xC-2 DP as the DP slave (YHQW :KDW KDSSHQV LQ WKH '3 VODYH"...
  • Page 141: Intermediate Memory In A Dp Cpu Operating As A Dp Slave

    &RPPLVVLRQLQJ 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-7 Intermediate memory in a DP CPU operating as a DP slave $GGUHVV DUHDV LQ LQWHUPHGLDWH PHPRU\...
  • Page 142 &RPPLVVLRQLQJ 6DPSOH SURJUDP 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. ,Q WKH '3 VODYH &38 ,Q WKH '3 PDVWHU &38 //Data pre- processing in DP slave...
  • Page 143 &RPPLVVLRQLQJ :RUNLQJ ZLWK LQWHUPHGLDWH PHPRU\ Note the following rules when working with intermediate memory: • Assignment of address areas: Input data of DP slaves are DOZD\V output data of the DP master – Output data of DP slaves are DOZD\V input data of the DP master –...
  • Page 144: Direct Data Exchange

    &RPPLVVLRQLQJ  'LUHFW 'DWD ([FKDQJH 5HTXLUHPHQW In 67(3  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 a sending or receiving station. 'HILQLWLRQ "Direct data exchange"...
  • Page 145: Direct Data Exchange With Cpus 31x-2 Dp/31xc-2 Dp

    &RPPLVVLRQLQJ ([DPSOH 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 146 &RPPLVVLRQLQJ S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x 9-34 A5E00105492-03...
  • Page 147 0DLQWHQDQFH  ,Q WKLV &KDSWHU 0DLQWHQDQFH RSHUDWLQJ V\VWHP EDFNXSXSGDWH UHSODFHPHQW RI PRGXOHV DQG IXVHV S7-300 is a maintenance-free automation system. Thus, by maintenance we mean • Back-up of operating system on a Micro Memory Card (MMC) • Update of operating system by MMC •...
  • Page 148: Back-up Of Operating System On Mmc

    0DLQWHQDQFH :KLFK &38V DOORZ PH WR EDFN XS WKH RSHUDWLQJ V\VWHP" You can back up the operating system as of the following CPU versions: &38 2UGHU 1R )LUPZDUH 5HTXLUHG 00& MMC ≥ 2 MB from 6ES7312-1AD10-0AB0 V 2.0.0 or later from 6ES7314-1AF10-0AB0 V 2.0.0 or later MMC ≥...
  • Page 149: Updating The Operating System

    (update). :KHUH GR , JHW WKH ODWHVW YHUVLRQ RI WKH RSHUDWLQJ V\VWHP" 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 150: S7-300 Modules

    0DLQWHQDQFH  0RGXOH UHSODFHPHQW 5XOHV IRU ,QVWDOODWLRQ DQG :LULQJ The table below shows you points to follow when wiring, installing or removing of S7-300 modules. 5XOHV JRYHUQLQJ  3RZHU VXSSO\  &38  60)0&3 Blade width of screwdriver 3.5 mm (cylindrical model) Tightening torque •...
  • Page 151: Unlocking The Front Connector And Removing The Module

    0DLQWHQDQFH 5HPRYLQJ D PRGXOH 60)0&3 Remove the module as follows: 6WHS SLQ IURQW FRQQHFWRU SLQ IURQW FRQQHFWRU 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 152: Removing The Front Connector Coding Pin

    0DLQWHQDQFH 5HPRYLQJ WKH IURQW FRQQHFWRU FRGLQJ SLQ IURP WKH PRGXOH Before you start installing the new module, remove the upper part of the front connector coding pin from this module. Reason: This part is already inserted in the wired front connector. Figure 10-2 Removing the front connector coding pin S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x 10-6...
  • Page 153: Installing A New Module

    0DLQWHQDQFH ,QVWDOOLQJ D QHZ PRGXOH Install the new module as follows: 1. Install new module of same type. 2. Pivot the module down into place. 3. Screw-tighten the module. 4. Slide the labeling strips into the module. C P U Figure 10-3 Installing a new module 7KH ILJXUH LOOXVWUDWHV WKH GHVFULEHG VWHSV Lower module onto rail.
  • Page 154: Module Replacement

    0DLQWHQDQFH 3XWWLQJ D 1HZ 0RGXOH LQWR 6HUYLFH Proceed as follows to put the new module into service: 1. Open the front panel. 2. Reinstall the front connector. 3. Close the front panel. 4. Switch the load voltage back on. 5. Set the CPU to RUN mode again. C P U Figure 10-4 Inserting the front connector 7KH ILJXUH LOOXVWUDWHV WKH GHVFULEHG VWHSV...
  • Page 155 0DLQWHQDQFH  'LJLWDO RXWSXW PRGXOH $&  9 5HSODFLQJ WKH IXVHV )XVHV IRU 'LJLWDO 2XWSXWV 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 156: Location Of Fuses In The Digital Output Module 120/230 Vac

    0DLQWHQDQFH 3RVLWLRQ RI WKH )XVHV 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.  Figure 10-5 Location of fuses in the digital output module 120/230 VAC 5HSODFLQJ IXVHV The fuses are located at the left side of the module.
  • Page 157 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ  ,Q WKLV &KDSWHU ,QWURGXFWLRQ 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. 1RWH 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 158 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 1RWH 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 159: Principle Of Forcing In S7-300 Cpus

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ With S7-300 CPUs, forcing is the same as "cyclical modify" Execute force Execute force job for inputs job for inputs User program Besy Besy transfer transfer transfer transfer Forced value overwritten by Forced value Forced value T PQW! Execute force...
  • Page 160 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ  2YHUYLHZ 'LDJQRVWLFV ,QWURGXFWLRQ System errors can occur especially in the &RPPLVVLRQLQJ 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 161 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 'LDJQRVWLF EXIIHU If an error occurs, the CPU writes the cause of error to the diagnostic buffer. In 67(3  you can read the diagnostic buffer with your PG. This location holds error information in plain text. Other modules capable of diagnostics can be equipped with their own diagnostic buffer.
  • Page 162 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ  'LDJQRVWLF RSWLRQV ZLWK 67(3  7KH +DUGZDUH GLDJQRVWLFV IXQFWLRQ Locate the cause of a module error by viewing the online information on the module. You can locate the cause of an error in the user program cycle with the help of the diagnostic buffer and of the stack content.
  • Page 163: Diagnostics With Leds

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ  'LDJQRVWLFV ZLWK /('V ,QWURGXFWLRQ 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, the number of the appropriate error OB is located there.
  • Page 164: Evaluation Of The Sf Led (software Error)

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ Table 11-3 Evaluation of the SF LED (software error) 3RVVLEOH (UURUV UHVSRQVH RI WKH &38 5HPHGLHV TOD interrupt is enabled and Calls OB85. CPU Load OB 10 (OB number is triggered. However, a does not STOP if apparent from the diagnostic matching block is not OB85 is loaded.
  • Page 165: Addressing

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 3RVVLEOH (UURUV UHVSRQVH RI WKH &38 5HPHGLHV Programming error Calls OB121. CPU Eliminate the programming error. does not STOP if The STEP 7 testing function helps • Block not loaded OB121 is loaded. you to locate the error. •...
  • Page 166: The Busf, Busf1 And Busf2 Leds

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 1RWH The shorter the selected watchdog interrupt period, the more likely it is that watchdog interrupt errors will occur. You must take into account the operating system times of the CPU in question, the user program runtime and extension of the cycle time by active PG functions, for example.
  • Page 167: The Busf Led Lights Up

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ Table 11-6 The BUSF LED lights up. 3RVVLEOH (UURUV 5HVSRQVH RI WKH &38 5HPHGLHV • • Bus fault (hardware fault). Calls OB86 (when CPU is in RUN Check the bus cable for short mode). CPU switches to STOP if or interruption.
  • Page 168: Diagnostics With Cpu 31x-2

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ  'LDJQRVWLFV RI '3 &38V  'LDJQRVWLFV RI '3 &38V 2SHUDWLQJ DV '3 0DVWHU 'LDJQRVWLFV HYDOXDWLRQ LQ WKH XVHU SURJUDP The figure below illustrates the procedure for evaluating the diagnostics in the user program. Diagnostic event OB82 is called Evaluation with...
  • Page 169: Diagnostic Addresses For Dp Masters And Dp Slaves

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 'LDJQRVWLF DGGUHVVHV With CPU 31x-2 you assign diagnostic addresses for the PROFIBUS DP. Make DP diagnostic addresses are assigned to the DP master and to the DP slave sure during configuration. CPU as DP slave CPU as DP master PROFIBUS DP During configuration you must specify three diagnostic addresses:...
  • Page 170: Event Recognition By Cpus 31x-2 As The Dp Master

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ (YHQW UHFRJQLWLRQ The table below shows how CPU 31x-2 operating as DP master recognizes operating mode transitions of a CPU operating as DP slave or data exchange interruptions. Table 11-8 Event recognition by CPUs 31x-2 as the DP master (YHQW :KDW KDSSHQV LQ WKH '3 VODYH"...
  • Page 171: Diagnostic Address For The Receiving Station With Direct Data Exchange

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ  5HDGLQJ VODYH GLDJQRVWLF GDWD 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 67(3  . 'LDJQRVWLF DGGUHVVHV ZLWK GLUHFW GDWD H[FKDQJH You assign a diagnostic address to the receiving station when directly exchanging data:...
  • Page 172: Reading Slave Diagnostic Data

    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 'LVWULEXWHG ,2 308-C operating as DP...
  • Page 173 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ ([DPSOH RI UHDGLQJ VODYH GLDJQRVWLF GDWD XVLQJ )% ,0 & Here you will find an example of how to use FB192 to read out DP slave diagnostic data in the 192 67(3  user program. $VVXPSWLRQV UHJDUGLQJ WKH 67(3  XVHU SURJUDP For this 67(3  user program it is assumed that: •...
  • Page 174 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ $VVXPSWLRQV UHJDUGLQJ WKH 67(3  XVHU SURJUDP For this 67(3  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 175: Diagnostic Addresses For Dp Masters And Dp Slaves

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 'LDJQRVWLF DGGUHVVHV With CPU 31x-2 you assign diagnostic addresses for the PROFIBUS DP. Make DP diagnostic addresses are assigned to the DP master and to the DP slave sure during configuration. CPU as DP slave CPU as DP master PROFIBUS DP During configuration you must specify three diagnostic addresses:...
  • Page 176: Event Recognition By Cpus 31x-2 Acting As The Dp Slave

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ (YHQW UHFRJQLWLRQ The table below shows how CPU 31x-2 operating as DP slave recognized operating state transitions or data exchange interruptions. Table 11-11 Event recognition by CPUs 31x-2 acting as the DP slave (YHQW :KDW KDSSHQV LQ WKH '3 VODYH"...
  • Page 177: Interrupts On The Dp Master

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ  ,QWHUUXSWV RQ WKH '3 0DVWHU ,QWHUUXSWV ZLWK 6 '3 PDVWHU 3URFHVV LQWHUUXSWV E\ ,6ODYH ZLWK 6)&  If the CPU 31x-2 is used as the DP slave, you can trigger a process interrupt on the DP master from the user program.
  • Page 178: Structure Of Slave Diagnostic Data

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ  6WUXFWXUH RI WKH 6ODYH 'LDJQRVWLF 'DWD ZKHQ WKH &38 LV XVHG DV DQ ,QWHOOLJHQW 6ODYH 6WUXFWXUH RI WKH GLDJQRVWLFV PHVVDJH IUDPH The figure below shows the structure of the diagnostics message frame for slave diagnostics.
  • Page 179: Structure Of Station Status 1 (byte 0)

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 6WDWLRQ VWDWXV  Table 11-13 Structure of station status 1 (byte 0) 'HVFULSWLRQ 5HPHG\ •  DP slave cannot be addressed by DP master. Is the correct DP address set on the DP slave? •...
  • Page 180: Structure Of Station Status 3 (byte 2)

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 6WDWLRQ 6WDWXV  Table 11-15 Structure of station status 3 (byte 2) 'HVFULSWLRQ 0 to 6  These bits are always “0” The incoming diagnostic messages exceeds the memory capacity of the DP slave. The DP master cannot write all diagnostic messages sent by the DP slave to its diagnostic buffer.
  • Page 181: Structure Of The Id-specific Diagnostics For Cpu 31x-2

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 0RGXOH GLDJQRVWLFV Module diagnostics indicate the configured address area of intermediate memory that has received an entry. 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...
  • Page 182: Structure Of The Module Status

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 0RGXOH VWDWXV 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 183: Structure Of The Interrupt Status

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ ,QWHUUXSW VWDWXV 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 184: Bytes Y+4 To Y+7 For A Diagnostic Interrupt (operating Status Change By Intelligent Slave)

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 6WUXFWXUH RI WKH LQWHUUXSW GDWD IRU D SURFHVV LQWHUUXSW IURP E\WH \ 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 185: Bytes Y+4 To Y+7 For The Diagnostic Interrupt (sfb 75)

    7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ 6WUXFWXUH RI WKH LQWHUUXSW GDWD ZKHQ D GLDJQRVWLF LQWHUUXSW LV JHQHUDWHG E\ 6)%  RQ WKH LQWHOOLJHQW VODYH DIWHU E\WH \ 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 186 7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x 11-30 A5E00105492-03...
  • Page 187: Starting The System After Specific Events

    $SSHQGL[  $VVHPEO\  *HQHUDO 5XOHV DQG 5HJXODWLRQV IRU 6 2SHUDWLRQ ,QWURGXFWLRQ 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. (0(5*(1&<2)) GHYLFHV EMERGENCY-OFF devices to IEC 204 (corresponds to VDE 113) must remain effective in all operating modes of the plant or system.
  • Page 188: Installation

    $SSHQGL[ 0DLQV YROWDJH The following table shows you what to watch with respect to the mains voltage. Table 12-2 Mains voltage ,Q WKH FDVH RI  LV  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 189: Possible Paths Of Electromagnetic Interference

    $SSHQGL[  3URWHFWLRQ DJDLQVW (OHFWURPDJQHWLF ,QWHUIHUHQFH  %DVLF 3RLQWV IRU 6\VWHP ,QVWDOODWLRQV &RQIRUPLQJ ZLWK (0& 5HTXLUHPHQWV 'HILQLWLRQ (0& EMC (electromagnetic compatibility) describes the capability of electrical equipment to operate free of errors in a given electromagnetic environment, without being subject to external influence and without influencing external devices in any way.
  • Page 190: Coupling Mechanisms

    $SSHQGL[ &RXSOLQJ PHFKDQLVPV 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 &RXSOLQJ &DXVH 7\SLFDO LQWHUIHUHQFH VRXUFHV PHFKDQLVPV Electrical Galvanic or mechanical •...
  • Page 191 $SSHQGL[  )LYH %DVLF 5XOHV IRU (QVXULQJ (0& ,I \RX FRPSO\ ZLWK WKHVHV ILYH EDVLF UXOHV  you can ensure EMC in many cases! 5XOH  /DUJHDUHD JURXQGLQJ 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 192 $SSHQGL[ 5XOH  0RXQWLQJ WKH FDEOH VKLHOGLQJ Take care that all cable shielding is properly fastened (refer to the section on 6KLHOGLQJ RI FDEOHV). • Always use shielded data cable. Always connect both ends of the shielding to ground on a large area. •...
  • Page 193: Emc Compatible Installation Of Plc

    $SSHQGL[ VHH DOVR Grounding concept and overall structure Shielding of cables Outdoor cable routing Cable Routing inside Buildings EMC Compatible Installation of PLC  (0& &RPSDWLEOH ,QVWDOODWLRQ RI 3/& ,QWURGXFWLRQ Quite often it is the case that interference suppression measures are not taken until corruption of user signals is detected after the controller is actually in operation.
  • Page 194 $SSHQGL[ 2EVHUYH WKH IROORZLQJ IRU JURXQG FRQQHFWLRQ • In the same way as with active elements, exercise 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 195: Example Of An Emc Compatible Cabinet Installation

    $SSHQGL[  ([DPSOHV RI DQ (0& &RPSDWLEOH ,QVWDOODWLRQ ,QWURGXFWLRQ Below you can find two examples of an EMC compatible PLC installation. 6DPSOH  (0& FRPSDWLEOH FDELQHW LQVWDOODWLRQ 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 196: Key To Example 1

    $SSHQGL[ .H\ WR H[DPSOH  The numbers in the following list refer to the numbers in the figure above. Table 12-6 Key to example 1 'HVFULSWLRQ ([SODQDWLRQ 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 197: Example Of Emc Compatible Wall-mounting

    $SSHQGL[ 1RWH WKH IROORZLQJ SRLQWV RQ IUDPHZDOOPRXQWLQJ • 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 protective ground bar. •...
  • Page 198 $SSHQGL[  6KLHOGLQJ RI &DEOHV 3XUSRVH RI WKH VKLHOGLQJ A cable is shielded to attenuate the effects of magnetic, electrical and electromagnetic interference on the cable. 2SHUDWLQJ SULQFLSOH 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 199: Equipotential Bonding

    $SSHQGL[ The figure below shows some options for mounting shielded cables, using cable clamps. Figure 12-4 Mounting cable shielding  (TXLSRWHQWLDO ERQGLQJ 3RWHQWLDO GLIIHUHQFHV 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 200: Equipotential Bonding

    $SSHQGL[ (TXLSRWHQWLDO ERQGLQJ FRQGXFWRU 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 201: Routing Cables Inside Buildings

    $SSHQGL[  &DEOH 5RXWLQJ LQVLGH %XLOGLQJV ,QWURGXFWLRQ 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. +RZ WR UHDG WKH WDEOH To find out how to run two cables of different types, proceed as follows: 1.
  • Page 202 $SSHQGL[ &DEOHV IRU  DQG FDEOHV IRU  5XQ  • • 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 203: Lightning And Surge Voltage Protection

    $SSHQGL[  2XWGRRU FDEOH URXWLQJ 5XOHV IRU (0& FRPSDWLEOH FDEOH URXWLQJ 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 204: Lightning Protection Zone Concept

    This applies especially to constructional measures for the building at the planning stage. 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.  /LJKWQLQJ 3URWHFWLRQ =RQH &RQFHSW...
  • Page 205: Lightning Protection Zones Of A Building

    $SSHQGL[ (IIHFWV RI WKH /LJKWQLQJ 6WULNH Direct lightning strikes occur in lightning protection zone 0. Lightning strike generates high-energy electromagnetic fields which can be reduced or eliminated from one lightning protection zone to the next by suitable lightning protection elements/measures. 2YHUYROWDJH In lightning protection zones 1 and higher, a lightning strike might additionally cause overvoltage as a result of switching operations, coupling etc.
  • Page 206 $SSHQGL[ 3ULQFLSOH RI WKH WUDQVLWLRQ SRLQWV EHWZHHQ OLJKWQLQJ SURWHFWLRQ ]RQHV 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 207: High-voltage Protection Of Cables With Surge Voltage Protection Components

    $SSHQGL[ $GGLWLRQDO 0HDVXUHV If you cannot take measures as described above, you must install a high-voltage protection for your system between the 0 <-> 1 transition points with a lightning conductor. The table below contains the components you can use for high-voltage protection of your plant.
  • Page 208 $SSHQGL[  5XOHV IRU WKH 7UDQVLWLRQ 3RLQWV EHWZHHQ /LJKWQLQJ 3URWHFWLRQ =RQHV  !  DQG +LJKHU 5XOHV IRU WUDQVLWLRQ SRLQWV  !  DQG KLJKHU ORFDO HTXLSRWHQWLDO ERQGLQJ The following measures must be taken on all transition points 1 <-> 2 and higher: •...
  • Page 209: Surge Voltage Protection Components For Lightning Protection Zones 1 <-> 2

    $SSHQGL[ /RZYROWDJH SURWHFWLRQ HOHPHQWV IRU !  For the transition points between lightning protection zones 1 <-> 2 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-9 Surge voltage protection components for lightning protection zones 1 <->...
  • Page 210: Surge Voltage Protection Components For Lightning Protection Zones 2 <-> 3

    $SSHQGL[ /RZYROWDJH SURWHFWLRQ HOHPHQWV IRU !  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 211: Sample Circuit For Networked S7-300 Plcs

    $SSHQGL[  6DPSOH RI D 6XUJH 3URWHFWLRQ &LUFXLW IRU 1HWZRUNHG 6 3/&V 6DPSOH FLUFXLW The sample in the figure below shows you how install an effective surge protection for 2 networked S7-300 PLCs: Lightning-protection zone 0, field side Lightning-protection zone 1 Switchgear cubicle 1 Switchgear cubicle 2 Lightning-protection zone 2...
  • Page 212: Example Of A Lightning-protected Structure (key To Figure Above)

    $SSHQGL[ &RPSRQHQWV LQ SUHYLRXV ILJXUH  The table below explains consecutive numbers in the figure above: Table 12-11 Example of a lightning-protected structure (key to figure above) &RQVHF &RPSRQHQWV 'HVFULSWLRQ IURP ILJXUH DERYH lightning arrestor, depending on the mains High-voltage protection against system, e.g.
  • Page 213: Emergency-off Relay Contact In The Output Circuit

    $SSHQGL[  +RZ WR 3URWHFW 'LJLWDO 2XWSXW 0RGXOHV DJDLQVW ,QGXFWLYH 6XUJH 9ROWDJH ,QGXFWLYH VXUJH YROWDJH Overvoltage occurs when inductive devices are switched off. Examples are relay coils and contactors. ,QWHJUDWHG VXUJH DUUHVWHU S7-300 digital output modules are equipped with an integrated surge arrester. $GGLWLRQDO RYHUYROWDJH SURWHFWLRQ Inductive devices require additional surge arresters only in following cases: •...
  • Page 214: Circuit For Coils Operated With Dc Voltage

    $SSHQGL[ &LUFXLW IRU FRLOV RSHUDWHG ZLWK '& YROWDJH 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 215 $SSHQGL[  6DIHW\ RI HOHFWURQLF FRQWURO HTXLSPHQW ,QWURGXFWLRQ The notes below apply independent of the type or manufacturer of the electronic control. 5HOLDELOLW\ 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 216 $SSHQGL[ 5LVNV In all cases where the occurrence of failures can result in material damage or injury to persons, special measures must be taken to enhance the safety of the installation - and therefore also of the situation. System-specific and special regulations exist for such applications.
  • Page 217 *ORVVDU\ $FFXPXODWRU The Æ CPU uses the accumulator registers as intermediate memory for load, transfer, comparison, calculation and conversion operations. $GGUHVV An address represents the ID for a specific address or address range. Example: Input I12.1; Memory bit word MW25; Data block DB3. $QDORJ 0RGXOH Analog modules convert process values (e.g.
  • Page 218 *ORVVDU\ &KDVVLV JURXQG Chassis ground is the totality of all the interconnected passive parts of a piece of equipment on which dangerous fault-voltage cannot occur. &ORFN PHPRU\ ELWV Memory bit which can be used to generate clock pulses in the user program (1 byte per memory bit).
  • Page 219 *ORVVDU\ &3 --> Communication processor &38 Central processing unit of the S7 programmable controller with open and closed- loop control systems, memory, operating system and interface for programming device. &38 RSHUDWLQJ V\VWHP The CPU OS organizes all functions and processes of the CPU which are not associated to a specific control task.
  • Page 220 *ORVVDU\ 'LDJQRVWLF ,QWHUUXSW Modules capable of diagnostics operations report detected system errors to the Æ CPU via diagnostic interrupts. 'LDJQRVWLFV Æ System Diagnostics '3 PDVWHU A Æ master which behaves in accordance with EN 50170, Part 3 is known as a DP master.
  • Page 221 *ORVVDU\ (UURU KDQGOLQJ YLD 2% When the operating system detects a specific error (e.g. access error with 67(3 ), it calls a dedicated organization block (Error OB) that determines subsequent CPU response. (UURU UHVSRQVH 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.
  • Page 222 *ORVVDU\ )XQFWLRQ EORFN According to IEC 1131-3, a function block is a Æ code block that contains Æ static data. An FB allows parameters to be passed in the user program. Function blocks are therefore suitable for programming complex functions, e.g. closed-loop controls, mode selections, which are repeated frequently.
  • Page 223 *ORVVDU\ *URXQG WR 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. *6' ILOH GHYLFH PDVWHU ILOH The device master file (GSD file) stores all slave specific properties. The GSD file format is specified in EN 50170,Volume 2, PROFIBUS.
  • Page 224 *ORVVDU\ ,QWHUUXSW WLPHRIGD\ The time-of-day interrupt belongs to one of the priority classes in SIMATIC S7 program processing. It is generated depending on a specific date (or daily) and time-of-day (e.g. 9:50 or hourly, or every minute). A corresponding organization block is then executed.
  • Page 225 *ORVVDU\ 0HPRU\ ELWV Memory bits are part of the CPU's Æ system memory. They store intermediate results of calculations. They can be accessed in bit, byte, word or doubleword units. 0HPRU\ &DUG 0& Memory Cards are memory media for CPUs and CPs. They are implemented in the form of Æ...
  • Page 226 *ORVVDU\ 2% SULRULW\ The CPU Æ operating system distinguishes between different priority classes, e.g. cyclic program execution, program execution controlled by process interrupt. Each priority class is assigned Æ organization blocks (OB) in which the S7 user can program a response. The OBs have different standard priorities which determine the order in which they are executed or interrupted in the event that they are activated simultaneously.
  • Page 227 *ORVVDU\ 3/& Æ Programmable controller 3ULRULW\ FODVV The S7 CPU operating system provides up to 26 priority classes (or "Program execution levels"). Specific OBs are assigned to these classes. The priority classes determine which OBs interrupt other OBs. If a priority class includes several OBs, they do not interrupt each other, but are executed sequentially.
  • Page 228 *ORVVDU\ 3URJUDPPDEOH FRQWUROOHU Programmable controllers (PLCs) are electronic controllers whose function is saved as a program in the control unit. The configuration and wiring of the unit are therefore independent of the function of the control system. The PLC has a computer structure;...
  • Page 229 *ORVVDU\ 6FDQ UDWH The reduction rate determines the send/receive frequency for Æ GD packets on the basis of the CPU cycle. Æ System function block 6)& Æ System function 6HJPHQW Æ Bus Segment 6LJQDO PRGXOH Signal modules (SM) form the interface between the process and the PLC. There are digital and analog I/O modules (input/output module, digital or analog).
  • Page 230 *ORVVDU\ 6\VWHP 'LDJQRVWLFV System diagnostics refers to the detection, evaluation and signaling of errors which occur within the PLC, for example, program errors or module errors. System errors can be displayed with LED indicators or in 67(3 . 6\VWHP IXQFWLRQ A system function (SFC) is a Æ...
  • Page 231 *ORVVDU\ 7LPHRIGD\ LQWHUUXSW Æ Interrupt, Time-of-day 7RNHQ Bus access rights 7UDQVPLVVLRQ UDWH Data transfer rate (in bps) 8VHU 3URJUDP The SIMATIC system distinguishes between the Æ CPU operating system and user programs. The latter are created with Æ 67(3  programming software, using optional programming languages (LAD and STL).
  • Page 232 *ORVVDU\ S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x 13-16 A5E00105492-03...
  • Page 233: Wiring

    ,QGH[ & Accessories cabinet wiring 7-1 Selecting and dimensioning 5-11 Accessories 6-2 Cabinet Accumulator 13-1 dimensions 5-12 Actuator/sensor interface 5-31 power loss dissipated 5-14 Address 13-1 types 5-13 addresses Cable lengths analog modules 8-5 longer 5-42 Addresses maximum 5-40 Digital modules 8-3 MPI subnet 5-41 technological functions 8-6 PROFIBUS subnet 5-41...
  • Page 234 DP slave 13-4 DPV1 13-4 operating system 13-3 resetting CPU memory 9-13 wiring 7-7 Electrically isolated 13-4 CPU 313C-2 DP commissioning as a DP master 9-24 definition 12-3 commissioning as DP-Slave 9-27 EMC correct grounding 12-7 CPU 314C-2 DP EMC error-free installation 12-7...
  • Page 235 GSD file (device master file) 13-7 Load circuits ground 5-24 Load current determining 5-28 Highest MPI address 5-33 load memory 13-8 Highest PROFIBUS DP address 5-33 Load voltage connecting the reference potential of the load voltage 5-25 Inscription labels 6-2 Local data 13-8 installation Local equipotential bonding 12-22...
  • Page 236: Commissioning

    *ORVVDU\ Monitoring Point-to-Point of variables 11-1 maximum baud rate 5-32 monitoring and controlling variables maximum possible number of nodes Establishing a connection to the CPU 5-32 9-21 Point-to-point communication 5-31 Opening the VAT 9-20 Potential differences 5-24, 12-13 Saving the VAT 9-20 Power on Monitoring and controlling variables requirements 9-12...
  • Page 237 SIMATIC Manager 9-17 start 9-17 SINEC L2-DP 13-11 rail single-step mode 11-1 ground conductor 6-4 Slave diagnostics preparing 6-4 reading 11-15 Rail reading, example 11-17 connecting the protective conductor 7-4 structure 11-22 mounting hole dimensions 6-5 slot number rails assign 6-9 fixing screws 6-5 insert 6-10 versions 6-3...
  • Page 238 *ORVVDU\ Voltage selecting mains voltage 7-5 variable monitoring or control create variable table 9-18 variables Wiring modifying 11-1 accessories required 7-1 monitoring 11-1 front connector 7-11 Variables front connectors 7-3 forcing 11-2 PS and CPU 7-2, 7-6 Vendor ID 11-24 required tools and materials 7-2 Vendor-specific interrupt 13-8 rules 7-2...

Comments to this Manuals

Symbols: 0
Latest comments: