SIMATIC S7-200 Programmable Controller.pdf

(4226 KB) Pobierz
Automatisierungssystem S7-200
Introducing the
S7-200 Micro PLC
1
Installing an S7-200
Micro PLC
2
Installing and Using the
STEP 7-Micro/WIN Software
3
Getting Started with a
Sample Program
4
SIMATIC
Additional Features of
STEP 7-Micro/WIN
5
S7-200 Programmable Controller
Basic Concepts for
Programming an S7-200
CPU
6
System Manual
CPU Memory: Data Types
and Addressing Modes
7
Input/Output Control
8
This manual has the order number:
Network Communications
and the S7-200 CPU
9
6ES7298-8FA01-8BH0
Instruction Set
10
Appendix
S7-200 Data Sheets
A
Power Calculation Table
B
Error Codes
C
Special Memory (SM) Bits
D
How STEP 7-Micro/WIN
Works with Other STEP 7
Programming Products
E
Execution Times for STL
Instructions
F
S7-200 Order Numbers
G
S7-200 Troubleshooting
Guide
H
Index
153814556.003.png 153814556.004.png
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
indicates that death, severe personal injury or substantial property damage will result if proper
precautions are not taken.
!
Warning
indicates that death, severe personal injury or substantial property damage can result if proper
precautions are not taken.
!
Caution
indicates that minor personal injury or property damage can result if proper precautions are not taken.
Qualified Personnel
The device/system may only be set up and operated in conjunction with this manual.
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 description, 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, SIMATIC NET and SIMATIC HMI are registered trademarks of Siemens AG.
STEP 7 and S7 are trademarks of Siemens AG.
Microsoft, Windows, Windows 95, and Windows NT are registered trademarks of Microsoft
Corporation.
Underwriters Laboratories is a trademark of Underwriters Laboratories, Inc.
Copyright Siemens AG 1998 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.
Siemens AG
Bereich Automatisierungs- und Antriebstechnik
Geschaeftsgebiet Industrie-Automatisierungssysteme
Postfach 4848, D-90327 Nuernberg
Disclaimer of Liability
We have checked the contents of this manual for agreement with the
hardware and software described. Since deviations cannot be pre-
cluded entirely, we cannot guarantee full agreement. However, the
data in this manual are reviewed regularly and any necessary cor-
rections included in subsequent editions. Suggestions for improve-
ment are welcomed.
Technical data subject to change.
Siemens Aktiengesellschaft
6ES7 298-8FA01-8BH0
ii
ier tragen Sie Ihren Buchtitel ein ---
C79000 G7076 C230 02
Siemens AG 1998
153814556.005.png
Preface
Purpose
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 controllers a perfect solution for controlling small
applications. The wide variety of CPU sizes and voltages, and the multiple programming
options available, give you the flexibility you need to solve your automation problems.
This manual provides information about installing and programming the S7-200 Micro PLCs,
including the following topics:
Installing and wiring the S7-200 CPU and expansion I/O modules, and installing the
STEP 7-Micro/WIN software
Designing and entering a program
Understanding the CPU operations, such as data types and addressing modes, the CPU
scan cycle, password-protection, and network communication
This manual also includes descriptions and examples for the programming instructions,
typical execution times for the instructions, and the data sheets for the S7-200 equipment.
Audience
This manual 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 212 Release 1.01, CPU 214 Release 1.01,
CPU 215 Release 1.02, and CPU 216 Release 1.02
Version 2.1 of STEP 7-Micro/WIN programming software packages:
– STEP 7-Micro/WIN 16 for the 16-bit Windows 3.1x
– STEP 7-Micro/WIN 32 for the 32-bit Windows 95 and Windows NT
Agency Approvals
The SIMATIC S7-200 series meets the standards and regulations of the following agencies:
European Community (CE) Low Voltage Directive 73/23/EEC
European Community (CE) EMC Directive 89/336/EEC
Underwriters Laboratories, Inc.: UL 508 Listed (Industrial Control Equipment)
Canadian Standards Association: CSA C22.2 Number 142 Certified (Process Control
Equipment)
Factory Mutual Research: FM Class I, Division 2, Groups A, B, C, & D Hazardous
Locations, T4A
VDE 0160: Electronic equipment for use in electrical power installations
Refer to Appendix A for compliance information.
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
iii
153814556.006.png
Preface
Related Information
Refer to the following documentation for more detailed information about selected topics:
ET 200 Distributed I/O System Manual: describes how to install and use the ET 200
products for distributed I/O.
Process Field Bus (PROFIBUS) standard (EN 50170): describes the standard protocol
for the S7-200 DP communication capability.
TD 200 Operator Interface User Manual: describes how to install and use the TD 200
with an S7-200 programmable logic controller.
How to Use This Manual
If you are a first-time (novice) user of S7-200 Micro PLCs, you should read the entire manual.
If you are an experienced user, refer to the table of contents or index to find specific
information.
“Introducing the S7-200 Micro PLC” (Chapter 1) provides an overview of some of the
features of the equipment.
“Installing an S7-200 Micro PLC” (Chapter 2) provides procedures, dimensions, and
basic guidelines for installing the S7-200 CPU modules and expansion I/O modules.
“Installing and Using the STEP 7-Micro/WIN Software” (Chapter 3) describes how to
install the programming software. It also provides a basic explanation about the features
of the software.
“Getting Started with a Sample Program” (Chapter 4) helps you enter a sample program,
using the STEP 7-Micro/WIN software.
“Additional Features of STEP 7-Micro/WIN” (Chapter 5) describes how to use the TD 200
Wizard and the S7-200 Instruction Wizard, and other new features of STEP 7-Micro/WIN.
“Basic Concepts for Programming an S7-200 CPU” (Chapter 6), “CPU Memory: Data
Types and Addressing Modes” (Chapter 7), and “Input/Output Control” (Chapter 8)
provide information about how the S7-200 CPU processes data and executes your
program.
“Network Communications and the S7-200 CPU” (Chapter 9) provides information about
how to connect the S7-200 CPU to different types of networks.
“Instruction Set” (Chapter 10) provides explanations and examples of the programming
instructions used by the S7-200 CPUs.
Additional information (such as the equipment data sheets, error code descriptions,
execution times, and troubleshooting) are provided in the appendices.
Additional Assistance
For assistance in answering technical questions, for training on this product, or for ordering,
contact your Siemens distributor or sales office.
For Internet information about Siemens products and services, technical support, or FAQs
(frequently asked questions) and application tips, use this Internet address:
http://www.ad.siemens.de
iv
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
The manual is organized according to the following topics:
153814556.001.png
Contents
1
Introducing the S7-200 Micro PLC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1
1.1
Comparing the Features of the S7-200 Micro PLCs
. . . . . . . . . . . . . . . . . . . . . . . . . .
1-2
1.2
Major Components of the S7-200 Micro PLC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4
2
Installing an S7-200 Micro PLC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1
2.1
Panel Layout Considerations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2
2.2
Installing and Removing an S7-200 Micro PLC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-5
2.3
Installing the Field Wiring
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-8
2.4
Using Suppression Circuits
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-13
2.5
Power Considerations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-15
3
Installing and Using the STEP 7-Micro/WIN Software
. . . . . . . . . . . . . . . . . . . . . . .
3-1
3.1
Installing the STEP 7-Micro/WIN Software
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2
3.2
Using STEP 7-Micro/WIN to Set Up the Communications Hardware
. . . . . . . . . . .
3-4
3.3
Establishing Communication with the S7-200 CPU
. . . . . . . . . . . . . . . . . . . . . . . . . .
3-7
3.4
Configuring the Preferences for STEP 7-Micro/WIN
. . . . . . . . . . . . . . . . . . . . . . . . . .
3-25
3.5
Creating and Saving a Project
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-26
3.6
Creating a Program
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-27
3.7
Creating a Data Block
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-32
3.8
Using the Status Chart
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-34
3.9
Using Symbolic Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-36
4
Getting Started with a Sample Program
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1
4.1
Creating a Program for a Sample Application
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2
4.2
Task: Create a Project
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-6
4.3
Task: Create a Symbol Table
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-8
4.4
Task: Enter the Program in Ladder Logic
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-10
4.5
Task: Create a Status Chart
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-14
4.6
Task: Download and Monitor the Sample Program
. . . . . . . . . . . . . . . . . . . . . . . . . . .
4-15
5
Additional Features of STEP 7-Micro/WIN
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1
5.1
Using the TD 200 Wizard to Configure the TD 200 Operator Interface
. . . . . . . . . .
5-2
5.2
Using the S7-200 Instruction Wizard
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-12
5.3
Using the Analog Input Filtering Instruction Wizard
. . . . . . . . . . . . . . . . . . . . . . . . . .
5-14
5.4
Using Cross Reference
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-17
5.5
Using Element Usage
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-18
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
v
153814556.002.png
Zgłoś jeśli naruszono regulamin