Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas


SIMATIC S7-200 Programmable Controller, Notas de estudo de Cultura

Introducing the S7-200 Micro PLC Installing an S7-200 Micro PLC Installing and Using the STEP 7-Micro/WIN Software Getting Started with a Sample Program Additional Features of STEP 7-Micro/WIN Basic Concepts for Programming an S7-200 CPU CPU Memory: Data Types and Addressing Modes Input/Output Control Network Communications and the S7-200 CPU Instruction Set S7-200 Data Sheets Power Calculation Table Error Codes Special Memory (SM) Bits Using STEP 7-Micro/WIN with STEP 7 and STEP 7

Tipologia: Notas de estudo

Antes de 2010

Compartilhado em 04/02/2010

sergio-henrique-de-paula-5
sergio-henrique-de-paula-5 🇧🇷

4.6

(161)

117 documentos

1 / 482

Toggle sidebar

Esta página não é visível na pré-visualização

Não perca as partes importantes!

bg1
Preface, Contents
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
Additional Features of
STEP 7-Micro/WIN 5
Basic Concepts for
Programming an S7-200
CPU 6
CPU Memory: Data Types
and Addressing Modes 7
Input/Output Control 8
Network Communications
and the S7-200 CPU 9
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
S7-200 Programmable Controller
System Manual
This manual has the order number:
6ES7298-8FA01-8BH0
SIMATIC
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe SIMATIC S7-200 Programmable Controller e outras Notas de estudo em PDF para Cultura, somente na Docsity!

Preface, Contents

Introducing the

S7-200 Micro PLC^1

Installing an S7-

Micro PLC^2

Installing and Using the

STEP 7-Micro/WIN Software^3

Getting Started with a

Sample Program^4

Additional Features of

STEP 7-Micro/WIN^5

Basic Concepts for

Programming an S7-

CPU^6

CPU Memory: Data Types

and Addressing Modes^7

Input/Output Control 8

Network Communications

and the S7-200 CPU^9 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

S7-200 Programmable Controller

System Manual

This manual has the order number:

6ES7298-8FA01-8BH

SIMATIC

ii ier tragen Sie Ihren Buchtitel ein ---C79000 G7076 C230 02

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. 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. 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. SIMATIC, SIMATIC NET and SIMATIC HMI are registered trademarks of Siemens AG. STEP7 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. 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 AG 1998  Copyright Siemens AG 1998 All rights reserved. Disclaimer of Liability 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 AGBereich Automatisierungs- und Antriebstechnik Geschaeftsgebiet Industrie-Automatisierungssysteme Postfach 4848, D-90327 Nuernberg Siemens Aktiengesellschaft 6ES7 298-8FA01-8BH Safety Guidelines Qualified Personnel Correct Usage Trademarks

iv S7-200 Programmable Controller System ManualC79000-G7076-C230-

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. The manual is organized according to the following topics:  “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

Preface

S7-200 Programmable Controller System ManualC79000-G7076-C230-02 v

S7-200 Programmable Controller System ManualC79000-G7076-C230-02 vii

1-2 S7-200 Programmable Controller System ManualC79000-G7076-C230-

1.1 Comparing the Features of the S7-200 Micro PLCs

Equipment Requirements Figure 1-2 shows the basic S7-200 Micro PLC system, which includes an S7-200 CPU module, a personal computer, STEP 7-Micro/WIN programming software, and a communications cable. In order to use a personal computer (PC), you must have one of the following sets of equipment:  A PC/PPI cable  A communications processor (CP) card and multipoint interface (MPI) cable  A multipoint interface (MPI) card. A communications cable is provided with the MPI card.

S7-200 CPU

PC/PPI Cable

Computer

STEP 7-Micro/WIN

Figure 1-2 Components of an S7-200 Micro PLC System

Capabilities of the S7-200 CPUs The S7-200 family includes a wide variety of CPUs. This variety provides a range of features to aid in designing a cost-effective automation solution. Table 1-1 provides a summary of the major features of each S7-200 CPU.

Introducing the S7-200 Micro PLC

S7-200 Programmable Controller System ManualC79000-G7076-C230-02 1-

