introduction simatic s7-300 testing the user program · pdf filesm331; ai 8x12 bit getting...

Download Introduction SIMATIC S7-300 Testing the user program · PDF fileSM331; AI 8x12 Bit Getting Started part 1: 4 -20mA Getting Started, 05/2008, A5E00253410-04 3 Table of contents 1 Preface

If you can't read please download the document

Upload: dangque

Post on 06-Feb-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • SIMATIC S7-300 SM331; AI 8x12 Bit Getting Started part 1: 4 -20mA

    ____________________________

    ________________________________________________________________________________________________________________

    Preface 1

    Requirements

    2

    Introduction

    3

    Mechanical setup of the example station

    4

    Electrical connection

    5

    Configuration of the SIMATIC Manager

    6

    Testing the user program

    7

    Diagnostic interrupt

    8

    Hardware interrupt

    9

    Appendix

    A

    SIMATIC

    S7-300 SM331; AI 8x12 Bit Getting Started part 1: 4 -20mA

    Getting Started

    05/2008 A5E00253410-04

  • Legal information Legal information Warning notice system

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

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

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

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

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

    NOTICE indicates that an unintended result or situation can occur if the corresponding information is not taken into account.

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

    Qualified Personnel The device/system may only be set up and used in conjunction with this documentation. Commissioning and operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes in this documentation qualified persons are defined as persons who are authorized to commission, ground and label devices, systems and circuits in accordance with established safety practices and standards.

    Proper use of Siemens products Note the following:

    WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be adhered to. The information in the relevant documentation must be observed.

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

    Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

    Siemens AG Industry Sector Postfach 48 48 90026 NRNBERG GERMANY

    A5E00253410-04 08/2008

    Copyright Siemens AG 2008. Technical data subject to change

  • SM331; AI 8x12 Bit Getting Started part 1: 4 -20mA Getting Started, 05/2008, A5E00253410-04 3

    Table of contents

    1 Preface ...................................................................................................................................................... 5

    1.1 General ..........................................................................................................................................5 2 Requirements ............................................................................................................................................ 7

    2.1 Basics.............................................................................................................................................7 3 Introduction................................................................................................................................................ 9

    3.1 Example of an application..............................................................................................................9 4 Mechanical setup of the example station ................................................................................................. 11

    4.1 Mounting the example station......................................................................................................11 4.2 Mounting of analog module components.....................................................................................13 4.2.1 General ........................................................................................................................................13 4.2.2 Components of the SM331 ..........................................................................................................14 4.2.3 Features of the analog modules ..................................................................................................15 4.2.4 Measuring range modules ...........................................................................................................16 4.2.5 Mounting the SM331 module .......................................................................................................18

    5 Electrical connection................................................................................................................................ 19 5.1 Overview ......................................................................................................................................19 5.2 Wiring the power supply module and the CPU............................................................................20 5.3 Wiring of the analog module ........................................................................................................22 5.3.1 Requirement.................................................................................................................................22 5.3.2 Current transducer wiring - principle............................................................................................22 5.3.3 Wiring of the analog module ........................................................................................................23 5.3.4 Test ..............................................................................................................................................26

    6 Configuration of the SIMATIC Manager ................................................................................................... 27 6.1 Creating a new STEP7 project.....................................................................................................27 6.1.1 Creating a new project .................................................................................................................27 6.1.2 CPU selection ..............................................................................................................................29 6.1.3 Defining the basic user program..................................................................................................30 6.1.4 Assigning the project name..........................................................................................................31 6.1.5 Result S7 project is created .........................................................................................................32 6.2 Hardware configuration................................................................................................................33 6.2.1 Creating the hardware configuration............................................................................................33 6.2.2 Adding SIMATIC components......................................................................................................34 6.2.3 Configuring the analog module....................................................................................................36 6.2.4 Test ..............................................................................................................................................39 6.3 STEP 7 user program ..................................................................................................................43 6.3.1 Tasks of the user program...........................................................................................................43 6.3.2 Creating a user program..............................................................................................................44

  • Table of contents

    SM331; AI 8x12 Bit Getting Started part 1: 4 -20mA 4 Getting Started, 05/2008, A5E00253410-04

    7 Testing the user program......................................................................................................................... 51 7.1 Downloading system data and user program ............................................................................. 51 7.2 Visualization of the sensor values............................................................................................... 53 7.3 Analog value representation .................