S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

Embed Size (px)

Citation preview

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    1/20

    Automation System S7-300: Gettingtarted CPU 31xC: Commissioning

    ___________________

    ___________________

    ___________________

    ___________________

    SIMATICS7-300Automation System S7-300: Getting StartedCPU 31xC: CommissioningGetting Started

    08/2011A5E00105538-04

    Introduction 1

    Preparation 2

    Learning units 3

    Further Information 4

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    2/20

    Legal informationLegal informationWarning notice system

    This manual contains notices you have to observe in order to ensure your personal safety, as well as to preventdamage to property. The notices referring to your personal safety are highlighted in the manual by a safety alertsymbol, notices referring only to property damage have no safety alert symbol. These notices shown below aregraded according to the degree of danger.

    DANGERindicates that death or severe personal injury will result if proper precautions are not taken.

    WARNINGindicates that death or severe personal injury may result if proper precautions are not taken.

    CAUTIONwith a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.

    CAUTIONwithout a safety alert symbol, indicates that property damage can result if proper precautions are not taken.

    NOTICEindicates that an unintended result or situation can occur if the relevant information is not taken into account.

    If more than one degree of danger is present, the warning notice representing the highest degree of danger willbe used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating toproperty damage.

    Qualified PersonnelThe product/system described in this documentation may be operated only by personnel qualified for the specifictask in accordance with the relevant documentation, in particular its warning notices and safety instructions.Qualified personnel are those who, based on their training and experience, are capable of identifying risks andavoiding potential hazards when working with these products/systems.

    Proper use of Siemens productsNote the following:

    WARNINGSiemens products may only be used for the applications described in the catalog and in the relevant technicaldocumentation. If products and components from other manufacturers are used, these must be recommendedor approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation andmaintenance are required to ensure that the products operate safely and without any problems. The permissibleambient conditions must be complied with. The information in the relevant documentation must be observed.

    TrademarksAll names identified by are registered trademarks of Siemens AG. The remaining trademarks in this publicationmay be trademarks whose use by third parties for their own purposes could violate the rights of the owner.

    Disclaimer of LiabilityWe have reviewed the contents of this publication to ensure consistency with the hardware and softwaredescribed. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, theinformation in this publication is reviewed regularly and any necessary corrections are included in subsequenteditions.

    Siemens AGIndustry SectorPostfach 48 48

    90026 NRNBERGGERMANY

    A5E00105538-04 09/2011

    Copyright Siemens AG 2011.Technical data subject to change

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    3/20

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 3

    Table of contents

    1 Introduction................................................................................................................................................ 52 Preparation................................................................................................................................................ 73 Learning units .......................................................................................................................................... 11

    3.1 1. Step: Installing the mounting rail and modules ........................................................................11

    3.2 2. Step: Wiring modules...............................................................................................................13

    3.3 3. Step: Commissioning hardware...............................................................................................14

    3.4 4. Step: Programming the circuit..................................................................................................153.5 5. Step: Configuring hardware .....................................................................................................17

    3.6 6. Step: Trial run ..........................................................................................................................18

    4 Further Information.................................................................................................................................. 19

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    4/20

    Table of contents

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    4 Getting Started, 08/2011, A5E00105538-04

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    5/20

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 5

    Introduction 1

    Contents of this Getting Started ManualUsing a specific example, this "Getting started" manual guides you through sixcommissioning steps to implement a functional application. While working through theexample, you will learn the basic hardware and software functions of your CPU 31xC.

    This process will take one to two hours, depending on your experience.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    6/20

    Introduction

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    6 Getting Started, 08/2011, A5E00105538-04

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    7/20

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 7

    Preparation 2

    ScopeThese instructions apply to the following CPUs:

    CPU SIMATIC Micro Memory Cardrequired for operation?

    As of firmwareversion

    312C yes V3.3

    313C yes V3.3313C-2 PtP yes V3.3

    313C-2 DP yes V3.3

    314C-2 PtP yes V3.3

    314C-2 DP yes V3.3

    314C-2 PN/DP yes V3.3

    The order number can be found in the manuals, e.g. the operating instructions CPU 31xCand CPU 31x: Installation (http://support.automation.siemens.com/WW/view/en/13008499).

    PrerequisitesYou need to have a basic understanding of electronics/electrical engineering. You must alsobe familiar with the Microsoft Windows operating system.

    WARNINGOperation of an S7-300 as part of plants or systems is subject to special rules andregulations, which depend on its field of application. Please make sure that you adhere tothe applicable safety and accident prevention regulations, for example IEC 204 (emergencystop systems).

    You risk severe injury, or damage to machines and equipment if you ignore theseregulations.

    http://support.automation.siemens.com/WW/view/en/13008499http://support.automation.siemens.com/WW/view/en/13008499
  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    8/20

    Preparation

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    8 Getting Started, 08/2011, A5E00105538-04

    Material and tools requiredQuantity Item Order number (Siemens)1 Mounting rail e.g. 6ES7390-1AE80-0AA0

    1 Power supply PS 307 (PS) e.g. 6ES7307-1EA01-0AA0

    1 CPU 31xC, e.g. CPU 313C e.g. 6ES7313-5BG04-0AB0

    1 SIMATIC Micro Memory Card

    Note:The SIMATIC Micro Memory Card is required foroperation of certain CPUs (see Scope).

    e.g. 6ES7953-8LL20-0AA0

    2 40-pin front connector with screw contacts 6ES7392-1AM00-0AA0

    1 Programming device (PG) with MPI interface andSTEP 7 software as of V5.5 + SP1 or STEP 7 as of

    V5.3 + SP2 with HSP 203 installed and PG cable or

    PC with suitable interface card

    Depending on configuration

    X m PROFIBUS DP cable with bus connectors Depending on implementation

    Various M6 nuts and bolts (length depending on specificinstallation) with suitable screwdriver/wrench

    commonly available

    1 Screwdriver with 3.5 mm wide blade commonly available

    1 Screwdriver with 4.5 mm wide blade commonly available

    1 Side cutter and cable stripper commonly available

    1 Crimp tool commonly available

    X m Cable with 10 mm2 cross-section for grounding themounting rail, with cable lug suitable for M6, length tosuit local requirements

    commonly available

    Approx.2 m

    Flexible wire with 1 mm2 cross-section with suitablewire-end ferrules with insulation collar, length 6 mm

    commonly available

    X m 3-core power supply cable (230/120 V AC) with"Schuko" plug, length to suit local requirements andsuitable wire-end ferrules

    commonly available

    2 Single-pole ON switch (24 V) commonly available

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    9/20

    Preparation

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 9

    Layout of the example2 3

    7 6

    41

    5

    Power supply ON/OFF Mode selector Mounting rail Programming device with STEP 7 software

    PG cable Connecting cable Clamp for strain relief

    Figure 2-1 Overview of sample layout

    Functionality of the exampleOutput A 124.0 must only switch (i.e. LED A 124.0 lights up) when button E 124.1 and buttonE 124.2 are pressed.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    10/20

    Preparation

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    10 Getting Started, 08/2011, A5E00105538-04

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    11/20

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 11

    Learning units 33.1 1. Step: Installing the mounting rail and modulesInstallation sequence

    From left to right: Power supply PS 307 - CPU 313C.

    The configuration diagram gives you an overview of the overall configuration.

    Installing and grounding the mounting rail1. Screw on the mounting rail (screw size: M6). Make sure to maintain a minimum clearance

    of 40 mm above and below the mounting rail.

    When mounting it on a grounded metallic panel or on a grounded device mounting panelmade of steel sheet, make sure you have a low impedance connection between themounting rail and the mounting surface.

    2. Connect the rail to the protective conductor. An M6 screw is provided on the rail for thispurpose.

    Minimum cross-section from the cable to the protective conductor: at least 10 mm2.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    12/20

    Learning units

    3.1 1. Step: Installing the mounting rail and modules

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    12 Getting Started, 08/2011, A5E00105538-04

    Installing modules on the mounting rail1. Insert the power supply module. Slide it to the left as far as the grounding screw of the

    mounting rail. Fasten the power supply module.2. Hang in the CPU (1).3. Slide it as far as the left-hand module (2).4. Swivel down the CPU (3).

    5. Bolt the CPU tight, applying a torque of between 0.8 and 1.1 Nm.

    6. Insert a SIMATIC Micro Memory Card into the CPU (4).Delete the content of a SIMATIC Micro Memory Card with unknown content before youuse it in the programming device.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    13/20

    Learning units

    3.2 2. Step: Wiring modules

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 13

    3.2 2. Step: Wiring modulesWARNING

    Ensure the S7-300 is completely disconnected before wiring!

    You may come into contact with live wires if the S7-300 is connected to the power supply.

    Wiring the power supply and the CPU1. Open the front panel covers of the power supply module and CPU.2. Unscrew the strain relief clamp on the power supply module.3. Strip the power cable.4. Crimp wire-end ferrules to the ends of stranded cables.5. Connect to the power supply.6. Screw the strain-relief assembly tight.7. Insert two short connecting cables between the power supply and the CPU.8. Fasten the CPU.

    Wiring the front connectors of the DI and DO1. Open the front right-hand panel of the CPU 313C.2. Place the front connector into wiring position.

    You do this by pushing a front connector into the CPU until it snaps into position. In thisposition, the front connector still protrudes from the CPU. In the wiring position a wiredfront connector has no contact with the module.

    3. Remove 6 mm of the insulation from the ends of the wires that go into the frontconnector. Attach cable end sleeves to these ends.

    4. Wire the front connector (DI side) as follows: Terminal 1: L+ of the power supply Terminal 3: Button 1 Terminal 4: Button 2 Terminal 20: M of the power supply

    5. Wire the front connector (DO side) as follows: Terminals 21 and 31: L+ of the power supply Terminal 30: M of the power supply

    6. Wire the free cable ends of the button with L+ of the power supply.7. Lead the wires downwards out of the front connector.8. Secure the front connector with the screws (this establishes contact with the module).9. Close the front panel covers of the power supply module and the front panel of the CPU.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    14/20

    Learning units

    3.3 3. Step: Commissioning hardware

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    14 Getting Started, 08/2011, A5E00105538-04

    3.3 3. Step: Commissioning hardwareProcedure

    1. Use the PG cable to connect the programming device to the CPU. When using a cablewith PROFIBUS connectors, remember to switch on the integrated terminating resistors.Close the front panel cover of the CPU, then set the mode selector switch on the CPU toSTOP.

    2. Connect the mains cable, then switch on the power supply module PS 307.The DC24VLED on the power supply is lit.

    All the LEDs on the CPU light up briefly; the SFLED and the DC5VLED stay lit. TheSTOPLED then flashes slowly to indicate a CPU memory reset.

    3. Perform a CPU memory reset: Turn the mode switch to MRES. Hold the mode selector at this position until the STOP

    LED lights up for the second time and then remains lit (approx. 3 seconds). Thenrelease it.

    You must press the mode switch back to MRESwithin 3 s. The STOPLED begins toflash rapidly and the CPU performs a reset. You can now release the mode switch.The CPU has completed the memory reset when the STOPLED remains permanentlylit again.

    4. Start your programming device, then run SIMATIC Manager from your Windows Desktop.A window opens with SIMATIC Manager.

    5. Select button 1.The LED of I124.1 lights up. No DO LED lights up.

    6. Select button 2.The LED of I124.2 lights up. No DO LED lights up.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    15/20

    Learning units

    3.4 4. Step: Programming the circuit

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 15

    3.4 4. Step: Programming the circuitProcedure

    1. Follow the instructions of the STEP 7 "New Project" wizard on the programming deviceand set up a new project with the following data:

    CPU type: CPU 313C Block to be created: OB 1 Project name: S7_Pro1A window, divided into two parts, opens with the title S7_Pro1 -- ....

    2. Double-click the OB1icon in the right-hand part of the window.The editor for editing the OB 1 block opens.

    3. In the "View" menu, select "LAD" to change to the ladder logic programming language.At the bottom of the left-hand window, a current path is displayed in network 1.

    4. Carefully click on the horizontal line representing the current path.The line is highlighted.

    5. On the toolbar, click twice on the --||-- icon (normally-open contact) and then once on the( ) icon (coil).

    The icons are inserted into the current path.

    6. Click on the red question mark for the left-hand normally- open contact in the currentpath.

    The normally-open contact is highlighted and the question mark is replaced with a textinput box containing the cursor.

    7. EnterI124.1and press Return.The left-hand normally-open contact is now called I124.1.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    16/20

    Learning units

    3.4 4. Step: Programming the circuit

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    16 Getting Started, 08/2011, A5E00105538-04

    8. Label the right button in the same way with I124.2and the coil with Q124.0.

    9. Close the editor and click Yeswhen you are prompted to save.The editor is closed and OB 1 is saved.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    17/20

    Learning units

    3.5 5. Step: Configuring hardware

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 17

    3.5 5. Step: Configuring hardwareProcedure

    1. In SIMATIC Manager, click on SIMATIC 300 Station in the left-hand part of the window.The Hardwareand CPU 313Cicons appear in the right-hand section of the window.

    2. Double-click the Hardwareicon in the right-hand part of the window.The editor for editing the hardware opens.

    3. If the catalog is not shown in the right-hand section of the window, you can activate thecatalog by selecting Catalogin the Viewmenu.

    4. Navigate to CPU 313C via SIMATIC 300 and CPU-300.5. Drag-and-drop the CPU 313Cinto slot 2 (window, top or bottom left).

    NoteYou can see the order number in the hardware catalog if you click on a CPU. The ordernumber of the selected CPU then appears in the box below the hardware catalog.

    Multiple order numbers may be listed in your hardware catalog in the CPU 313C folder(see figure).

    6. Check whether the order number displayed for slot 2 in the bottom left-hand section ofthe window corresponds to the order number on your CPU. Increase the width of theorder number column so you can see the complete number.

    If it does: Skip to the next step.If it does not: In the catalog, navigate to CPU 313Cvia CPU-300. Replace the CPU in slot2 by dragging and dropping the CPU with the correct order number from the catalog.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    18/20

    Learning units

    3.6 6. Step: Trial run

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    18 Getting Started, 08/2011, A5E00105538-04

    7. Perform steps 3 and 4 for the power supply module PS 307 too. Insert the PS 307 intoslot 1.

    8. Go to the Stationmenu and select Save and compile.The hardware configuration is compiled and saved.

    9. Close the editor.The editor is closed.

    3.6 6. Step: Trial run

    Procedure1. Use the SIMATIC 300 station and CPU 313Cto navigate to the S7 program. In SIMATIC

    Manager, click on Blocks in the right-hand section of the window.

    "Blocks" is then highlighted.

    2. Select "Download" from the "PLC" menu to transfer the program and hardwareconfiguration to the CPU. Confirm all windows with "Yes".

    The program and configuration are downloaded from the programming device to theCPU. The program is now stored on the SIMATIC Micro Memory Card (in the loadmemory), where it is unaffected by power failures and resets.

    3. Set the CPU's mode switch to RUN.The STOPLED is switched off. The RUNLED starts to flash and then assumes acontinuous signal.

    4. Press each of the buttons alternately.The LEDs of inputs I124.1 and I124.2 light up alternately.

    The LED of output Q124.0 is not lit.

    5. Press both buttons simultaneously.The LEDs of inputs I124.1 and I124.2 light up simultaneously.

    The LED of output Q124.0 is lit. This would switch on a connected actuator or indicator.

  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    19/20

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    Getting Started, 08/2011, A5E00105538-04 19

    Further Information 4

    Diagnostics/Correction of ErrorsWrong operation, faulty wiring or a faulty hardware configuration may cause errors which theCPU, CP or IE/PB-Link indicate with the SFgroup error LED after CPU memory reset.

    For information on how to diagnose such errors and alarms, please refer to the operatinginstructions, CPU 31xC and CPU 31x: Installation(http://support.automation.siemens.com/WW/view/en/13008499) and Programming SIMATICwith STEP 7 5.5 (http://support.automation.siemens.com/WW/view/en/45531107).

    Manuals containing further informationFor more in-depth Getting Started information, we recommend Getting Started andExercises with STEP 7 (http://support.automation.siemens.com/WW/view/en/45531551).

    Service & Support on the InternetIn addition to our documentation, we offer a comprehensive knowledge base on the Internet(http://www.siemens.com/automation/service&support).

    There you can find:

    A newsletter containing the latest information on your Siemens products. The documents you need using the search engine in Service & Support. The bulletin board, a worldwide knowledge exchange for users and experts. Your local contact for Automation & Drives in our contact database. Information about on-site services, repairs and spare parts. You will find much more

    under "Services".

    http://support.automation.siemens.com/WW/view/en/13008499http://support.automation.siemens.com/WW/view/en/45531107http://support.automation.siemens.com/WW/view/en/45531551http://www.siemens.com/automation/service&supporthttp://www.siemens.com/automation/service&supporthttp://support.automation.siemens.com/WW/view/en/45531551http://support.automation.siemens.com/WW/view/en/45531107http://support.automation.siemens.com/WW/view/en/13008499
  • 7/27/2019 S7-300 Automation System S7-300 Getting Started CPU 31xC Commissioning, 08-2011

    20/20

    Further Information

    Automation System S7-300: Getting Started CPU 31xC: Commissioning

    20 Getting Started, 08/2011, A5E00105538-04