Table 1-1 Summary of the S7-200 CPUs Feature CPU 212 CPU 214 CPU 215 CPU 216 Physical Size of Unit 160 mm x 80 mm x 62 mm

197 mm x 80 mm x 62 mm

218 mm x 80 mm x 62 mm

218 mm x 80 mm ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁx 62 mm Á ÁÁÁÁÁÁÁÁÁ Memory ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Program (EEPROM)

ÁÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁÁ

512 words

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

2 Kwords

ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

4 Kwords

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

ÁÁÁÁÁÁÁÁÁ^ 4 Kwords ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

User data

ÁÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁÁ

512 words

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

2 Kwords

ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

2.5 Kwords

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

2.5 Kwords

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Internal memory bits (^) ÁÁÁÁÁ ÁÁÁÁÁ

(^128) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

(^256) ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

(^256) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Memory cartridge (^) ÁÁÁÁÁ ÁÁÁÁÁ

None (^) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes (EEPROM)ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

Yes (EEPROM) (^) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes (EEPROM) Optional battery cartridge None 200 days typical 200 days typical 200 days typical ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Backup(super capacitor) ÁÁÁÁÁ ÁÁÁÁÁ

50 hours typicalÁÁÁÁÁÁ ÁÁÁÁÁÁ

190 hours typicalÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

190 hours typical ÁÁÁÁÁÁ ÁÁÁÁÁÁ

190 hours typical ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ

Inputs/Outputs (I/O) ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Local I/O ÁÁÁÁÁ ÁÁÁÁÁ

8 DI / 6 DQ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

14 DI / 10 DQ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

14 DI / 10 DQ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

24 DI / 16 DQ

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Expansion modules (max.) ÁÁÁÁÁ ÁÁÁÁÁ

2 modules ÁÁÁÁÁÁ ÁÁÁÁÁÁ

7 modules ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

7 modules ÁÁÁÁÁÁ ÁÁÁÁÁÁ

7 modules ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Process-image I/O register ÁÁÁÁÁ ÁÁÁÁÁ

64 DI / 64 DQ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

64 DI / 64 DQ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

64 DI / 64 DQ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

64 DI / 64 DQ

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Analog I/O (expansion) ÁÁÁÁÁ ÁÁÁÁÁ

16 AI / 16 AQ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

16 AI / 16 AQ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

16 AI / 16 AQ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

16 AI / 16 AQ

Selectable input filters No Yes Yes Yes ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ Instructions ÁBoolean execution speedÁÁÁÁÁÁÁÁ

ÁÁÁÁÁ ÁÁÁÁ1.2^ μs/instructionÁ

ÁÁÁÁÁÁ ÁÁÁÁÁÁ0.8^ μs/instruction

ÁÁÁÁÁÁÁ ÁÁÁÁÁÁ0.8^ μs/instruction Á

ÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ Á0.8ÁÁÁÁ^ μs/instruction Á ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Counters / timers

ÁÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁÁ

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

ÁÁÁÁÁÁÁÁÁ^ 256/ ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

For / next loops

ÁÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁÁ

No

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes

ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

Yes

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Integer math (^) ÁÁÁÁÁ ÁÁÁÁÁ

Yes (^) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes (^) ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

Yes (^) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Real math (^) ÁÁÁÁÁ ÁÁÁÁÁ

No (^) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes (^) ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

Yes (^) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes PID No No Yes Yes ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ

Additional Features ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

High-speed counter ÁÁÁÁÁ ÁÁÁÁÁ

1 S/W ÁÁÁÁÁÁ ÁÁÁÁÁÁ

1 S/W, 2 H/W ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

1 S/W, 2 H/W ÁÁÁÁÁÁ ÁÁÁÁÁÁ

1 S/W, 2 H/W

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Analog adjustments ÁÁÁÁÁ ÁÁÁÁÁ

1 ÁÁÁÁÁÁ ÁÁÁÁÁÁ

2 ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

2 ÁÁÁÁÁÁ ÁÁÁÁÁÁ

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Pulse outputs ÁÁÁÁÁ ÁÁÁÁÁ

