Siemens SIMATIC S7-200 System Manual

Type
System Manual
Preface, Contents
Product Overview
1
Getting Started
2
Installing the S7-200
3
PLC Concepts
4
Programming Concepts,
Conventions and Features
5
S7-200 Instruction Set
6
Communicating over a Network
7
Hardware Troubleshooting Guide
and Software Debugging Tools
8
Open Loop Motion Control with
the S7-200
9
Creating a Program for the
Modem Module
10
Using the USS Protocol Library to
Control a MicroMaster Drive
11
Using the Modbus Protocol
Library
12
Using Recipes
13
Using Data Logs
14
PID Auto-Tune and the PID
Tuning Control Panel
15
Appendices
Index
S7-200
Programmable Controller
System Manual
SIMATIC
Edition 08/2008
A5E00307987--04
This manual has the order number:
6ES7298-8FA24--8BH0
ii
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 systems 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
SIMATICR, SIMATIC HMIR and SIMATIC NETR 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.
Wehave checked the contentsof th is manual foragreem entwith th e hardware and
software described. Since deviations cannot be precluded entirely, we cannot
guaranteefu ll agreement.However,the datain th is manual are rev iewed regularly
and any necessary corrections include d in subsequent editions. Suggestions for
improvement are welcomed.
Disclaimer of LiabilityCopyright Siemens AG 2008 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.
Allrights, including rightscreated by patentgrant or registration of a utility model
or design, are reserved.
Siemens AG
Bereich Automation and Drives
Geschaeftsgebiet Industrial Automation Systems
Postfach 4848, D- 90327 Nuernberg
E Siemens AG 2008
Technical data subject to change.
Siemens Aktiengesellschaft 6ES7298-8FA24-8BH0
iii
Preface
Purpose of the manual
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 y our
automation problems.
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.
Required Basic Knowledge
To understand this manual, it is necessary to have a general knowledge of automation and
programmable logic controllers.
Scope of the Manual
This manual is valid for STEP 7--Micro/WIN, version 4.0 and the S7-200 CPU product family. For
a complete list of the S7-200 products and order numbers described in this manual, see
AppendixA.
Changes compared to the previous version
This manual has been revised to include two new analog expansion modules and one additional
appendix.
- EM 231 Analog Input RTD, 4 Inputs
- EM 231 Analog Input Thermocouple 8 Inputs
- Appendix H, S7-200CN Products
Certification
The SIMATIC S7-200 products have the following certification:
- 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: Class Number 3600, Class Number 3611, FM Class I, Division 2,
Groups A, B, C, & D Hazardous Locations, T4A and Class I, Zone 2, IIC, T4
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.
S7-200 Programmable Controller System Manual
iv
CE Labeling
Refer to the General Technical Specifications in Appendix A for more information.
C-Tick
The SIMATIC S7-200 products are compliant with requirements of the AS/NZS 2064 (Australian)
standard.
Standards:
The SIMATIC S7-200 products fulfill the requirement and criteria of IEC 61131--2, Programmable
controllers -- Equipment requirements.
Refer to Appendix A for additional compliance information.
Place of this Documentation in the Information Environment
Product
Family
Documentation Order Number
S7-200 S7-200 Point-to-Point Interface Communication Manual (English/German) 6ES7 298--8GA00--8XH0
SIMATIC Text Display User Manual (included on the STEP 7--Micro/WIN
documentation CD)
none
HMI device OP 73micro, TP 177micro (WinCC Flexible) Operating
Instructions (English)
6AV6 691--1DF01--0AB0
SIMATIC HMI WinCC flexible 2005 Micro User’s Manual (English) 6AV6 691--1AA01--0AB0
SIMATIC NET CP 243--2 AS-Interface Master Manual (English) 6GK7 243--2AX00--8BA0
SIMATIC NET CP 243--1 Communications processor of Industrial Ethernet
Technical Manual (English)
J31069--D0428--U001--A2--7618
SIMATIC NET CP 243--1 IT Communications Processor of Industrial
Ethernet and Information Technology Technical Manual (English)
J31069--D0429--U001--A2--7618
SIMATIC NET S7Beans / Applets for IT--CPs Programming Tips (English) C79000--G8976--C180--02
SIMATIC NET GPRS/GSM--Modem SINAUT MD720--3 System manual
(English)
C79000--G8976--C21 1
SIMATIC NET SINAUT MICRO SC System manual (English) C79000--G8900--C210
SIWAREX MS Device Manual (English) (included with device) none
S7-200 Programmable Controller System Manual (English) 6ES7 298--8FA24--8BH0
Preface
v
Finding Your Way
If you are a first-time user of S7-200 Micro PLCs, you should read the entire S7-200
Programmable Controller System Manual. If y ou 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 (Open Loop Motion Control with the S7-200) provides information about three
methods of open loop motion control: Pulse Width Modulation, Pulse Train Output, and the
EM 253 Position Control 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.
- Chapter 13 (Using Recipes) provides information about organizing and loading automation
program recipes in the memory cartridge.
- Chapter 14 (Using Data Logs) provides information about storing process measurement
data in the memory cartridge.
- Chapter 15 (PID Auto-Tune and the PID Tuning Control Panel) provides information about
using these features to greatly enhance the utility and ease of use of the PID function
provided by the S7-200.
- 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, STL instruction execution times, and S7-200CN product information.
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.
S7-200 Programmable Controller System Manual
vi
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 c an 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.
Recycling and Disposal
Please contact a company certified in the disposal of electronic scrap for environmentally safe
recycling and disposal of your device.
Additional Support
Local Siemens Sales Office or Distributor
For assistance in answering any technical questions, for training on the S7-200 products, or for
ordering S7-200 products, contact your Siemens distributor or sales office. Because your sales
representatives are technically trained and have the most specific knowledge about your
operations, process and industry, as well as about the individual Siemens products that you are
using, they can provide the fastest and most efficient answers to any problems that you might
encounter.
Service & Support on the Internet
In addition to our documentation, we offer our Know-how online on the Internet at:
http://www
.siemens.com/automation/service&support
where you will find the following:
- 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.
- The newsletter, which constantly provides you with up-to-date information on your products.
- The right documents v ia our Search function in Service & Support.
- A forum, where users and experts from all over the world exchange their experiences.
- Your local representative for Automation & Drives.
- Information on field service, repairs, spare parts and more under “Services”.
Technical Services
The highly trained staff of the S7-200 Technical Services center is also available to help you solve
any problems that you might encounter. You can call on them 24 hours a day, 7 days a week.
Preface
vii
A&D Technical Support
Worldwide, available 24 hours a day:
Johnson City
Nuernberg
Beijing
Technical Support
Worldwide (Nuernberg)
Technical Support
24 hours a day, 365 days a year
Phone: +49 (180) 5050-222
Fax: +49 (180) 5050-223
mailto:adsupport@siemens.com
GMT: +1:00
United States (Johnson City)
Technical Support and
Authorization
Local time: Mon.-Fri.
8:00 AM to 5:00 PM
Phone: +1 (423) 262 2522
+1 (800) 333--7421 (USA only)
Fax: +1 (423) 262 2289
mailto:simatic.hotline
@
sea.siemens.com
Asia / Australia (Beijing)
Technical Support and
Authorization
Local time: Mon.-Fri.
8:00 AM to 5:00 PM
Phone: +86 10 64 75 75 75
Fax: +861064747474
mailto:adsupport.asia@siemens.com
GMT: +8:00
Europe / Africa (Nuernberg)
Authorization
Local time: Mon.-Fri.
8:00 AM to 5:00 PM
Phone: +49 (180) 5050--222
Fax: +49 (180) 5050-223
mailto:adsupport@siemens.com
GMT: +1:00
m
a
i
l
t
o
:
s
i
m
a
t
i
c
.
h
o
t
l
i
n
e
@
s
e
a
.
s
i
e
m
e
n
s
.
c
o
m
GMT: --5:00
The languages of the SIMATIC Hotlines and the authorization hotline are generally German and English.
S7-200 Programmable Controller System Manual
viii
ix
Contents
1 Product Overview 1.......................................................
What’s New? 2....................................................................
S7-200 CPU 2....................................................................
S7-200 Expansion Modules 4.......................................................
STEP 7--Micro/WIN Programming Package 5..........................................
Communications Options 5.........................................................
Display Panels 6..................................................................
2 Getting Started 7..........................................................
Connecting the S7-200 CPU 8......................................................
Creating a Sample Program 10.......................................................
Downloading the Sample Program 14.................................................
Placing the S7-200 in RUN Mode 14..................................................
3 Installing the S7-200 15.....................................................
Guidelines for Installing S7-200 Devices 16............................................
Installing and Removing the S7-200 Modules 17........................................
Guidelines for Grounding and Wiring 20...............................................
4 PLC Concepts 23...........................................................
Understanding How the S7-200 Executes Your Control Logic 24..........................
Accessing the Data of the S7-200 27..................................................
Understanding How the S7-200 Saves and Restores Data 36.............................
Selecting the Operating Mode for the S7-200 CPU 40....................................
Using the S7-200 Explorer 41........................................................
Features of the S7-200 41...........................................................
5 Programming Concepts, Conventions, and Features 51.......................
Guidelines for Designing a Micro PLC System 52.......................................
Basic Elements of a Program 53......................................................
Using STEP 7--Micro/WIN to Create Your Programs 55..................................
Choosing Between the SIMATIC and IEC 1131--3 Instruction Sets 57......................
Understanding the Conventions Used by the Program Editors 58..........................
Using Wizards To Help You Create Your Control Program 60..............................
Handling Errors in the S7-200 60.....................................................
Assigning Addresses and Initial Values in the Data Block Editor 62........................
Using the Symbol Table for Symbolic Addressing of Variables 62..........................
Using Local Variables 63............................................................
Using the Status Chart to Monitor Your Program 63......................................
Creating an Instruction Library 64.....................................................
Features for Debugging Your Program 64..............................................
S7-200 Programmable Controller System Manual
x
6 S7-200 Instruction Set 65...................................................
Conventions Used to Describe the Instructions 67.......................................
S7-200 Memory Ranges and Features 68..............................................
Bit Logic Instructions 70.............................................................
Contacts 70...................................................................
Coils 73.......................................................................
Logic Stack Instructions 75......................................................
Set and Reset Dominant Bistable Instructions 77....................................
Clock Instructions 78................................................................
Communications Instructions 81......................................................
Network Read and Network Write Instructions 81....................................
Transmit and Receive Instructions (Freeport) 86....................................
Get Port Address and Set Port Address Instructions 95..............................
Compare Instructions 96............................................................
Comparing Numerical Values 96..................................................
Compare String 98.............................................................
Conversion Instructions 99...........................................................
Standard Conversion Instructions 99..............................................
ASCII Conversion Instructions 103.................................................
String Conversion Instructions 107.................................................
Encode and Decode Instructions 112...............................................
Counter Instructions 113..............................................................
SIMATIC Counter Instructions 113.................................................
IEC Counter Instructions 116......................................................
High-Speed Counter Instructions 118...................................................
Pulse Output Instruction 133..........................................................
Math Instructions 140................................................................
Add, Subtract, Multiply, and Divide Instructions 140...................................
Multiply Integer to Double Integer and Divide Integer with Remainder 142................
Numeric Functions Instructions 143................................................
Increment and Decrement Instructions 144..........................................
Proportional/Integral/Derivative (PID) Loop Instruction 145.................................
Interrupt Instructions 153.............................................................
Logical Operations Instructions 161....................................................
Invert Instructions 161............................................................
AND, OR, and Exclusive OR Instructions 162........................................
Move Instructions 164................................................................
Move Byte, Word, Double Word, or Real 164........................................
Move Byte Immediate (Read and Write) 165.........................................
Block Move Instructions 166......................................................
Program Control Instructions 167......................................................
Conditional End 167.............................................................
Stop 167.......................................................................
Watchdog Reset 167.............................................................
For--Next Loop Instructions 169....................................................
Jum
p Instructions 171............................................................
Sequence Control Relay (SCR) Instructions 172.....................................
Diagnostic LED Instruction 178....................................................
Contents
xi
Shift and Rotate Instructions 179.......................................................
Shift Right and Shift Left Instructions 179............................................
Rotate Right and Rotate Left Instructions 179........................................
Shift Register Bit Instruction 181...................................................
Swap Bytes Instruction 183.......................................................
String Instructions 184...............................................................
Table Instructions 189................................................................
AddToTable 189................................................................
First-In-First-Out and Last-In-First-Out 190..........................................
Memory Fill 192.................................................................
Table Find 193..................................................................
Timer Instructions 196................................................................
SIMATIC Timer Instructions 196...................................................
IEC Timer Instructions 201........................................................
Interval Timers 203..............................................................
Subroutine Instructions 204...........................................................
7 Communicating over a Network 209..........................................
Understanding the Basics of S7-200 Network Communications 210.........................
Selecting the Communications Protocol for Your Network 214..............................
Installing and Removing Communications Interfaces 220..................................
Building Your Network 221............................................................
Creating User-Defined Protocols with Freeport Mode 226.................................
Using Modems and STEP 7 --Micro/WIN with Your Network 228............................
Advanced Topics 233................................................................
Configuring the RS-232/PPI Multi-Master Cable for Remote Operation 239...................
8 Hardware Troubleshooting Guide and Software Debugging Tools 243...........
Features for Debugging Your Program 244..............................................
Displaying the Program Status 246.....................................................
Using a Status Chart to Monitor and Modify the Data in the S7-200 247......................
Forcing Specific Values 248...........................................................
Running Your Program for a Specified Number of Scans 248..............................
Hardware Troubleshooting Guide 249..................................................
9 Open Loop Motion Control with the S7-200 251................................
Overview 252.......................................................................
Using the PWM (Pulse Width Modulation) Output 253.....................................
Basic Information for Open Loop Position Control Using Steppers or Servos 255..............
Instructions Created by the Position Control Wizard 260...................................
Error Codes for the PTO Instructions 264...............................................
Features of the Position Module 265...................................................
Configuring the Position Module 267...................................................
Instructions Created by the Position Control Wizard for the Position Module 273..............
Sample Programs for the Position Module 285...........................................
Monitoring the Position Module with the EM 253 Control Panel 290.........................
Error Codes for the Position Module and the Position Instructions 292.......................
Advanced Topics 294................................................................
Understanding the RP Seek Modes Supported by the Position Module 303..................
S7-200 Programmable Controller System Manual
xii
10 Creating a Program for the Modem Module 307................................
Features of the Modem Module 308....................................................
Using the Modem Expansion Wizard to Configure the Modem Module 314...................
Overview of Modem Instructions and Restrictions 318....................................
Instructions for the Modem Module 319.................................................
Sample Program for the Modem Module 323............................................
S7-200 CPUs that Support Intelligent Modules 323.......................................
Special Memory Location for the Modem Module 323.....................................
Advanced Topics 325................................................................
Messaging Telephone Number Format 327..............................................
Text Message Format 328............................................................
CPU Data Transfer Message Format 329...............................................
11 Using the USS Protocol Library to Control a MicroMaster Drive 331.............
Requirements for Using the USS Protocol 332...........................................
Calculating the Time Required for Communicating with the Drive 332.......................
Using the USS Instructions 333........................................................
Instructions for the USS Protocol 334...................................................
Sample Programs for the USS Protocol 341.............................................
USS Execution Error Codes 342.......................................................
Connecting and Setting Up the MicroMaster Series 3 Drive 342............................
Connecting and Setting Up the MicroMaster Series 4 Drive 345............................
12 Using the Modbus Protocol Library 347.......................................
Overview 348.......................................................................
Requirements for Using Modbus Protocol 348...........................................
Initialization and Execution Time for Modbus Protocol 349.................................
Modbus Addressing 350..............................................................
Using the Modbus Master Instructions 351..............................................
Using the Modbus Slave Instructions 352...............................................
Instructions for the Modbus Protocol 353................................................
Advanced Topics 362................................................................
13 Using Recipes 365...........................................................
Overview 366.......................................................................
Recipe Definition and Terminology 367.................................................
Using the Recipe Wizard 367..........................................................
Instructions Created by the Recipe Wizard 371..........................................
14 Using Data Logs 373........................................................
Overview 374.......................................................................
Using the Data Log Wizard 375........................................................
Instruction Created by the Data Log Wizard 379..........................................
15 PID Auto-Tune and the PID Tuning Control Panel 381..........................
Understanding the PID Auto-Tune 382..................................................
Expanded Loop Table 382............................................................
Prerequisites 385....................................................................
Auto-Hysteresis and Auto-Deviation 385................................................
Auto-Tune Sequence 386.............................................................
Contents
xiii
Exception Conditions 387.............................................................
Notes Concerning PV Out-of-Range (Result Code 3) 387..................................
PID Tuning Control Panel 388.........................................................
A Technical Specifications 391.................................................
General Technical Specifications 392...................................................
CPU Specifications 396..............................................................
Digital Expansion Modules Specifications 405...........................................
Analog Expansion Modules Specifications 412...........................................
Thermocouple and RTD Expansion Modules Specifications 424............................
EM 277 PROFIBUS--DP Module Specifications 438......................................
EM 241 Modem Module Specifications 450..............................................
EM 253 Position Module Specifications 452.............................................
(CP 243--1) Ethernet Module Specifications 458.........................................
(CP 243--1 IT) Internet Module Specifications 460........................................
(CP 243--2) AS --Interface Module Specifications 463......................................
Optional Cartridges 465..............................................................
I/O Expansion Cable 466.............................................................
RS-232/PPI Multi-Master Cable and USB/PPI Multi-Master Cable 467......................
Input Simulators 471.................................................................
B Calculating a Power Budget 473..............................................
C Error Codes 477.............................................................
Fatal Error Codes and Messages 478..................................................
Run-Time Programming Problems 479.................................................
Compile Rule Violations 480..........................................................
D Special Memory (SM) Bits 481................................................
SMB0: Status Bits 482...............................................................
SMB1: Status Bits 482...............................................................
SMB2: Freeport Receive Character 483................................................
SMB3: Freeport Parity Error 483.......................................................
SMB4: Queue Overflow 483...........................................................
SMB5: I/O Status 484................................................................
SMB6: CPU ID Register 484..........................................................
SMB7: Reserved 484................................................................
SMB8 to SMB21: I/O Module ID and Error Registers 485..................................
SMW22 to SMW26: Scan Times 486...................................................
SMB28 and SMB29: Analog Adjustment 486............................................
SMB30 and SMB130: Freeport Control Registers 486.....................................
SMB31 and SMW32: Permanent Memory (EEPROM) Write Control 487.....................
SMB34 and SMB35: Time Interval Registers for Timed Interrupts 487.......................
SMB36 to SMB65: HSC0, HSC1, and HSC2 Register 487.................................
SMB66 to SMB85: PTO/PWM Registers 489............................................
SMB86 to SMB94, and SMB186 to SMB194: Receive Message Control 490.................
SMW98: Errors on the Expansion I/O Bus 491...........................................
SMB130: Freeport Control Register (see SMB30) 491....................................
SMB131 to SMB165: HSC3, HSC4, and HSC5 Register 491...............................
SMB166 to SMB185: PTO0, PTO1 Profile Definition Table 492.............................
S7-200 Programmable Controller System Manual
xiv
SMB186 to SMB194: Receive Message Control (see SMB86 to SMB94) 492.................
SMB200 to SMB549: Intelligent Module Status 493.......................................
E S7-200 Order Numbers 495...................................................
F Execution Times for STL Instructions 499.....................................
G S7-200 Quick Reference Information 505......................................
H S7-200CN Products 511......................................................
Certifications and Approvals for S7-200CN Products 512..................................
S7-200CN Products 513..............................................................
1
Product Overview
The S7-200 series of micro-programmable logic controllers (Micro PLCs) can control a wide
variety of devices to support y our automation needs.
The S7-200 monitors inputs and changes outputs as controlled by the user program, which can
include Boolean logic, counting, timing, complex math operations, and communications with other
intelligent devices. The compact design, flexible configuration, and powerful instruction set
combine to make the S7-200 a perfect solution for c ontrolling a wide v ariety of applications.
In This Chapter
What’s New? 2....................................................................
S7-200 CPU 2....................................................................
S7-200 Expansion Modules 4.......................................................
STEP 7--Micro/WIN Programming Package 5..........................................
Communications Options 5.........................................................
Display Panels 6..................................................................
S7-200 Programmable Controller System Manual
2
Whats New?
The new features of the SIMATIC S7-200 include two new analog expansion modules:
- EM 231 Analog Input RTD, 4 Inputs
- EM 231 Analog Input Thermocouple 8 Inputs
- Appendix H, S7-200CN Products
S7-200 CPU
The S7-200 CPU combines a microprocessor, an integrated power supply, input circuits, and
output circuits in a compact housing to create a powerful Micro PLC. See Figure 1-1. After you
have downloaded your program, the S7-200 contains the logic required to monitor and control the
input and output devices in your application.
I
/
O
L
EDs
Status LEDs:
System Fault/Diagnostic
(SF/DIAG)
RUN
STOP
Optional cartridge:
Memory Cartridge
Real-time Clock
Battery
Communications port
Terminal connector
(removable on CPU 224, CPU 224XP
and CPU 226)
Clip for installation on a standard (DIN) rail
A
ccess door:
Mode s elector switch (RUN/STOP)
Analog adjustment potentiometer(s)
Expansion port (for most CPUs)
Figure 1-1 S7-200 Micro PLC
Product Overview Chapter 1
3
Siemens provides different S7-200 CPU models with a diversity of features and capab ilities that
help you create effective solutions for your varied applications. Table 1-1 briefly compares some of
the features of the CPU. For detailed information about a specific CPU, see Appendix A.
Table 1-1 Comparison of the S7-200 CPU Models
Feature CPU 221 CPU 222 CPU 224
CPU 224XP
CPU 224XPsi
CPU 226
Physical size (mm) 90 x 80 x 62 90 x 80 x 62 120.5 x 80 x 62 140 x 80 x 62 190 x 80 x 62
Program memory:
with run mode edit
without run mode edit
4096 bytes
4096 bytes
4096 bytes
4096 bytes
8192 bytes
12288 bytes
12288 bytes
16384 bytes
16384 bytes
24576 bytes
Data memory 2048 bytes 2048 bytes 8192 bytes 10240 bytes 10240 bytes
Memory backup 50 hours
typical
50 hours
typical
100 hours
typical
100 hours
typical
100 hours
typical
Local on-board I/O
Digital
Analog
6In/4Out
--
8In/6Out
--
14 In/10 Out
--
14 In/10 Out
2In/1Out
24 In/16 Out
--
Expansion modules 0 modules 2 modules
1
7 modules
1
7 modules
1
7 modules
1
High-speed counters
Single phase
Two phase
4at30kHz
2at20kHz
4at30kHz
2at20kHz
6at30kHz
4at20kHz
4at30kHz
2 at 200 kHz
3at20kHz
1 at 100 kHz
6at30kHz
4at20kHz
Pulse outputs (DC) 2at20kHz 2at20kHz 2at20kHz 2 at 100 kHz 2at20kHz
Analog adjustments 1 1 2 2 2
Real-time clock Cartridge Cartridge Built-in Built-in Built-in
Communications ports 1 RS--485 1 RS--485 1 RS--485 2 RS--485 2 RS--485
Floating-point math Yes
Digital I/O image size 256 (128 in, 128 out)
Boolean execution
speed
0.22 microseconds/instruction
1 Youmustcalculate your powerbudget to determinehowmuc h power(orcurrent)the S7-200CPU canprovideforyourconfiguration.If theCPU
powerbudget is exceeded,youmaynotbeable to connect themaximum numberof modules.SeeAppendixAforCPUand expans ionmodule
power requirements, and Appendix B to calculate your power budget.
S7-200 Programmable Controller System Manual
4
S7-200 Expansion Modules
To better solve your application requirements, the S7-200 family includes a wide v ariety of
expansion modules. You can use these expansion modules to add additional functionality to the
S7-200 CPU. Table 1-2 provides a list of the expansion modules that are currently available. For
detailed information about a s pecific module, see Appendix A.
Table 1-2 S7-200 Expansion Modules
Expansion
Modules
Type
Discrete modules
Input 8xDCIn 8xACIn 16 x DC In
Output
4xDCOut 4xRelays 8xRelay
8xDCOut 8xACOut
Combination 4xDCIn/
4xDCOut
8xDCIn/
8xDCOut
16 x DC In/
16 x DC Out
32 x DC In/
32 x DC Out
4xDCIn/
4xRelay
8xDCIn/
8xRelay
16 x DC In/
16 x Relay
32 x DC In/
32 x Relay
Analog modules
Input
4 x Analog In 8 x Analog In 4 x Thermocouple In 8 x Thermocouple In
2xRTDIn 4xRTDIn
Output 2 x Analog Out 4 x Analog Out
Combination 4 x Analog In
4 x Analog Out
Intelligent modules
Position Modem PROFIBUS--DP
Ethernet Ethernet IT
Other modules
AS--Interface SIWAREX MS
1
1
Detailed information not included in Appendix A. Please refer to your module documentation.
Product Overview Chapter 1
5
STEP 7--Micro/WIN Programming Package
The STEP 7 --Micro/WIN programming package provides a user-friendly environment to develop,
edit, and monitor the logic needed to control your application. STEP 7 --Micro/WIN provides three
program editors for convenience and efficiency in developing the control program for your
application. To help you find the information you need, STEP 7--Micro/WIN provides an extensive
online help system and a documentation CD that contains an electronic version of this manual,
application tips, and other useful information.
Computer Requirements
STEP 7--Micro/WIN runs on either a personal computer or a Siemens programming device, such
as a PG 760. Your computer or programming device should meet the following minimum
requirements:
- Operating system:
Windows 2000, Windows XP, Vista
- At least 350M bytes of free hard
disk space
- Mouse (recommended)
Figure 1-2 STEP 7--Micro/WIN
Installing STEP 7--Micro/WIN
Insert the STEP 7 --Micro/WIN CD into the CD-ROM drive of your computer. The installation wizard
starts automatically and prompts you through the installation process. Refer to the Readme file for
more information about installing STEP 7--Micro/WIN.
Tip
To install STEP 7 --Micro/WIN on a Windows 2000, Windows XP, or Windows Vista operating
system, you must log in with Administrator privileges.
Communications Options
Siemens provides two programming options for connecting your computer to your S7-200: a direct
connection with a PPI Multi-Master cable, or a Communications Processor (CP) card with an MPI
cable.
The PPI Multi-Master programming cable is the most common and economical method of
connecting your computer to the S7-200. This cable c onnects the communications port of the
S7-200 to the serial communications of your computer. The PPI Multi-Master programming cable
can also be used to connect other communications devices to the S7-200.
S7-200 Programmable Controller System Manual
6
Display Panels
Text Display Units
The Text Display (TD) is a display device that can be connected to the S7-200. Using the Text
Display wizard, you can easily program your S7-200 to display text messages and other data
pertaining to your application.
The TD device provides a low cost interface to your application by allowing you to view, monitor,
and change the process variables pertaining to your application.
The S7-200 product family provides four TD devices:
- The TD100C has a 4-line text
display with 2 font choices.
- The TD 200C has a 2-line text
display with 20 characters per line
for a total of 40 characters.
- The TD 200 has a faceplate which
provides four keys with predefined,
set-bit functions and allows up to
eight set-bit functions.
- The TD400C can have a 2- or
TD 100C
TD 200C
TD 200
TD400C
T
h
e
T
D
4
0
0
C
c
a
n
h
a
v
e
a
2
o
r
4-line text display depending on
your font and character choice.
Figure 1-3 Text Display Units
For more information about the Text Display Units, refer to the SIMATIC Text Display (TD) User
Manual on the STEP 7--Micro/WIN docuCD.
The Text Display wizard in STEP 7 --Micro/WIN helps you c onfigure Text Display messages
quickly and easily. To start the Text Display wizard, select the Tools > Text Display Wizard menu
command.
Operator an d Touch Panel Displays
The OP 73micro and TP 177micro
panels are tailored to applications with
SIMATIC S7-200 Micro PLC and provide
operating and monitoring functions for
small-scale machines and plants. Short
configuration and commissioning times,
and their c onfiguration in WinCC flexible
form the highlights of these panels. In
addition, these panels support up to 32
configuration languages and five online
languages, including the Asian and
Cyrillic character sets.
The mounting dimensions of the
Operator Panel OP 73micro with its
graphical 3” display unit are compatible
with OP3 and TD 200.
Touch Panel TP 177micro replaces the
Touch Panel TP 070/TP 170micro. It can
be mounted vertically to accommodate
a
d
d
i
t
i
o
n
a
l
a
p
p
l
i
c
a
t
i
o
n
s
.
T
h
i
s
f
e
a
t
u
r
e
a
d
d
i
t
i
o
n
a
l
a
p
p
l
i
c
a
t
i
o
n
s
.
T
h
i
s
f
e
a
t
u
r
e
enables its use even when space is
restricted.
Figure 1-4 Operator and Touch Panel Displays
Text Display
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514
  • Page 515 515
  • Page 516 516
  • Page 517 517
  • Page 518 518
  • Page 519 519
  • Page 520 520
  • Page 521 521
  • Page 522 522
  • Page 523 523
  • Page 524 524
  • Page 525 525
  • Page 526 526
  • Page 527 527
  • Page 528 528
  • Page 529 529
  • Page 530 530
  • Page 531 531
  • Page 532 532
  • Page 533 533
  • Page 534 534
  • Page 535 535
  • Page 536 536
  • Page 537 537
  • Page 538 538
  • Page 539 539
  • Page 540 540
  • Page 541 541
  • Page 542 542
  • Page 543 543
  • Page 544 544
  • Page 545 545
  • Page 546 546
  • Page 547 547
  • Page 548 548
  • Page 549 549
  • Page 550 550
  • Page 551 551
  • Page 552 552
  • Page 553 553
  • Page 554 554

Siemens SIMATIC S7-200 System Manual

Type
System Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI