S7200.pdf

(5579 KB) Pobierz
1
Product Overview
2
Getting Started
3
Installing the S7-200
SIMATIC
4
PLC Concepts
Programming Concepts,
Conventions and Features
5
S7-200 Programmable Controller
System Manual
6
S7-200 Instruction Set
7
Communicating over a Network
Hardware Troubleshooting Guide
and Software Debugging Tools
8
9
Creating a Program for the
Position Module
10
Creating a Program for the
Modem Module
11
Using the USS Protocol Library to
Control a MicroMaster Drive
12
Using the Modbus Protocol
Library
A
Technical Specifications
B
Calculating a Power Budget
C
Error Codes
D
Special Memory (SM) Bits
E
S7-200 Order Numbers
Execution Times for STL
Instructions
F
This manual has the order number:
6ES7298-8FA23-8BH0
S7-200 Quick Reference
Information
G
Index
Edition 05/2003
A5E00212536-02
915366099.046.png 915366099.047.png 915366099.048.png 915366099.049.png 915366099.001.png 915366099.002.png 915366099.003.png 915366099.004.png 915366099.005.png 915366099.006.png 915366099.007.png 915366099.008.png 915366099.009.png 915366099.010.png 915366099.011.png 915366099.012.png 915366099.013.png 915366099.014.png 915366099.015.png 915366099.016.png 915366099.017.png 915366099.018.png 915366099.019.png 915366099.020.png 915366099.021.png
Contents
Safety Guidelines
This manual contains notices which you should observe to ensure your own personal safety, as well as to
protect the product and connected equipment. These notices are highlighted in the manual by a warning
triangle and are marked as follows according to the level of danger:
Danger
Danger indicates an imminently hazardous situation which, if not avoided, will result in death or serious
injury.
Warning
Warning indicates a potentially hazardous situation which, if not avoided, could result in death or serious
injury.
Caution
Caution used with the safety alert symbol indicates a potentially hazardous situation which, if not
avoided, may result in minor or moderate injury.
Caution
Caution used without the safety alert symbol indicates a potentially hazardous situation which, if not
avoided, may result in property damage.
Notice
Notice indicates a potential situation which, if not avoided, may result in an undesirable result or state.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are
defined as persons who are authorized to commission, to ground, and to tag circuits, equipment, and sys-
tems in accordance with established safety practices and standards.
Correct Usage
Note the following:
Warning
This device and its components may only be used for the applications described in the catalog or the
technical descriptions, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up, and installed
correctly, and operated and maintained as recommended.
Trademarks
SIMATIC R , SIMATIC HMI R and SIMATIC NET R are registered trademarks of SIEMENS AG.
Some of other designations used in these documents are also registered trademarks; the owner’s rights may be violated
if they are used by third parties for their own purposes.
Copyright Siemens AG 2003 All rights reserved
The reproduction, transmission or use of this document or its contents is not
permitted without express written authority. Offenders will be liable for damages.
All rights, including rights created by patent grant or registration of a utility model
or design, are reserved.
Disclaimer of Liability
We have checked the contents of this manual for agreement with the hardware and
software described. Since deviations cannot be precluded entirely, we cannot gua-
rantee full agreement. However, the data in this manual are reviewed regularly and
any necessary corrections included in subsequent editions. Suggestions for impro-
vement are welcomed.
Siemens AG
Bereich Automation and Drives
Geschaeftsgebiet Industrial Automation Systems
Postfach 4848, D- 90327 Nuernberg
E Siemens AG 2003
Technical data subject to change.
ii
Siemens Aktiengesellschaft
6ES7298-8FA23-8BH0
915366099.022.png 915366099.023.png 915366099.024.png
 
Preface
The S7-200 series is a line of micro-programmable logic controllers (Micro PLCs) that can control a
variety of automation applications. Compact design, low cost, and a powerful instruction set make the
S7-200 a perfect solution for controlling small applications. The wide variety of S7-200 models and the
Windows-based programming tool give you the flexibility you need to solve your automation problems.
Audience
This manual provides information about installing and programming the S7-200 Micro PLCs and is
designed for engineers, programmers, installers, and electricians who have a general knowledge of
programmable logic controllers.
Scope of the Manual
The information contained in this manual pertains in particular to the following products:
- S7-200 CPU models: CPU 221, CPU 222, CPU 224, CPU 226, and CPU 226XM
- S7-200 EM 22x expansion modules
- STEP 7--Micro/WIN, version 3.2, a 32-bit programming software package for the S7-200
STEP 7--Micro/WIN Instruction Libraries and TP-Designer for TP070, Version 1.0, a set of
software tools for customers who use an S7-200 with other components, such as the TP070
Touch Panel, Modbus, or a MicroMaster drive
-
Standards Compliance
The SIMATIC S7-200 series meets the following standards:
- European Community (CE) Low Voltage Directive 73/23/EEC
EN 61131--2: Programmable Controllers -- Equipment requirements
European Community (CE) EMC Directive 89/336/EEC
Electromagnetic emissions standard
EN 61000--6--3: residential, commercial, and light industry
EN 61000--6--4: industrial environment
Electromagnetic immunity standards
EN 61000--6--2: industrial environment
-
- Underwriters Laboratories, Inc.
UL 508 Listed (Industrial Control Equipment) Registration number E75310
- Canadian Standards Association: CSA C22.2 Number 142 (Process Control Equipment)
- Factory Mutual Research: FM Class I, Division 2, Groups A, B, C, & D Hazardous Locations, T4A
and Class I, Zone 2, IIC, T4
Refer to Appendix A for compliance information.
Tip
The SIMATIC S7-200 series meets the CSA standard.
The cULus logo indicates that the S7-200 has been examined and certified by Underwriters
Laboratories (UL) to standards UL 508 and CSA 22.2 No. 142.
iii
915366099.025.png 915366099.026.png 915366099.027.png 915366099.028.png 915366099.029.png 915366099.030.png
 