None ÁÁÁÁÁÁ ÁÁÁÁÁÁ

2 ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

2 ÁÁÁÁÁÁ ÁÁÁÁÁÁ

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Communication interrupt events

ÁÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁÁ

1 transmit/ 1 receive

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

1 transmit/1 receive^ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

1 transmit/2 receive ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

2 transmit/4 receive

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Timed interrupts ÁÁÁÁÁ ÁÁÁÁÁ

1 ÁÁÁÁÁÁ ÁÁÁÁÁÁ

2 ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

2 ÁÁÁÁÁÁ ÁÁÁÁÁÁ

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Hardware input interrupts ÁÁÁÁÁ ÁÁÁÁÁ

1 ÁÁÁÁÁÁ ÁÁÁÁÁÁ

4 ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

4 ÁÁÁÁÁÁ ÁÁÁÁÁÁ

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Real time clock ÁÁÁÁÁ ÁÁÁÁÁ

None ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

Yes ÁÁÁÁÁÁ ÁÁÁÁÁÁ

Yes ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ

Communications ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Number of comm ports: ÁÁÁÁÁ ÁÁÁÁÁ

1 (RS-485) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

1 (RS-485) ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

2 (RS-485) ÁÁÁÁÁÁ ÁÁÁÁÁÁ

2 (RS-485)

ÁÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ Á ÁÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁÁÁ

Protocols supported Port 0:

Port 1:

ÁÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁÁ ÁÁÁÁÁ

PPI, Freeport

N/A

ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ ÁÁÁÁÁÁ

PPI, Freeport

N/A

ÁÁÁÁÁÁÁ ÁÁÁÁÁÁÁ Á ÁÁÁÁÁÁ ÁÁÁÁÁÁÁ

PPI, Freeport, MPI

DP, MPI

ÁÁÁÁÁÁ ÁÁÁÁÁÁ Á ÁÁÁÁÁ ÁÁÁÁÁÁ

PPI, Freeport, MPI

PPI, Freeport, MPI Peer-to-peer Slave only Yes Yes Yes

Introducing the S7-200 Micro PLC

SFRUN

