s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

download s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

of 16

Transcript of s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    1/16

    Getting Started - Commissioning a CPU31xC: Closed- oop control

    ___________________

    ___________________

    ___________________

    ___________________

    SIMATICS7-300Getting Started - Commissioning a CPU 31xC:Closed-loop controlGetting Started

    08/2011A5E00105534-03

    Introduction 1

    Preparation 2

    Learning units 3

    Further Information 4

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    2/16

    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 willresult if proper precautions are not taken.

    WARNINGindicates that death or severe personal injury mayresult 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 qualifiedfor 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

    A5E00105534-03 09/2011

    Copyright Siemens AG 2011.Technical data subject to change

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    3/16

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    Getting Started, 08/2011, A5E00105534-03 3

    Table of contents

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

    3.1 1. Step: Installing the sample project ...........................................................................................11

    3.2 2. Step: Linking to the user program............................................................................................12

    3.3 3. Step: Setting parameters .........................................................................................................13

    3.4 4. Step: Trial run ..........................................................................................................................134 Further Information.................................................................................................................................. 15

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    4/16

    Table of contents

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    4 Getting Started, 08/2011, A5E00105534-03

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    5/16

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    Getting Started, 08/2011, A5E00105534-03 5

    Introduction 1

    Contents of this Getting Started ManualThe practical sample in this Getting Started manual takes you through four steps, showingyou how to commission a fully functional application. You are going to learn how todetermine and configure application-dependent data and how to operate a control circuit.

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

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    6/16

    Introduction

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    6 Getting Started, 08/2011, A5E00105534-03

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    7/16

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    Getting Started, 08/2011, A5E00105534-03 7

    Preparation 2

    ScopeThese instructions apply to the following CPUs:

    CPU SIMATIC Micro Memory Cardrequired for operation?

    As of firmwareversion

    313C Yes V3.3

    313C-2 PtP yes V3.3313C-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).

    http://support.automation.siemens.com/WW/view/en/13008499http://support.automation.siemens.com/WW/view/en/13008499
  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    8/16

    Preparation

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    8 Getting Started, 08/2011, A5E00105534-03

    Requirements You have an S7-300 station consisting of a power supply module and a CPU 313C or

    314C. STEP 7 as of V5.5 is correctly installed on your PG.

    The table below shows the STEP 7 version you need for each CPU.

    CPU STEP 7 version313C STEP 7 as of V5.5 + SP1 or STEP 7 as of V5.3 + SP2 with HSP 203

    313C-2 PtP STEP 7 as of V5.5 + SP1 or STEP 7 as of V5.3 + SP2 with HSP 204

    313C-2 DP STEP 7 as of V5.5 + SP1 or STEP 7 as of V5.3 + SP2 with HSP 203

    314C-2 PtP STEP 7 as of V5.5 + SP1 or STEP 7 as of V5.3 + SP2 with HSP 204

    314C-2 DP STEP 7 as of V5.5 + SP1 or STEP 7 as of V5.3 + SP2 with HSP 203

    314C-2 PN/DP STEP 7 as of V5.5 with HSP 191

    You have downloaded the sample projects from the Internet or have the CD of sampleprojects included with the Technological Functions operating instructions.

    You have set up a project for the S7-300 station. The PG is connected to the CPU. The CPU is correctly connected to a power supply. I/O wiring is not required for this sample.

    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 adhereto the applicable safety and accident prevention regulations, for example IEC 204(emergency stop systems).

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

    Ensure the S7-300 is completely disconnected before wiring!

    You can come into contact with live wires if the PS 307 power supply module is turnedon or the PS power supply cable is connected to the main power supply.

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    9/16

    Preparation

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    Getting Started, 08/2011, A5E00105534-03 9

    Layout of the example2 3

    7 6 5 4

    1

    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

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    10/16

    Preparation

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    10 Getting Started, 08/2011, A5E00105534-03

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    11/16

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    Getting Started, 08/2011, A5E00105534-03 11

    Learning units 33.1 1. Step: Installing the sample projectIntroduction

    When installing the sample project, you have the following options:

    Installing from CD1. Take the CD out of the Technological Functions operating instructions.2. Start the installation program on the CD by double-clicking on the SETUP.EXE file in the

    SETUP folder.

    The installation program is started.

    3. Now follow the instructions in the installation program.

    Installing from the Internet1. Open the directory with the sample projects.2. Start the installation program by double-clicking the SETUP.EXE file.

    The installation program is started.

    3. Now follow the instructions in the installation program.

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    12/16

    Learning units

    3.2 2. Step: Linking to the user program

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    12 Getting Started, 08/2011, A5E00105534-03

    3.2 2. Step: Linking to the user programProcedure

    1. Open the project "ZDt26_04_TF_____31xC_PID" in the catalog ...\Siemens\STEP7\Examples via "File > Open ... > Sample projects" in SIMATIC Manager.

    A window, divided into two sections, opens showing the title of the project.

    2. Double-click the S7 program "Controlling 2 CONT_C".The "Sources", "Blocks" and "Symbols" folders are displayed in the right-hand window.

    3. Double-click on the "Blocks" container.All blocks of the S7 program are displayed.

    4. With the exception of system data, copy all the blocks to your project under "SIMATIC300 Station > CPU 3xx > S7 Program > Blocks".

    Block Name in the toolbar) DescriptionOB 100 RESTART Restart OB

    OB 35 CYC_INT5 Time-controlled OB 100 ms

    SFB 41 CONT_C Continuous-action PID controller

    FB 100 PROC_C Control circuit for continuous controller

    DB 100 DI_PROC_C Instance DB for PROC_C

    DB 101 DI_CONT_C Instance DB for CONT_C

    VAT1 VAT1 Variable table

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    13/16

    Learning units

    3.3 3. Step: Setting parameters

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    Getting Started, 08/2011, A5E00105534-03 13

    3.3 3. Step: Setting parametersProcedure

    1. Start the parameter assignment interface with SIMATIC/STEP7/PID Control ParameterAssignment.

    The input dialog "PID Control" is displayed.

    2. In PID control, open your project with "File > Open". Select instance DB 101 for SFB 41.Acknowledge the dialog with "OK".

    You are returned to the parameter assignment screen form. The configured parametersare displayed. Changes to this sample program are not required.

    3. Close the parameter assignment screen form with "File > Close".The parameter assignment screen form is closed.

    4. In SIMATIC Manager, select "SIMATIC 300 Station > CPU 3xx > S7 Program > Blocks".All blocks of the S7 program are displayed.

    5. Download all of the S7 blocks it contains to your CPU via "PLC > Download" (CPU inSTOP mode).

    The program and configuration are downloaded from the PG to the CPU.

    3.4 4. Step: Trial runProcedure

    1. In the "Blocks" directory, double-click on the variable table "VAT1" in your project.The variable table for monitoring and modifying is displayed.

    2. Go online with "PLC > Connect to > Configured CPU".At the bottom right, you will see that the CPU is set to "STOP" mode.

    3. Activate monitoring with "Variable > Monitor".The current values of the addresses are displayed in the "Status Value" column.

    4. Switch the CPU to RUN.At the bottom right, you will see that the CPU is set to "RUN" mode. The controller isstarted.

    5. Modify the setpoint "SP_INT".You can monitor the output value "OUTV" that is proportional to the setpoint "SP_INT".

    6. Call the STEP 7 tool PID Control (see step 3). Select instance DB 101 and click "Online"mode. In the "Test" menu, select and start the "Curve plotter" function.

    You can view the graphic profile of some of the control variables (actual value, setpoint,control offset, etc.).

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    14/16

    Learning units

    3.4 4. Step: Trial run

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    14 Getting Started, 08/2011, A5E00105534-03

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    15/16

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    Getting Started, 08/2011, A5E00105534-03 15

    Further Information 4

    Diagnostics/Correction of ErrorsIncorrect operator input or inconsistent configuration data may lead to errors.

    For information on how to analyze such errors and messages, refer to the S7-300documentation.

    Example:The "ZEn26_04_TF_____31xC_PID" project contains further samples you can use fororientation. You can customize all samples according to your personal applications.

  • 8/12/2019 s7300 Cpu31xc Closed Loop Control Getting Started en-US en-US

    16/16

    Further Information

    Getting Started - Commissioning a CPU 31xC: Closed-loop control

    16 Getting Started, 08/2011, A5E00105534-03