Contents
Maritime Approvals
The S7-200 products are periodically submitted for special agency approvals related to specific markets
and applications. This table identifies the agency and certificate number that the S7-200 products have
been approved for. Not all S7-200 products in this manual have been approved for these special agency
approvals. Consult your local Siemens representative if you need additional information related to the
latest listing of exact approvals by part number.
Agency
Certificate Number
Lloyds Register of Shipping (LRS)
99 / 20018(E1)
American Bureau of Shipping (ABS)
01--HG20020--PDA
Germanischer Lloyd (GL)
12 045 -- 98 HH
Det Norske Veritas (DNV)
A--8071
Bureau Veritas (BV)
09051 / A2 BV
Nippon Kaiji Kyokai (NK)
A--534
How to Use This Manual
If you are a first-time (novice) user of S7-200 Micro PLCs, you should read the entire S7-200
Programmable Controller System Manual . If you are an experienced user, refer to the table of contents
or index to find specific information.
The S7-200 Programmable Controller System Manual is organized according to the following topics:
- Chapter 1 (Product Overview) provides an overview of some of the features of the S7-200 family
of Micro PLC products.
- Chapter 2 (Getting Started) provides a tutorial for creating and downloading a sample control
program to an S7-200.
- Chapter 3 ( Installing the S7-200) provides the dimensions and basic guidelines for installing the
S7-200 CPU modules and expansion I/O modules.
- Chapter 4 ( PLC Concepts) provides information about the operation of the S7-200.
- Chapter 5 ( Programming Concepts, Conventions, and Features) provides information about the
features of STEP 7--Micro/WIN, the program editors and types of instructions (IEC 1131-3 or
SIMATIC), S7-200 data types, and guidelines for creating programs.
- Chapter 6 (S7-200 Instruction Set) provides descriptions and examples of programming
instructions supported by the S7-200.
- Chapter 7 (Communicating over a Network) provides information for setting up the different
network configurations supported by the S7-200.
- Chapter 8 ( Hardware Troubleshooting Guide and Software Debugging Tools) provides information
for troubleshooting problems with the S7-200 hardware and about the STEP 7--Micro/WIN
features that help you debug your program.
- Chapter 9 ( Creating a Program for the Position Module) provides information about the
instructions and wizard used to create a program for the EM 253 Position module.
- Chapter 10 ( Creating a Program for the Modem Module) provides information about the
instructions and wizard used to create a program for the EM 241 Modem module.
- Chapter 11 ( Using the USS Protocol Library to Control a MicroMaster Drive) provides information
about the instructions used to create a control program for a MicroMaster drive. It also provides
information about how to configure the MicroMaster 3 and MicroMaster 4 drives.
- Chapter 12 (Using the Modbus Protocol Library) provides information about the instructions used
to create a program that uses the Modbus protocol for communications.
- Appendix A ( Technical Specifications) provides the technical information and data sheets about
the S7-200 hardware.
The other appendices provide additional reference information, such as descriptions of the error codes,
descriptions of the Special Memory (SM) area, part numbers for ordering S7-200 equipment, and STL
instruction execution times.
iv
915366099.031.png 915366099.032.png 915366099.033.png 915366099.034.png 915366099.035.png 915366099.036.png 915366099.037.png 915366099.038.png 915366099.039.png 915366099.040.png 915366099.041.png 915366099.042.png 915366099.043.png 915366099.044.png
Preface
Additional Information and Assistance
Information about the S7-200 and STEP 7 -Micro/WIN
In addition to this manual, STEP 7--Micro/WIN provides extensive online help for getting started with
programming the S7-200. Included with the purchase of the STEP 7--Micro/WIN software is a free
documentation CD. On this CD you can find application tips, an electronic version of this manual and
other information.
Online Help
Help is only a keystroke away! Pressing F1 accesses the extensive online help for STEP 7--Micro/WIN.
The online help includes useful information about getting started with programming the S7-200, as well
as many other topics.
Electronic Manual
An electronic version of this S7-200 System Manual is available on the documentation CD. You can
install the electronic manual onto your computer so that you can easily access the information in the
manual while you are working with the STEP 7--Micro/WIN software.
Programming Tips
The documentation CD includes Programming Tips, a set of application examples with sample
programs. Reviewing or modifying these examples can help you find efficient or innovative solutions for
your own application. You can also find the most current version of Programming Tips on the S7-200
Internet site.
Internet: www.siemens.com/S7--200
For additional information about Siemens products and services, technical support, frequently asked
questions (FAQs), product updates, or application tips, refer to the following Internet addresses:
- www.ad.siemens.de for general Siemens information
This Siemens Automation & Drives Internet site includes information about the SIMATIC product
line and other products available from Siemens.
- www.siemens.com/S7--200 for S7-200 product information
The S7-200 Internet site includes frequently asked questions (FAQs), Programming Tips
(application examples and sample programs), information about newly released products, and
product updates or downloads.
v
915366099.045.png
Zgłoś jeśli naruszono regulamin