Figure 1-3 S7-212 CPU Module SFRUN SFRUN DP Figure 1-5 S7-215 and S7-216 CPU Module

  • 1 Introducing the S7-200 Micro PLC 1- Contents
    • 1.1 Comparing the Features of the S7-200 Micro PLCs 1-
    • 1.2 Major Components of the S7-200 Micro PLC 1-
  • 2 Installing an S7-200 Micro PLC 2-
    • 2.1 Panel Layout Considerations 2-
    • 2.2 Installing and Removing an S7-200 Micro PLC 2-
    • 2.3 Installing the Field Wiring 2-
    • 2.4 Using Suppression Circuits 2-
    • 2.5 Power Considerations 2-
  • 3 Installing and Using the STEP 7-Micro/WIN Software 3-
    • 3.1 Installing the STEP 7-Micro/WIN Software 3-
    • 3.2 Using STEP 7-Micro/WIN to Set Up the Communications Hardware 3-
    • 3.3 Establishing Communication with the S7-200 CPU 3-
    • 3.4 Configuring the Preferences for STEP 7-Micro/WIN 3-
    • 3.5 Creating and Saving a Project 3-
    • 3.6 Creating a Program 3-
    • 3.7 Creating a Data Block 3-
    • 3.8 Using the Status Chart 3-
    • 3.9 Using Symbolic Addressing 3-
  • 4 Getting Started with a Sample Program 4-
    • 4.1 Creating a Program for a Sample Application 4-
    • 4.2 Task: Create a Project 4-
    • 4.3 Task: Create a Symbol Table 4-
    • 4.4 Task: Enter the Program in Ladder Logic 4-
    • 4.5 Task: Create a Status Chart 4-
    • 4.6 Task: Download and Monitor the Sample Program 4-
  • 5 Additional Features of STEP 7-Micro/WIN 5-
    • 5.1 Using the TD 200 Wizard to Configure the TD 200 Operator Interface 5-
    • 5.2 Using the S7-200 Instruction Wizard 5-
    • 5.3 Using the Analog Input Filtering Instruction Wizard 5-
    • 5.4 Using Cross Reference 5-
    • 5.5 Using Element Usage 5-
  • vi S7-200 Programmable Controller System ManualC79000-G7076-C230-
    • 5.6 Using Find/Replace 5-
    • 5.7 Documenting Your Program 5-
    • 5.8 Printing Your Program 5-
  • 6 Basic Concepts for Programming an S7-200 CPU 6-
    • 6.1 Guidelines for Designing a Micro PLC System 6-
    • 6.2 Concepts of an S7-200 Program 6-
    • 6.3 Concepts of the S7-200 Programming Languages 6-
    • 6.4 Basic Elements for Constructing a Program 6-
    • 6.5 Understanding the Scan Cycle of the CPU 6-
    • 6.6 Selecting the Mode of Operation for the CPU 6-
    • 6.7 Creating a Password for the CPU 6-
    • 6.8 Debugging and Monitoring Your Program 6-
    • 6.9 Error Handling for the S7-200 CPU 6-
  • 7 CPU Memory: Data Types and Addressing Modes 7-
    • 7.1 Direct Addressing of the CPU Memory Areas 7-
    • 7.2 Indirect Addressing of the CPU Memory Areas 7-
    • 7.3 Memory Retention for the S7-200 CPU 7-
    • 7.4 Using Your Program to Store Data Permanently 7-
    • 7.5 Using a Memory Cartridge to Store Your Program 7-
  • 8 Input/Output Control 8-
    • 8.1 Local I/O and Expansion I/O 8-
    • 8.2 Using the Selectable Input Filter to Provide Noise Rejection 8-
    • 8.3 Using the Output Table to Configure the States of the Outputs 8-
    • 8.4 High-Speed I/O 8-
    • 8.5 Analog Adjustments 8-
  • 9 Network Communications and the S7-200 CPU 9-
    • 9.1 Communication Capabilities of the S7-200 CPU 9-
    • 9.2 Communication Network Components 9-
    • 9.3 Data Communications Using the PC/PPI Cable 9-
    • 9.4 Data Communications Using the MPI or CP Card 9-
    • 9.5 Distributed Peripheral (DP) Standard Communications 9-
    • 9.6 Network Performance 9-
  • 10 Instruction Set 10-
    • 10.1 Valid Ranges for the S7-200 CPUs 10-
    • 10.2 Contact Instructions 10-
    • 10.3 Comparison Contact Instructions 10-
    • 10.4 Output Instructions 10-
      • and Pulse Instructions 10- 10.5 Timer, Counter, High-Speed Counter, High-Speed Output, Clock,
    • 10.6 Math and PID Loop Control Instructions 10-
    • 10.7 Increment and Decrement Instructions 10-
    • 10.8 Move, Fill, and Table Instructions 10-
    • 10.9 Shift and Rotate Instructions 10-
    • 10.10 Program Control Instructions 10-
    • 10.11 Logic Stack Instructions 10-
    • 10.12 Logic Operations .10-
    • 10.13 Conversion Instructions .10-
    • 10.14 Interrupt and Communications Instructions .10-
  • A S7-200 Data Sheets A-
    • A.1 General Technical Specifications A-
    • A.2 CPU 212 DC Power Supply, DC Inputs, DC Outputs A-
    • A.3 CPU 212 AC Power Supply, DC Inputs, Relay Outputs A-
    • A.4 CPU 212 24 VAC Power Supply, DC Inputs, Relay Outputs A-
    • A.5 CPU 212 AC Power Supply, AC Inputs, AC Outputs A-
    • A.6 CPU 212 AC Power Supply, Sourcing DC Inputs, Relay Outputs A-
    • A.7 CPU 212 AC Power Supply, 24 VAC Inputs, AC Outputs A-
    • A.8 CPU 212 AC Power Supply, AC Inputs, Relay Outputs A-
    • A.9 CPU 214 DC Power Supply, DC Inputs, DC Outputs A-
    • A.10 CPU 214 AC Power Supply, DC Inputs, Relay Outputs A-
    • A.11 CPU 214 AC Power Supply, AC Inputs, AC Outputs A-
    • A.12 CPU 214 AC Power Supply, Sourcing DC Inputs, Relay Outputs A-
    • A.13 CPU 214 AC Power Supply, 24 VAC Inputs, AC Outputs A-
    • A.14 CPU 214 AC Power Supply, AC Inputs, Relay Outputs A-
    • A.15 CPU 215 DC Power Supply, DC Inputs, DC Outputs A-
    • A.16 CPU 215 AC Power Supply, DC Inputs, Relay Outputs A-
    • A.17 CPU 216 DC Power Supply, DC Inputs, DC Outputs A-
    • A.18 CPU 216 AC Power Supply, DC Inputs, Relay Outputs A-
    • A.19 Expansion Module EM221 Digital Input 8 x 24 VDC A-
    • A.20 Expansion Module EM221 Digital Input 8 x 120 VAC A-
    • A.21 Expansion Module EM221 Digital Sourcing Input 8 x 24 VDC A-
    • A.22 Expansion Module EM221 Digital Input 8 x 24 VAC A-
    • A.23 Expansion Module EM222 Digital Output 8 x 24 VDC A-
    • A.24 Expansion Module EM222 Digital Output 8 x Relay A-
    • A.25 Expansion Module EM222 Digital Output 8 x 120/230 VAC A-
  • viii S7-200 Programmable Controller System ManualC79000-G7076-C230- - 4 x 24 VDC Input/4 x 24 VDC Output A- A.26 Expansion Module EM223 Digital Combination - 8 x 24 VDC Input/8 x 24 VDC Output A- A.27 Expansion Module EM223 Digital Combination - 16 x 24 VDC Input/16 x 24 VDC Output A- A.28 Expansion Module EM223 Digital Combination - 4 x 24 VDC Input/4 x Relay Output A- A.29 Expansion Module EM223 Digital Combination - 4 x 120 VAC Input/4 x 120 VAC to 230 VAC Output A- A.30 Expansion Module EM223 Digital Combination - 8 x 24 VDC Input/8 x Relay Output A- A.31 Expansion Module EM223 Digital Combination - 16 x 24 VDC Input/16 x Relay Output A- A.32 Expansion Module EM223 Digital Combination
    • A.33 Expansion Module EM231 Analog Input AI 3 x 12 Bits A-
    • A.34 Expansion Module EM232 Analog Output AQ 2 x 12 Bits A-
    • A.35 Expansion Module EM235 Analog Combination AI 3/AQ 1 x 12 Bits A-
    • A.36 Memory Cartridge 8K x 8 A-
    • A.37 Memory Cartridge 16K x 8 A-
    • A.38 Battery Cartridge A-
    • A.39 I/O Expansion Cable A-
    • A.40 PC/PPI Cable A-
    • A.41 CPU 212 DC Input Simulator A-
    • A.42 CPU 214 DC Input Simulator A-
    • A.43 CPU 215/216 DC Input Simulator A-
  • B Power Calculation Table B-
  • C Error Codes C-
    • C.1 Fatal Error Codes and Messages C-
    • C.2 Run-Time Programming Problems C-
    • C.3 Compile Rule Violations C-
  • D Special Memory (SM) Bits D-
  • E Using STEP 7-Micro/WIN with STEP 7 and STEP 7-Micro/DOS E-
    • E.1 Using STEP 7-Micro/WIN with STEP 7 E-
    • E.2 Importing Files from STEP 7-Micro/DOS E-
  • F Execution Times for STL Instructions F-
  • G S7-200 Order Numbers G-
  • H S7-200 Troubleshooting Guide H-
    • Index Index-
  • S7-200 Programmable Controller System ManualC79000-G7076-C230-02 1- - I0.0I0.1 Q0. STOP - I0.2I0. - I0.4I0. - I0.6I0. - Q0.1Q0. - Q0.3Q0. - Q0. - SIMATICS7- - I0.0I0.1 Q0. STOP - I0.2I0. - I0.4I0. - I0.6I0. - Q0.1Q0. - Q0.3Q0. - Q0.
    • SIMATICS7- - I1.0I1. - I1.2I1. - I1.4I1. - I1.6I1. - Q1.0Q1. - Q0.6Q0.
    • SIMATICS7- Figure 1-4 S7-214 CPU Module - I0.0I0. STOP - I0.2I0. - I0.4I0. - I0.6I0. - I1.0I1. - I1.2I1. - I1.4I1. - Q0.0Q0. - Q0.2Q0. - Q0.4Q0. - Q0.6IQ0. - Q 1.0Q 1.

