Contents Preface Guide to the S7-300 SIMATIC Documentation Installation Order S7-300 Automation System, Hardware and Installation: S7-300 Modules CPU 312IFM - 318-2 DP Configuring Installation Manual Installation Wiring Addressing Commissioning Maintenance Testing functions and Diagnostics Appendix Glossary Index This manual is part of the documentation...
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
Network Components ..................5-39 5.10.5 Cable length ....................5-42 5.10.6 Sample networks .....................5-44 ,QVWDOODWLRQ Installing an S7-300...................6-1 Installing the rail....................6-3 Installing modules on the rail................6-7 Label the modules .....................6-9 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 4
Updating the Operating System ..............10-3 10.4 Module replacement..................10-4 10.5 Replacing the back-up battery or rechargeable battery (CPUs with MC only) ..................10-9 10.6 Digital output module AC 120/230 V: Replacing the fuses ......10-11 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 5
Rules for the Transition Points between Lightning Protection Zones 1 <-> 2 and Higher ................12-21 12.3.5 Sample of a Surge Protection Circuit for Networked S7-300 PLCs ....12-24 12.3.6 1 How to Protect Digital Output Modules against Inductive Surge Voltage ..12-26 12.4...
Page 6
Transfer memory in the CPUs 31x-2 DP acting as DP slave ......9-29 9-10 Direct data exchange with CPUs 31x-2 DP ..........9-34 10-1 Unlocking the front connector and removing the module ......10-5 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 7
Replacing the back-up battery in CPU 313/314...........10-9 10-6 Location of fuses in the digital output module 120/230 VAC .....10-12 11-1 Principle of Forcing with S7-300 CPUs (all CPUs except 318-2 DP) ..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 node with direct data exchange..11-15...
Page 8
Integrate inputs and outputs on the CPU 312 IFM........8-6 Integrate inputs and outputs on the CPU 314 IFM........8-7 Recommended commissioning procedure - part I: Hardware .....9-2 Recommended commissioning procedure - part II: software ......9-3 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP viii A5E00203919-01...
Page 9
1 <-> 2 ...................12-22 12-10 Surge voltage protection components for lightning protection zones 2 <-> 3 ...................12-23 12-11 Example of a lightning-protected structure (key to figure above) ....12-25 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 10
&RQWHQWV S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 11
6ES7 314-5AE10-0AB0 1.0.0 CPU 315 6ES7 315-1AF03-0AB0 1.0.0 CPU 315-2 DP 6ES7 315-2AF03-0AB0 1.0.0 6ES7 315-2AF83-0AB0 CPU 316-2 DP 6ES7 316-2AG00-0AB0 1.0.0 CPU 318-2 DP 6ES7 318-2AJ00-0AB0 3.0.0 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 12
& WLFN PDUN The SIMATIC S7-300 product series is compliant with AS/NZS 2064 (Australia). 6WDQGDUGV The SIMATIC S7-300 product series is compliant with the requirements and criteria for IEC 61131-2. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP...
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 Data CPU 312 IFM to 318-2 DP technical data of the CPU CPU Data CPU 31xC and CPU 31x...
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. Please contact your local Training Center or the Central Training Center in Nuremberg, D-90327, Germany Phone +499 (911) 895-3200..
Fax: +1 (0) 770 740 3699 E-mail: GMT: +1:00 E-mail: isd- simatic.hotline@sea.siemens.com.sg callcenter@sea.siemens.comn GMT: +8:00 GMT: –5:00 Technical Support and Authorization personnel generally speak both German and English. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 16
• You can find your local service partner for Automation & Drives in our Partner Database. • Information relating to on-site service, repairs, spare parts and lots more is available to you in the "Service" section. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
*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 Chapter &RQILJXULQJ 0RXQWLQJ GLPHQVLRQV RI...
Which Interface modules (IM) do I need to connect PXOWLSOH UDFNV LQ WKH ,QVWDOODWLRQ 0DQXDO EMs to the CPU? Chapter &RQILJXULQJ LQ WKH ,QVWDOODWLRQ 0DQXDO What is the right power supply (PS) for my application? S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
How do I network the individual components? 0DQXDO Table 2-8 Software ,QIRUPDWLRQ RQ LV DYDLODEOH LQ Which software do I require for my S7-300 system? Chapter 7HFKQLFDO 6SHFLILFDWLRQ; applicable &38 'DWD Reference Manual Table 2-9 Supplementary features ,QIRUPDWLRQ RQ LV DYDLODEOH LQ ...
Page 20
*XLGH WR WKH 6 'RFXPHQWDWLRQ S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
3URFHGXUH IRU LQVWDOOLQJ DQ 6 V\VWHP Configuration Installation Wiring Should a subnet Network be created? Addressing Installation completed, continue with commissioning Figure 3-1 Installing an S7 system S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 22
If you want to install a signal module at a later time, consult the relevant information for the respective module. &URVVUHIHUHQFH Also note the description of your specific module in the 6,0$7,& 6 3/&V manual and the 0RGXOH 'DWD 5HIHUHQFH 0DQXDO. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
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: Figure 4-1 Example configuration: S7-300 components 7KH GLDJUDP WKH IROORZLQJ PRGXOHV RI DQ 6 LOOXVWUDWHV XQGHU QXPEHU...
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
PROFIBUS subnet Programming device (PG) or PC You will need a PG to configure, with the STEP 7 software set parameters, program and test package your S7-300 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 26
6 0RGXOHV S7-300 Automation System, Installing and Commissioning: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 27
SIMATIC professionals as well as the basics for newcomers. &URVVUHIHUHQFH Information on ambient conditions is in the Appendix: see $PELHQW &RQGLWLRQV Information on special protective measures is in the Appendix: see (OHFWULFDO 3URWHFWLYH 0HDVXUHV S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 28
0RGXOH UDFNV The rack for your S7-300 is a rail. You can use this rail to mount all modules of your S7-300 system. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP...
&RQILJXULQJ +RUL]RQWDO DQG YHUWLFDO LQVWDOODWLRQ You can mount an S7-300 either vertically or horizontally. The following ambient air temperatures are permitted: • 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.
• Maximum mounting depth: 130 mm • Maximum mounting depth with open hinged front panel (CPU): 180 mm Dimensions of other modules such as CPs, FMs etc. are found in the relevant manuals. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Cable shielding diameter 2 mm to 6 mm 6ES7 390–5AB00–0AA0 Cable shielding diameter 3 mm to 8 mm 6ES7 390-5BA00-0AA0 Cable shielding diameter 4 mm to 13 mm 6ES7 390-5CA00-0AA0 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Clearance between cable channel and bottom edge of shielding contact element must be 40 mm &URVVUHIHUHQFH You will find information on how to install an S7-300 in the chapter entitled ,QVWDOODWLRQ S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP...
• All modules that you have installed on one rack may not exceed a total current consumption of 1.2 A (312 IFM: 0.8 A) from the S7-300 backplane bus. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP...
You will find information about the current consumption of modules in the technical specifications, for example, in the 6 0RGXOH 'DWD 5HIHUHQFH 0DQXDO or in the 5HIHUHQFH 0DQXDO of the CPU you are using S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
1.2 A (for the 312 IFM: 0.8 A), whereby the maximum for rack 1 is 0.8 A. These restrictions do not apply to operation with interface modules IM 360/IM 361 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
• No more than 8 modules (SM, FM, CP) are permitted per rack. • The number of modules (SM, FM, CP) is limited by the permitted current consumption on the S7-300 backplane bus. The total current consumption may not exceed 1.2 A per row (if 312 IFM CPU is used: 0.8 A).
&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...
Page 38
6HOHFWLRQ DQG LQVWDOODWLRQ RI FDELQHWV 5HDVRQV IRU LQVWDOOLQJ DQ 6 LQ D FDELQHW You should install your S7-300 in a cabinet when any of the following apply: • If you plan a larger system • You are using your S7-300s in an environment subject to interference or contamination •...
Page 39
:DUQLQJ Modules may get damaged if exposed to inadmissible ambient temperatures. 5HIHUHQFH IRU DPELHQW WHPSHUDWXUHV Information on permissible ambient temperatures is in the Appendix: see $PELHQW &RQGLWLRQV S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-13 A5E00203919-01...
700 W up to 2,700 W (with up to 260 W up to 360 W up to 1,700 W fine filter up to 1,400 W) S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-14 A5E00203919-01...
Page 41
600 mm x 600 mm x 2,000 mm, depending on power loss. these values only apply if you maintain the specified installation and clearance dimensions for racks (rails). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-15 A5E00203919-01...
Open with through-ventilation (Curve 2) approx. 38 °C Closed with heat exchanger (Curve 1) approx. 45 °C If you install the S7-300 horizontally, you can use the following types of cabinet: • open, with closed ventilation • closed, with heat exchanger VHH DOVR...
Page 43
• Grounding concept 1RWH An S7-300 can be used in many different ways, so we can only describe the basic rules for the electrical installation in this document. You must observe at least these basic rules if you want your S7-300 to operate free of trouble.
1) This column refers to the numbers in the diagram in the Summary diagram: Grounding section. &URVVUHIHUHQFH Additional information on protective measures is in the Appendix. VHH DOVR General Rules and Regulations for S7-300 Operation S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-18 A5E00203919-01...
Page 45
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 not need to make any changes to your CPU. *URXQGHG UHIHUHQFH SRWHQWLDO RQ &38V ± '3 This connection diagram applies to the following CPUs &38...
Page 46
RC system to the ground conductor/local ground integrated into the CPU. 1RWH Floating potential installation of an S7-300 with CPU 312 IFM or CPU 31xC is not possible. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP...
Page 47
&RQILJXULQJ $SSOLFDWLRQ In larger plants, it might prove necessary to install the S7-300 with floating reference potential because of short-circuit to ground monitoring. This is the case, for example, in chemical industry and power stations. )ORDWLQJ UHIHUHQFH SRWHQWLDO RQ &38V ± '3 This connection diagram applies to the &38...
Page 48
&RQILJXULQJ 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. 1RWH To create a floating reference potential, remove the jumper from the CPU between the M terminals and functional ground.
Data internal µ P Ground bus in cabinet external AC 230 V DC 24 V load power supply load power supply Figure 5-9 Configuration with isolated modules S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-23 A5E00203919-01...
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. 4AI/2AO S7-300 CPU...
Module None I/O Device Grounding via Schuko plug Sensors and actuators Grounding in accordance with regulations applying to the system S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-25 A5E00203919-01...
Page 52
If you want to locate a fault to ground, provide your load power supply (Terminal L– or M) or the isolating transformer with a removable connection to the protective conductor (see 2YHUYLHZ *URXQGLQJ Number 4). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-26 A5E00203919-01...
Connect M with M Connect or do not connect ungrounded operation external on the CPU to the common of CPU 312 IFM is not external grounding line possible S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-27 A5E00203919-01...
5.8.5 Overview: Grounding CPU 312 IFM The figure below shows you the complete assembly of an S7-300 with CPU 312 IFM with a power supply from TN-S power supply. Apart from powering the CPU, the PS 307 also supplies the load current for the 24 VDC modules. Note: The arrangement displayed does not correspond with the physical arrangement;...
&RQILJXULQJ $OO &38V H[FHSW IRU &38 ,)0 The figure below shows you an overall S7-300 configuration with TN-S power supply. Apart from powering the CPU, the PS 307 also supplies the load current for the 24 VDC modules. Note: The arrangement displayed does not correspond with the physical arrangement;...
With controlled load power supplies - especially for low output power (up to 20 A) - you must ensure that the supply can handle this excess current. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-30 A5E00203919-01...
&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 58
2. The cell level as PROFIBUS (FDL or PROFIBUS-FMS) for fast data exchange with communication partners equipped with equal rights. However, you can also implement PROFIBUS DP and PROFIBUS-FMS with communication processors (CP). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-32 A5E00203919-01...
Page 59
It is used especially for networking digital sensors and actuators. The maximum data volume is 4 bit per slave station. With S7-300 CPUs, you can connect to an ASI only with the help of communication processors.
&RQILJXULQJ %DVLF SULQFLSOHV RI 03, DQG '3 VXEQHWV 03,352),%86 '3 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.
• The highest MPI/PROFIBUS address must be ≥ of the physical MPI/PROFIBUS address, and it must be identical for each node. (Exception: Connecting a PG to multiple nodes; refer to the next Chapter). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-35 A5E00203919-01...
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. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-36 A5E00203919-01...
Other stations (e.g.. OP, TP, ...) should not be connected to the MPI subnet while the PLC is in run mode. Otherwise, transferred data might be corrupted as a result of interference or global data packages may get lost. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-37 A5E00203919-01...
)XUWKHU LQIRUPDWLRQ Further information on specific connections can be found in the &RPPXQLFDWLRQ ZLWK 6,0$7,& manual. Details on PtP communication is found in the 7HFKQRORJLFDO )XQFWLRQV Manual. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-38 A5E00203919-01...
RS 485 bus connector up to 12 Mbps with 35° cable exit (not CPU 31xC, 312, 314 (6ES7314- 1AF10-0AB0) or 315-2 DP (6ES7315-2AG10-0AB0)) 6ES7 972-0BA40-0XA0 without PG interface 6ES7 972-0BB40-0XA0 with PG interface S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-40 A5E00203919-01...
PG or PC. You can use multiple PG patch cords of this number in an installation. Do not use any other type of stub cable. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-43 A5E00203919-01...
S7-300 and OP 27 have subsequently been connected to the MPI subnet using their MPI default address. With CPU 318-2 DP, a separate MPI address is not assigned to CPs or FMs. With S7-300 CPUs (without CPU 318-2 DP). you can also freely assign MPI addresses for the CPs/ FMs.
Figure 5-15 Example: Maximum distance in the MPI subnet .H\ WR QXPEHUV LQ WKH ILJXUH Terminating resistor inserted PG connected by means of a stub cable for maintenance purposes S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-45 A5E00203919-01...
Figure 5-16 Example of a PROFIBUS subnet .H\ WR QXPEHUV LQ WKH ILJXUH Terminating resistor inserted PG connected by means of a stub cable for maintenance purposes S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-46 A5E00203919-01...
Figure 5-17 Example: CPU 314C-2 DP as MPI and PROFIBUS nodes .H\ WR QXPEHUV LQ WKH ILJXUH Terminating resistor inserted PG connected by means of a stub cable for maintenance purposes S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-47 A5E00203919-01...
CPU 417 CPU 416 MPI (2) MPI (1) S7-300 S7-300 31x-2 DP PG/PC 1 PROFIBUS-DP ET200 PG/PC 2 Figure 5-18 Example of PG access across network boundaries (routing) S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-48 A5E00203919-01...
Page 75
Please make sure that power is always supplied to stations on which the terminating resistor is active. As an alternative, you can also use the PROFIBUS Terminator as active bus termination. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-49 A5E00203919-01...
Page 76
&RQILJXULQJ S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 5-50 A5E00203919-01...
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"...
ID 406745. Interface module (IM) 1 x Slot number label (only For assigning slot numbers IM 361 and IM 365) on racks 1 to 3 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
,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...
ISO 7092 (DIN 433) ISO 4017 (DIN 4017) additional fixing screws Cylindrical head screw M6 to (only 2 m rail) ISO 1207/ISO 1580 (DIN 84/DIN 85) S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
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 312IFM - 318-2 DP A5E00203919-01...
Page 83
See Chapter 4 on analog modules in the 0RGXOH 'DWD Reference Manual. 1RWH If you want to create the S7-300 with a floating reference potential, you must establish this state on the CPU, ideally before you attach it to the rail. The section entitled &UHDWLQJ DQ 6 ZLWK IORDWLQJ UHIHUHQFH SRWHQWLDO contains the...
Page 84
C P U ,QVHUW WKH NH\ &38V ZLWK NH\ VZLWFK RQO\ Once you have installed the modules, you can insert the key into the CPU mode selector switch. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
2nd signal module – 3rd signal module – 4th signal module – 5th signal module – 6th signal module – 7th signal module – 8th signal module – S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
3. Press the slot number into the module (2). The slot number breaks off from the wheel. The figure below illustrates this procedure. The slot number labels are included with the CPU. C P U Figure 6-3 Inserting slot numbers in modules S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 6-10 A5E00203919-01...
: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 Connection comb (included with the PS)
:LULQJ 7RROV DQG PDWHULDO UHTXLUHG To wire the S7-300, you require the tools and materials listed in the table below. Table 7-2 Tools and materials for wiring :LULQJ WRROV DQG PDWHULDOV <RX UHTXLUH IRU connecting the protective conductor to the...
Version A, 5 mm to 7 mm collar length length • With insulating collar Version E, up to 6 mm long Version E, up to 6 mm long S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
For example, if the S7-300 is mounted on a hinged frame you must use a flexible ground strap. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP...
: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
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. Only use ferrules with insulating collars to press-fit onto the ends of the cables.
Connection comb (accessory for power supply) 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. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
:LULQJ )URQW &RQQHFWRUV ,QWURGXFWLRQ The front connector is used to connect the sensors and actuators of your system to the S7-300 automation system. Wire the sensors and actuators to this front connector and then plug it into the module. )URQW FRQQHFWRU YHUVLRQV Front connectors come in 20-pin and 40-pin versions, each with screw contacts or spring terminals.
Page 95
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. Once you have wired the modules, close all the front panels. You can then switch on the S7-300 again.
Starting at terminal 1 or 21, wire the terminal 20. connector, working in alternating passes from terminals 2, 22, 3, 23 etc. until you have reached terminals 20 and 40. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 7-10 A5E00203919-01...
Page 97
The work step numbers are shown in the figure above Thread the strain relief. WR Wire the terminals. Wire the terminals. Tighten the strain relief clamp. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 7-11 A5E00203919-01...
Page 98
Keep unlocking mechanism pressed. Tighten mounting screw. Insert front connector. You can now close the front panel Then close the front door. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 7-12 A5E00203919-01...
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 312IFM - 318-2 DP 7-13 A5E00203919-01...
4. The shielding terminal is equipped with a slotted web underneath. Place this part of the shielding terminal on the edge of the mounting bracket. Now push the shielding terminal down and pivot it into the desired position. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 7-14 A5E00203919-01...
2. Now clamp in the stripped cable shield underneath the shielding terminal. Push the shielding terminal towards the module and feed the cable through underneath the clamp. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 7-15 A5E00203919-01...
For your connection to the front connector, leave a sufficient cable length behind the shielding terminal. This allows you to disconnect the front connector, e.g. for repairs, without having to open the shielding contact element. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 7-16 A5E00203919-01...
Page 103
This presses the wires down into the insulation displacement terminals . 5. Screw-tighten the strain relief clamp. Take care that the bare shielding contacts the shielding contact surface. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 7-17 A5E00203919-01...
Since the bus connector draws its power from the station, the terminating resistor has no effect. Please make sure that power is always supplied to stations on which the terminating resistor is active. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 7-18 A5E00203919-01...
0D[LPXP DVVHPEO\ DQG WKH FRUUHVSRQGLQJ PRGXOH VWDUW DGGUHVVHV The figure below shows you an S7-300 assembly on four racks and the optional slots with their module start addresses. The input and output addresses for I/O modules start from the same module start address.
SM SM SM SM SM SM Slot number BG initial address digital 256 272 BG initial address analog Figure 8-1 S7-300 slots and the associated module start addresses S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 107
The address of an input or output of a digital module consists of a byte address and a bit address. Example: , This example consists of: input ,, byte address , and bit address S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
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 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
The start address of every subsequent analog module will be incremented by 16 per slot (see diagram under 6ORWEDVHG PRGXOH DGGUHVVLQJ An analog I/O module has the same start addresses for its input and output channels. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
15 to read and write consistent data. Direct access to consistent areas is also possible (e.g. L PEW or T PAW). You can transfer a maximum of 32 bytes of consistent data. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 112
$GGUHVVLQJ S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 113
5HTXLUHPHQWV IRU FRPPLVVLRQLQJ • S7-300 is installed • S7-300 is wired • With networked S7-300: MPI/PROFIBUS addresses are configured – The segments are terminated with active terminating resistors – S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
&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.
• If required, remove individual components to trace the error. ,PSRUWDQW QRWHV DUH DOVR IRXQG in Chapter 7HVWLQJ )XQFWLRQV GLDJQRVWLFV DQG IDXOW HOLPLQDWLRQ VHH DOVR Commissioning Checklist S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 116
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
• &38 has a software rather than a hardware clock, so it does not need a rechargeable battery (just a back-up battery is needed) S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
3. Insert the back-up/rechargeable battery into the battery compartment of the CPU. 4. Close the front door of the CPU. Figure 9-1 Insert a back-up battery into CPUs 313/314 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
. 4. Reset the CPU memory (see &RPPLVVLRQLQJ WKH PRGXOHV UHVHWWLQJ WKH &38 PHPRU\). Figure 9-2 Insert the memory card into the CPU S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Alternatively, you can produce the connecting leads with PROFIBUS cable and bus connectors yourself (refer to Chapter :LULQJ &RQQHFWLQJ %XV &RQQHFWRUV). SIEMENS BUSF DC5V FRCE STOP Figure 9-3 Connecting a PG to an S7-300 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
1. Use bus connectors to connect a stationary PG in the MPI subnet to the other nodes of the MPI subnet. The following figure shows you two S7-300 connected by means of PROFIBUS bus cables. The bus cable connectors have integrated terminating resistors. These must be energized on the CPUs for the outgoing bus cable connectors.
7KH GLDJUDP LOOXVWUDWHV XQGHU QXPEHU Stub cable used to create connection between PG and CPU Energized terminating resistor of the bus cable connector PROFIBUS bus cable used to network both CPUs S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-10 A5E00203919-01...
MPI address in the PG to that of the MPI subnet. &RQQHFWLQJ 3* WR DQ XQJURXQGHG QRGH FRQILJXUDWLRQ RQ DQ 03, VXEQHW &RQQHFWLQJ D 3* WR XQJURXQGHG QRGHV Always connect an ungrounded PG to ungrounded MPI subnet nodes or S7-300 PLCs. &RQQHFWLQJ D JURXQGHG 3* WR WKH 03, You want to operate with ungrounded nodes.
Page 124
CPU 312 IFM, since not buffered). 1RWH If you insert a Memory Card and a back-up battery before power is on, the CPU also requests a memory reset after start-up. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-12 A5E00203919-01...
• A memory reset by means of your PG can only be performed with STEP 7 in CPU STOP mode. &URVVUHIHUHQFH You can find information on how to perform a memory reset of your CPU with a PG in 67(3 2QOLQH +HOS. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-13 A5E00203919-01...
LEDs are lit (Exception: BATF LED)? 1. You must repeat steps 2 and 3. 2. If the CPU still does not reset memory, evaluate the diagnostic buffer of the CPU. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-14 A5E00203919-01...
During start-up the RUN LED flashes at 2 Hz. STOP max. 3 s Figure 9-8 Using the mode selector switch for a cold start (CPU 318-2 DP only) S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-15 A5E00203919-01...
FEPROM of the CPU are valid. If With integrated FEPROM load memory this location does not contain parameter (CPU 312 IFM / 314 IFM (314-5AE0x) data (SDB), the previously set parameters stay valid. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-16 A5E00203919-01...
Page 129
Start menu under 6,0$7,& it displays the program item 6,0$7,& 0DQDJHU. 1. Start SIMATIC Manager with a double-click on the icon or via Start menu (same as with all other Windows applications). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-17 A5E00203919-01...
Page 130
• in SIMATIC Manager with the %ORFNV container open via menu item ,QVHUW QHZ REMHFW ! 9DULDEOH WDEOH This table created offline can be saved for future retrieval. You can also test it after switching to online mode. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-18 A5E00203919-01...
Page 131
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 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-19 A5E00203919-01...
Page 132
You can customize the trigger points using the tool "Monitor and control variable" in menu item 9DULDEOH ! 6HW 7ULJJHU start. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-20 A5E00203919-01...
Page 133
In menu item 3/& ! &RQQHFW WR , establish a connection to one of the following CPUs: • configured CPU • directly connected CPU • available CPU ... S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-21 A5E00203919-01...
Page 134
For example, a message pops up to indicate CPU mode transition from STOP to RUN or START-UP. A message also pops up indicating that the "Enable PO" function is selected while the CPU is in RUN mode. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-22 A5E00203919-01...
If you do not specify any DP diagnostic addresses, 67(3 assigns these DP diagnostic addresses, starting at the highest byte address downwards . S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-23 A5E00203919-01...
Page 136
67(3 from the PG to CPU 31x-2 DP. 2. Switch on all of the DP slaves. 3. Switch CPU 31x-2 DP from STOP to RUN mode. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-24 A5E00203919-01...
DP master; Variable OB82_MDL_STOP=0) 7LS: When commissioning the CPU as DP master, always program OB 82 and 86. This helps you to recognize and evaluate data exchange errors or interruption. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-25 A5E00203919-01...
Page 138
That is, the DP slaves must start up within the set time and be configured by the CPU (as DP master). 352),%86 DGGUHVV RI WKH '3 PDVWHU With CPU 31x-2 DP, do not set as PROFIBUS address. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-26 A5E00203919-01...
Page 139
• All other DP slaves are programmed and configured. *6' ILOHV When working on an IM 308-C or non-Siemens system, you require a device database (GSD) file to be able to configure CPU 31x-2 DP as a DP slave in a DP master system.
When commissioning the CPU as DP slave, always program OB 82 and 86. This helps you to recognize and evaluate the respective operating states or data exchange errors. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-28 A5E00203919-01...
• You can configure up to 32 I/O address areas. • Maximum length per address area is 32 bytes. • You can configure a maximum of 244 input bytes and 244 outputs bytes. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-29 A5E00203919-01...
Address areas in the Address areas in the These address area parameters DP master CPU DP slave CPU must be identical for DP master and DP slave S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-30 A5E00203919-01...
Page 143
//Send data to DP slave LADDR:= W#16#0 RECORD:= P#M60.0 Byte 20 RET_VAL:=MW 22 CALL //receive data LADDR:=W#16#D from DP master RET_VAL:=MW 20 RECORD:=P#M30.0 byte 20 //Reprocess received data S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-31 A5E00203919-01...
Page 144
"0". That is, the DP master reads "0". The DP master goes into STOP mode: Actual data in CPU intermediate memory is maintained and can still be read by the CPU. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-32 A5E00203919-01...
The following types of DP-CPU are possible: • DP slave sending station • receiving station, as DP slave or DP master, or as CPU not integrated in a master system. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-33 A5E00203919-01...
DP master 2 PROFIBUS DP slave 3 DP slave 5 DP slave 4 DP slave 1 DP slave 2 Figure 9-10 Direct data exchange with CPUs 31x-2 DP S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 9-34 A5E00203919-01...
Page 147
In this case, you should make sure that the CPU from store has the same operating system that is used in the plant. We also recommend that you create a back-up copy of the operating system for emergency situations. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 10-1 A5E00203919-01...
• All LEDs are lit during the back-up. • When backup is complete, the STOP-LED flashes. The CPU is requesting a memory reset. Remove the memory card S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 10-2 A5E00203919-01...
(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).
Disturbances can corrupt data if you insert or remove S7-300 modules while data is being transferred via MPI. Do not replace S7-300 modules while there is data traffic on the MPI. If you are not certain whether or not data transfer is active on the MPI, unplug the connector on the MPI before you replace the module.
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 312IFM - 318-2 DP 10-6 A5E00203919-01...
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. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 10-7 A5E00203919-01...
After module replacement the CPU switches to run mode, provided no error has occurred. If the CPU maintains STOP status, you can view the cause of error with 67(3 (refer to the 67(3 User Manual). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 10-8 A5E00203919-01...
Insert the new back-up/rechargeable battery into the battery compartment of the CPU. Close the front door of the CPU. C P U Figure 10-5 Replacing the back-up battery in CPU 313/314 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 10-9 A5E00203919-01...
Page 156
Do not charge rechargeable batteries in devices other than the CPU. The rechargeable battery must always be charged in the CPU, in POWER ON state of the CPU. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 10-10 A5E00203919-01...
Page 157
If the front connector is wired to such voltages, hot swapping of modules must always be carried out by skilled or instructed electrical staff, in order to avoid unintentional contact with the module pins. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 10-11 A5E00203919-01...
6. Remove the fuse holder from the digital output module ). 7. Replace the fuse. 8. Screw the fuse holder back into the digital output module. 9. Reinstall the digital output module. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 10-12 A5E00203919-01...
Page 159
For example, if you have selected the programming language LAD in STEP 7 for your presentation, the color of the symbol will indicate a closed switch or an active circuit. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-1 A5E00203919-01...
Page 160
(e.g. TPQB x) or by PG/OP write functions! Always ensure that forced values in the I/O process image cannot be overwritten by the user program or PG/OP functions! S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-2 A5E00203919-01...
Execute force job for outputs job for outputs OS: operating system execution Figure 11-1 Principle of Forcing with S7-300 CPUs (all CPUs except 318-2 DP) 7KH GLIIHUHQFHV EHWZHHQ IRUFLQJ DQG FRQWUROOLQJ YDULDEOHV Table 11-1 The differences between forcing and controlling variables &KDUDFWHULVWLFV)XQFWLRQ...
Page 162
• Yellow LEDs indicate special operating states (e.g. "Force" is active). • Red LEDs report errors (e.g. bus error) A flashing LED also indicates a special event (e.g. memory reset). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-4 A5E00203919-01...
Page 163
For example, the entry of the value 50H (= dual 0101 0000) in byte 7 of the slave diagnostics for the distributed I/O module ET 200B indicates a faulty fuse or missing load voltage in channel group 2 and 3. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-5 A5E00203919-01...
Page 164
Details on diagnostic options in STEP 7 and procedures are found in the 3URJUDPPLQJ ZLWK 67(3 Manual and in the +: &RQILJ 2QOLQH +HOS. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-6 A5E00203919-01...
Remedy: refer to the tables below, evaluate the SF LED You have activated the Force function For details refer to the Programming Manual 3URJUDPPLQJ ZLWK 67(3 . S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-7 A5E00203919-01...
OBs called OB 80 is loaded or configuration), changing the simultaneously. called for a second program structure. Remedy: if time. required, retrigger cycle time monitoring via SFC 43 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-8 A5E00203919-01...
CPU memory, transfer the program requests memory again and set the CPU to RUN reset. mode. Tip: You can use SFC 39 to disable all interrupts and asynchronous error events. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-9 A5E00203919-01...
The LED can assume the status On or Off, but this status has no effect on the current CPU function. For example, the states Force On or Off do not influence the STOP status of the CPU S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-10 A5E00203919-01...
Check for interruptions in the bus cable to the DP master. • PROFIBUS DP • communication is interrupted. Check configuration data and the parameters. • Wrong PROFIBUS address. • Incorrect configuration S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-11 A5E00203919-01...
SFC 13 is asynchronous, i. e. it can be called several times until it enters the BUSY mode = 0. First call into OB82, finish processing in the cycle. Figure 11-2 Diagnostics with CPU 31x-2 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-12 A5E00203919-01...
• The diagnostic address for slot 2 is used to report events that affect this slot. For example, if the CPU is acting as an intelligent slave, it returns the diagnostic interrupts for operating state transitions. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-13 A5E00203919-01...
OB82_MDL_DEFECT: = Module error Tip: The CPU diagnostic buffer also contains this information In the user program you should also include SFC13 "DPNRM_DG" for reading out DP slave diagnostic data. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-14 A5E00203919-01...
The receiver obtains information about the status of the sender or about a bus interruption by means of this diagnostic address. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-15 A5E00203919-01...
308-C operating as DP diagnostic data (stored master in the data area of the user program) SIMATIC S5 with S5- FB 230 “S_DIAG” 95U PLC operating as DP master S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-16 A5E00203919-01...
Page 175
• Diagnostic data for the input module at address 200 is to be read. • Data record 1 is to be read out. • Data record 1 is to be stored in DB 10. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-17 A5E00203919-01...
CPU as DP master PROFIBUS DP During configuration you must specify two diagnostic addresses: Diagnostic address Diagnostic address Figure 11-5 Diagnostic addresses for DP masters and DP slaves S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-18 A5E00203919-01...
DP master: STOP → RUN • Call of OB82 with the message 0RGXOH 2.(outgoing event; diagnostic address of the DP slave, assigned to the DP slave; Variable OB82_MDL_STOP=0) S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-19 A5E00203919-01...
→ The CPU calls OB82 with the following CPU: RUN " STOP information: • OB82_MDL_ADDR:=422 • OB82_EV_CLASS:=B#16#39 (incoming event) • OB82_MDL_DEFECT: = Module error Tip: The CPU diagnostic buffer also contains this information S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-20 A5E00203919-01...
With an IM 308-C operating as DP master you cannot utilize process interrupts in device-specific diagnostics, because only incoming events are reported rather than outgoing events. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-21 A5E00203919-01...
Exception: if the DP master is wrongly configured, the DP slave will interprete 35 configured address areas in byte 6) Figure 11-6 Structure of slave diagnostic data S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-22 A5E00203919-01...
DP slave has received control command "SYNC". This bit is always "0". DP slave is disabled, that is, it has been excluded from cyclic processing. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-23 A5E00203919-01...
Table 11-17 Structure of the vendor ID (byte 4, 5) %\WH %\WH 9HQGRU ,' IRU WKH &38 CPU 315-2 DP (6ES7315-2AF03-0AB0) CPU 315-2 DP (6ES7315-2AF83-0AB0) CPU 316-2-DP CPU 318-2 DP S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-24 A5E00203919-01...
Entry for 30th configured address area Entry for 31st configured address area Entry for 32nd configured address area Figure 11-7 Structure of the ID-specific diagnostics for CPU 31x-2 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-25 A5E00203919-01...
8th configured address area 9th configured address area Byte y-1 30th configured address area 31st configured address area 32nd configured address area Figure 11-8 Structure of the module status S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-26 A5E00203919-01...
Byte y +7 Byte z Example on byte y+2 = 02H 1. Address area = 04H 2. Address area = 05H etc. Figure 11-9 Structure of the interrupt status S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-27 A5E00203919-01...
Note: byte y + 8 to byte y + 19 are always 0. Figure 11-10 Bytes y+4 to y+7 for a diagnostic interrupt (operating status change by intelligent slave) S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 11-28 A5E00203919-01...
*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.
Signal and bus cables a cable/conductor break does not result in undefined plant or system states. ,QIRUPDWLRQ RQ (0& DQG VXUJH SURWHFWLRQ can be found in the following Chapters. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-2 A5E00203919-01...
,QWURGXFWLRQ Although your S7-300 and its components are developed for an industrial environment and high electromagnetic compatibility, you should draw up an EMC installation plan before you install the controller under consideration of all possible interference sources.
• Sparking (sparkplugs, collectors of reaches a conductor system. electrical motors, welding devices) This wave coupling induces currents and voltages. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-4 A5E00203919-01...
Page 191
• Always route high-voltage, signal or data cables through separated ducts or in separate bundles. • Install the signal and data cables as close as possible to grounded surfaces (e.g. supporting beans, metal rails, steel cabinet walls ). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-5 A5E00203919-01...
Page 192
Some special applications might require special EMC measures (refer to the section on +RZ WR SURWHFW GLJLWDO RXWSXW PRGXOHV DJDLQVW LQGXFWLYH VXUJH YROWDJH). • Connect anti-surge elements to all inductive devices not controlled by S7-300 modules. • For cabinet or cubicle lighting in the immediate range of your controller, use incandescent lamps or interference suppressed fluorescent lamps .
Page 193
,QVWDOODWLRQ DQG JURXQG ERQGLQJ RI LQDFWLYH PHWDO SDUWV Bond all inactive metal parts to a large-surface ground when you install the S7-300. Proper ground bonding ensures a homogeneous reference potential for the controller and reduces the effect of interference coupling.
This sample applies only to grounded operation. Note the points in the figure when you install your system. Figure 12-2 Example of an EMC compatible cabinet installation S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-8 A5E00203919-01...
Steel sheet panels reference potential surfaces have been found especially suitable for wall-mounting. Provide a shielding busbar for connecting your cable shielding. This shielding busbar can also be used as protective ground bar. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-9 A5E00203919-01...
• Always touch-protect live mains conductors. The figure below shows an example of EMC compatible wall-mounting of an S7. C P U Figure 12-3 Example of EMC compatible wall-mounting S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-10 A5E00203919-01...
Page 197
Then, route the cable to the module; however, do not connect the shielding once again to ground in this place. • In installations outside of cabinets (e.g. for wall-mounting) you can also terminate the shielding on a cable duct. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-11 A5E00203919-01...
(e.g. with a cross-section of 16 mm ). When installing MPI/DP networks, provide a sufficient conductor cross-section. Otherwise, interface hardware might get damaged or even be destroyed. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-12 A5E00203919-01...
• Route your equipotential bonding conductor to minimize the area between the equipotential bonding conductor and signal lines as far as possible (see the figure below). Figure 12-5 Equipotential bonding S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-13 A5E00203919-01...
DC and AC voltage (> 400 V), unshielded In separate bundles or cable ducts (no minimum clearance necessary) RXWVLGH FDELQHWV On separate cable racks with a clearance of at least 10 cm S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-14 A5E00203919-01...
Page 201
In common bundles or cable unshielded ducts ETHERNET ETHERNET In common bundles or cable ducts Others In separate bundles or cable ducts with a clearance of at least 50 cm S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-15 A5E00203919-01...
An individual appraisal of the entire plant is necessary before any lightning protection measures are taken. $GGLWLRQDO LQIRUPDWLRQ RQ OLJKWQLQJ SURWHFWLRQ can be found in the Lightning and surge voltage protection section. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-16 A5E00203919-01...
/LJKWQLQJ DQG 6XUJH 9ROWDJH 3URWHFWLRQ ,Q WKH IROORZLQJ VHFWLRQV we show you solutions for the protection of your S7-300 against damage as a result of surge voltage. 2YHUYLHZ Failures are very often the result of surge voltage caused by: •...
3 Device Non-electric line (metallic) Metal part Internal line Lightning- Line in information system protection equal Local potential equal Figure 12-6 Lightning protection zones of a building S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-18 A5E00203919-01...
Page 205
– in continuously armored concrete ducts or – on closed metal cable trays grounded at both ends. – Use fiber optic cables instead of metal conductors. – S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-19 A5E00203919-01...
12 V +/- conductor, type B 919 510* * You can order these components directly from: DEHN + SÖHNE GmbH + Co. KG Elektrotechnische Fabrik Hans-Dehn-Str. 1 D-92318 Neumarkt S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-20 A5E00203919-01...
Page 207
Always use the Blitzductor VT, type AD 24 V SIMATIC for the 24 VDC power supply module of the S7-300. All other surge protection components do not meet the required tolerance range of 20.4 V to 28.8 V of the S7-300 power supply. /LJKWQLQJ &RQGXFWRU IRU 6LJQDO 0RGXOHV You can use standard surge protection components for the digital I/O modules.
MD 12 V 919 541* * You can order these components directly from: DEHN + SÖHNE GmbH + Co. KG Elektrotechnische Fabrik Hans-Dehn-Str. 1 D-92318 Neumarkt S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-22 A5E00203919-01...
M- of the power supply for the modules. * You can order these components directly from: DEHN + SÖHNE GmbH + Co. KG Elektrotechnische Fabrik Hans-Dehn-Str. 1 D-92318 Neumarkt S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-23 A5E00203919-01...
Lightning-protection zone 1 Switchgear cubicle 1 Switchgear cubicle 2 Lightning-protection zone 2 Lightning-protection zone 2 10 mm 10 mm Figure 12-7 Sample circuit for networked S7-300 PLCs S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-24 A5E00203919-01...
Order No.: 919 506* and 919 510* > 1 * You can order these components directly from: DEHN + SÖHNE GmbH + Co. KG Elektrotechnische Fabrik Hans-Dehn-Str. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-25 A5E00203919-01...
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: •...
• The surge rise-ratio remains the same • Short off-delay. The characteristics of RC circuits are: • Amplitude and steepness of the opening surge are reduced. • Short off-delay. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-27 A5E00203919-01...
Page 214
Thus, it is suitable in the same way as the previously tested fail-safe PLC S5-115F to control and monitor safety-relevant system areas. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-28 A5E00203919-01...
Page 215
- e.g. with a multi-channel structure. Incorrect handling can render measures intended to prevent dangerous faults ineffective, or generate additional sources of danger. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 12-29 A5E00203919-01...
Page 217
%XV VHJPHQW A bus segment is a self-contained section of a serial bus system. Bus segments are interconnected using repeaters. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-1 A5E00203919-01...
Page 218
Memory bit which can be used to generate clock pulses in the user program (1 byte per memory bit). 1RWH Note in the case of S7-300 CPUs that the clock memory byte is not overwritten in the user program. &RGH %ORFN A SIMATIC S7 code block contains part of the 67(3 user program.
Page 219
Æ Interrupt, Delay 'LDJQRVWLF EXIIHU The diagnostic buffer is a buffered memory area in the CPU in which diagnostic events are stored in the order of their occurrence. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-3 A5E00105492-03...
Page 220
One of the possible responses of the operating system to a Æ runtime error is to display the error. The other possible responses are: Æ error response in the user program, CPU STOP. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-4 A5E00105492-03...
Page 221
According to IEC 1131-3 a function is a Æ code block that contains no Æ statical data. A function allows parameters to be passed in the user program. Functions are therefore suitable for programming frequently occurring complex functions, e.g. calculations. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-5 A5E00105492-03...
Page 222
The conductive earth whose electrical potential can be set equal to zero at any point. Ground potential can be different to zero in the area of grounding electrodes. The term “reference ground” is frequently used to describe this situation. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-6 A5E00105492-03...
Page 223
A status interrupt can be generated by a DPV1 slave and causes OB55 to be called on the DPV1 master. For detailed information on OB55, see the 5HIHUHQFH 0DQXDO 6\VWHP VRIWZDUH IRU 6 6\VWHP DQG 6WDQGDUG )XQFWLRQV" S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-7 A5E00105492-03...
Page 224
Work memory is a RAM memory in the Æ CPU accessed by the processor during user program execution. 0DVWHU Masters in possession of the Æ Token can send/request data to/from other nodes (= active node). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-8 A5E00105492-03...
Page 225
Æ code blocks. 1RQLVRODWHG The reference potential of the control and on-load power circuits for non-isolated I/Os is electrically interconnected. Organization Blocks S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-9 A5E00105492-03...
Page 226
67(3 , e.g. modification of input delay parameters of a digital signal input module. Æ Programming device 3/& An automation system in the context of SIMATIC S7 Æ is a programmable logic controller. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-10 A5E00105492-03...
Page 227
3URJUDPPLQJ GHYLFH Programming devices are essentially personal computers which are compact, portable and suitable for industrial applications. They are equipped with special hardware and software for SIMATIC PLCs. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-11 A5E00105492-03...
Page 228
OB 1. 5XQWLPH HUURU Errors occurred in the PLC (that is, not in the process itself) during user program execution. S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-12 A5E00105492-03...
Page 229
In the event of an input access error, a substitute value can be written to the accumulator instead of the input value which could not be read (SFC 44). S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-13...
Page 230
--> operating system (e.g. buffers for communication). 6\VWHP VWDWH OLVW The system status list contains data describing the current status of an S7-300. You can always use this list to obtain an overview of: • The S7-300 configuration •...
Page 231
CPU or can be provided on plug-in memory cards or memory modules. However, user programs are always executed from Æ CPU main memory. 9DULVWRU voltage-dependent resistor :DWFKGRJ ,QWHUUXSW Æ Interrupt, Watchdog S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-15 A5E00105492-03...
Page 232
*ORVVDU\ S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP 13-16 A5E00105492-03...
9-4 Bus connector 5-40 CPU 31x-2 DP as DP slave 9-27 connecting the bus cable 7-17 CPU 31xC-2 DP as DP slave 9-27 setting the terminating resistor 7-18 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 234
Diagnostic buffer 11-5, 13-3 wiring 7-3, 7-10 Diagnostic Interrupt 13-4 Front connector diagnostics encoding 7-12 as DP-Slave 11-15 front connector coding configured address area 11-25 remove from front connector 10-7 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 237
Routing a potential difference cable 12-12 SFC 13-14 RS485 System Function Block bus connector 5-40 SFB 13-14 RS485 repeater 5-41 System memory 13-14 Rules and regulations for error-free operation 12-1 Runtime error 13-12 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...
Page 238
PS and CPU 7-6 operating system 10-3 Wiring User memory 13-15 PS and CPU 7-2 User Program 13-15 required tools and materials 7-2 User-defined addressing 8-1, 8-3 rules 7-2 S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP A5E00203919-01...