1-6 S7-200 Programmable Controller System ManualC79000-G7076-C230-

Expansion Modules The S7-200 CPU module provides a certain number of local I/O. Adding an expansion module provides additional input or output points. As shown in Figure 1-6, the expansion module comes with a bus connector for connecting to the base unit.

S7-200 CPU Module Expansion Module

Bus Connector

SFRUN STOP

I0.0I0.1 Q0. I0.2I0. I0.4I0. I0.6I0.

Q0.1Q0. Q0.3Q0. Q0. SIMATICS7-

I.0I. I.2I. I.4I. I.6II.

Figure 1-6 CPU Module with an Expansion Module

Introducing the S7-200 Micro PLC

2-2 S7-200 Programmable Controller System ManualC79000-G7076-C230-

2.1 Panel Layout Considerations

Installation Configuration You can install an S7-200 either on a panel or on a standard rail. You can mount the S7- either horizontally or vertically. An I/O expansion cable is also available to add flexibility to your mounting configuration. Figure 2-1 shows a typical configuration for these types of installations.

S7-200 I/O I/O

Panel mounting Standard rail mounting S7-200 I/O I/O

I/O I/O

Figure 2-1 Mounting Configurations

Clearance Requirements for Installing an S7-200 PLC Use the following guidelines as you plan your installation:  The S7-200 CPU and expansion modules are designed for natural convection cooling. You must provide a clearance of at least 25 mm (1 in.), both above and below the units, for proper cooling. See Figure 2-2. Continuous operation of all electronic products at maximum ambient temperature and load reduces their life.  For vertical mounting, the output loading may need to be derated because of thermal constraints. Refer to Appendix A for the data sheet for your particular CPU. If you are mounting the CPU and modules on a DIN Rail, the DIN rail stop is recommended.  If you are installing an S7-200 horizontally or vertically on a panel, you must allow 75 mm (2.9 in.) for the minimum panel depth. See Figure 2-2.  If you plan to install additional modules horizontally or vertically, allow a clearance of at least 25 mm (1 in.) on either side of the unit for installing and removing the module. This extra space is required to engage and disengage the bus expansion connector.  Be sure to allow enough space in your mounting design to accommodate the I/O wiring and communication cable connections.

ÂÂÂÂÂÂÂ ÂÂÂÂÂÂÂ ÂÂÂÂÂÂÂ ÂÂÂÂÂÂÂ ÂÂÂÂÂÂÂ ÂÂÂÂÂÂÂ 75 mm (2.9 in.)

S7-

Front of the enclosure

Mounting surface

25 mm (1 in.)

25 mm (1 in.)

25 mm (1 in.) Clearance for removing expansion I/O module

Clearance for cooling

Front View Side View

S7-200 I/O

Figure 2-2 Horizontal and Vertical Clearance Requirements for Installing an S7-200 PLC

Installing an S7-200 Micro PLC

S7-200 Programmable Controller System ManualC79000-G7076-C230-02 2-

Standard Rail Requirements The S7-200 CPU and expansion modules can be installed on a standard (DIN) rail (DIN EN 50 022). Figure 2-3 shows the dimensions for this rail.

35 mm (1.38 in.)

1.0 mm (0.039 in.)

7.5 mm (0.29 in.)

Figure 2-3 Standard Rail Dimensions

Panel-Mounting Dimensions S7-200 CPUs and expansion modules include mounting holes to facilitate installation on panels. Figures 2-4 through 2-8 provide the mounting dimensions for the different S7- modules.

6.4 mm (0.25 in.) 6.4 mm (0.25 in.) 147.3 mm(5.8 in.)

S7-212 (^) Mounting holes (M4 or no. 8)

80 mm(3.15 in.) 67.3 mm(2.65 in.)

160 mm (6.3 in.)

Figure 2-4 Mounting Dimensions for an S7-212 CPU Module

6.4 mm (0.25 in.) 184.3 mm (7.25 in.)

S7-

Mounting holes (M4 or no. 8)

197 mm (7.76 in.) 6.4 mm (0.25 in.)

80 mm (3.15 in.)

67.3 mm (2.65 in.)

Figure 2-5 Mounting Dimensions for an S7-214 CPU Module

Installing an S7-200 Micro PLC

S7-200 Programmable Controller System ManualC79000-G7076-C230-02 2-

2.2 Installing and Removing an S7-200 Micro PLC

Mounting an S7-200 Micro PLC on a Panel

Warning Attempts to install or remove S7-200 modules or related equipment when they are powered up could cause electric shock. Failure to disable all power to the S7-200 modules and related equipment during installation or removal procedures may result in death or serious personal injury, and/or damage to equipment. Always follow appropriate safety precautions and ensure that power to the S7- modules is disabled before installation.

Use the following procedure for installing an S7-200:

  1. Locate, drill, and tap the mounting holes for DIN M4 or American Standard number 8 screws. Refer to Section 2.1 for mounting dimensions and other considerations.
  2. Secure the S7-200 modules onto the panel, using DIN M4 or American Standard number 8 screws. If you are installing an expansion module, use the following steps:
  3. Remove the bus expansion port cover from the existing module housing by inserting a screwdriver into the space between the bus expansion port cover and the housing, and gently prying. Ensure that the plastic connecting joints are completely removed. Use caution not to damage the module. Figure 2-9 shows proper screwdriver placement.
  4. Insert the bus connector into the bus expansion port of the existing module and ensure that the connector snaps into place.
  5. Ensure that the expansion module is correctly oriented with respect to the CPU module. If you are using an expansion cable, orient the cable up towards the front of the module.
  6. Connect the expansion module to the bus connector by sliding the module onto the bus connector so that it snaps into place.

SIMATICS7- Bus expansion port cover

Figure 2-9 Removing the Bus Expansion Port Cover on an S7-200 CPU Module

Installing an S7-200 Micro PLC

!

2-6 S7-200 Programmable Controller System ManualC79000-G7076-C230-

Installing an S7-200 Micro PLC onto a Standard Rail

Warning Attempts to install or remove S7-200 modules or related equipment when they are powered up could cause electric shock. Failure to disable all power to the S7-200 modules and related equipment during installation or removal procedures may result in death or serious personal injury, and/or damage to equipment. Always follow appropriate safety precautions and ensure that power to the S7- modules is disabled before installation.

To install the S7-200 CPU module, follow these steps:

  1. Secure the rail every 75 mm (3.0 in.) to the mounting panel.
  2. Snap open the clip (located on the bottom of the module) and hook the back of the module onto the rail.
  3. Snap the clip closed, carefully checking to ensure that the clip has fastened the module securely onto the rail.

Note Modules in an environment with high vibration potential or modules that have been installed in a vertical position may require DIN rail stops.

If you are installing an expansion module, use the following steps:

  1. Remove the bus expansion port cover from the existing module housing by inserting a screwdriver into the space between the bus expansion port cover and the housing, and gently prying. Ensure that the plastic connecting joints are completely removed. Use caution not to damage the module. Figure 2-9 shows proper screwdriver placement.
  2. Insert the bus connector into the bus expansion port of the existing module and ensure that the connector snaps into place.
  3. Ensure that the expansion module is correctly oriented with respect to the CPU module. If you are using an expansion cable, orient the cable up towards the front of the module.
  4. Snap open the clip and hook the back of the expansion module onto the rail. Slide the expansion module onto the bus connector until it snaps into place.
  5. Snap the clip closed to secure the expansion module to the rail. Carefully check to ensure that the clip has fastened the module securely onto the rail.

Installing an S7-200 Micro PLC

!