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


help S7-200, Notas de estudo de Mecatrônica

help MicroWin em pdf

Tipologia: Notas de estudo

2012

Compartilhado em 18/02/2012

leo-silva-48
leo-silva-48 🇧🇷

5

(1)

6 documentos

1 / 494

Toggle sidebar

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

Não perca as partes importantes!

bg1
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
Creating a Program for the
Position Module 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
Technical Specifications A
Calculating a Power Budget B
Error Codes C
Special Memory (SM) Bits D
S7-200 Order Numbers E
Execution Times for STL
Instructions F
S7-200 Quick Reference
Information G
Index
S7-200 Programmable Controller
System Manual
SIMATIC
Edition 05/2003
A5E00212536-02
This manual has the order number:
6ES7298-8FA23-8BH0
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 help S7-200 e outras Notas de estudo em PDF para Mecatrônica, somente na Docsity!

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

Creating a Program for the

Position Module

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

Technical Specifications (^) A

Calculating a Power Budget B

Error Codes (^) C

Special Memory (SM) Bits (^) D

S7-200 Order Numbers E

Execution Times for STL

Instructions

F

S7-200 Quick Reference

Information

G

Index

S7-200 Programmable Controller

System Manual

SIMATIC

Edition 05/

A5E00212536-

This manual has the order number:

6ES7298-8FA23-8BH

Contents

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 sys- tems in accordance with established safety practices and standards.

Correct Usage Note the following: Warning This device and its components may only be used for the applications described in the catalog or the technical descriptions, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens. This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended.

Trademarks 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.

We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot gua- rantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for impro- vement are welcomed.

Copyright Siemens AG 2003 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 AG Bereich Automation and Drives Geschaeftsgebiet Industrial Automation Systems Postfach 4848, D- 90327 Nuernberg E Siemens AG 2003 Technical data subject to change.

Siemens Aktiengesellschaft 6ES7298-8FA23-8BH

Contents

iv

Maritime Approvals

The S7-200 products are periodically submitted for special agency approvals related to specific markets and applications. This table identifies the agency and certificate number that the S7-200 products have been approved for. Not all S7-200 products in this manual have been approved for these special agency approvals. Consult your local Siemens representative if you need additional information related to the latest listing of exact approvals by part number.

Agency Certificate Number Lloyds Register of Shipping (LRS) 99 / 20018(E1) American Bureau of Shipping (ABS) 01--HG20020--PDA Germanischer Lloyd (GL) 12 045 -- 98 HH Det Norske Veritas (DNV) A-- Bureau Veritas (BV) 09051 / A2 BV Nippon Kaiji Kyokai (NK) A--

How to Use This Manual

If you are a first-time (novice) user of S7-200 Micro PLCs, you should read the entire S7- Programmable Controller System Manual. If you are an experienced user, refer to the table of contents or index to find specific information.

The S7-200 Programmable Controller System Manual is organized according to the following topics:

  • Chapter 1 (Product Overview) provides an overview of some of the features of the S7-200 family of Micro PLC products.
  • Chapter 2 (Getting Started) provides a tutorial for creating and downloading a sample control program to an S7-200.
  • Chapter 3 (Installing the S7-200) provides the dimensions and basic guidelines for installing the S7-200 CPU modules and expansion I/O modules.
  • Chapter 4 (PLC Concepts) provides information about the operation of the S7-200.
  • Chapter 5 (Programming Concepts, Conventions, and Features) provides information about the features of STEP 7--Micro/WIN, the program editors and types of instructions (IEC 1131-3 or SIMATIC), S7-200 data types, and guidelines for creating programs.
  • Chapter 6 (S7-200 Instruction Set) provides descriptions and examples of programming instructions supported by the S7-200.
  • Chapter 7 (Communicating over a Network) provides information for setting up the different network configurations supported by the S7-200.
  • Chapter 8 (Hardware Troubleshooting Guide and Software Debugging Tools) provides information for troubleshooting problems with the S7-200 hardware and about the STEP 7--Micro/WIN features that help you debug your program.
  • Chapter 9 (Creating a Program for the Position Module) provides information about the instructions and wizard used to create a program for the EM 253 Position module.
  • Chapter 10 (Creating a Program for the Modem Module) provides information about the instructions and wizard used to create a program for the EM 241 Modem module.
  • Chapter 11 (Using the USS Protocol Library to Control a MicroMaster Drive) provides information about the instructions used to create a control program for a MicroMaster drive. It also provides information about how to configure the MicroMaster 3 and MicroMaster 4 drives.
  • Chapter 12 (Using the Modbus Protocol Library) provides information about the instructions used to create a program that uses the Modbus protocol for communications.
  • Appendix A (Technical Specifications) provides the technical information and data sheets about the S7-200 hardware. The other appendices provide additional reference information, such as descriptions of the error codes, descriptions of the Special Memory (SM) area, part numbers for ordering S7-200 equipment, and STL instruction execution times.

Preface

v

Additional Information and Assistance

Information about the S7-200 and STEP 7--Micro/WIN

In addition to this manual, STEP 7--Micro/WIN provides extensive online help for getting started with programming the S7-200. Included with the purchase of the STEP 7--Micro/WIN software is a free documentation CD. On this CD you can find application tips, an electronic version of this manual and other information.

Online Help

Help is only a keystroke away! Pressing F1 accesses the extensive online help for STEP 7--Micro/WIN. The online help includes useful information about getting started with programming the S7-200, as well as many other topics.

Electronic Manual

An electronic version of this S7-200 System Manual is available on the documentation CD. You can install the electronic manual onto your computer so that you can easily access the information in the manual while you are working with the STEP 7--Micro/WIN software.

Programming Tips

The documentation CD includes Programming Tips, a set of application examples with sample programs. Reviewing or modifying these examples can help you find efficient or innovative solutions for your own application. You can also find the most current version of Programming Tips on the S7- Internet site.

Internet: www.siemens.com/S7--

For additional information about Siemens products and services, technical support, frequently asked questions (FAQs), product updates, or application tips, refer to the following Internet addresses:

  • www.ad.siemens.de for general Siemens information

This Siemens Automation & Drives Internet site includes information about the SIMATIC product line and other products available from Siemens.

  • www.siemens.com/S7--200 for S7-200 product information

The S7-200 Internet site includes frequently asked questions (FAQs), Programming Tips (application examples and sample programs), information about newly released products, and product updates or downloads.

vii

Contents

Contents

Contents

  • 1 Product Overview Contents
    • S7-200 CPU
    • S7-200 Expansion Modules
    • STEP 7--Micro/WIN Programming Package
    • Communications Options
    • Display Panels
  • 2 Getting Started
    • Connecting the S7-200 CPU
    • Creating a Sample Program
    • Downloading the Sample Program
    • Placing the S7-200 in RUN Mode
  • 3 Installing the S7-200
    • Guidelines for Installing S7-200 Devices
    • Installing and Removing the S7-200 Modules
    • Guidelines for Grounding and Wiring
  • 4 PLC Concepts
    • Understanding How the S7-200 Executes Your Control Logic
    • Accessing the Data of the S7-200
    • Understanding How the S7-200 Saves and Restores Data
    • Storing Your Program on a Memory Cartridge
    • Selecting the Operating Mode for the S7-200 CPU
    • Using Your Program to Save V Memory to the EEPROM
    • Features of the S7-200
  • 5 Programming Concepts, Conventions, and Features
    • Guidelines for Designing a Micro PLC System
    • Basic Elements of a Program
    • Using STEP 7--Micro/WIN to Create Your Programs
    • Choosing Between the SIMATIC and IEC 1131--3 Instruction Sets
    • Understanding the Conventions Used by the Program Editors
    • Using Wizards To Help You Create Your Control Program
    • Handling Errors in the S7-200
    • Assigning Addresses and Initial Values in the Data Block Editor
    • Using the Symbol Table for Symbolic Addressing of Variables
    • Using Local Variables
    • Using the Status Chart to Monitor Your Program
    • Creating an Instruction Library
    • Features for Debugging Your Program
  • 6 S7-200 Instruction Set viii
    • Conventions Used to Describe the Instructions
    • S7-200 Memory Ranges and Features
    • Bit Logic Instructions
      • Contacts
      • Coils
      • Logic Stack Instructions
      • Set and Reset Dominant Bistable Instructions
    • Clock Instructions
    • Communications Instructions
      • Network Read and Network Write Instructions
      • Transmit and Receive Instructions (Freeport)
      • Get Port Address and Set Port Address Instructions
    • Compare Instructions
      • Comparing Numerical Values
      • Compare String
    • Conversion Instructions
      • Standard Conversion Instructions
      • ASCII Conversion Instructions
      • String Conversion Instructions
      • Encode and Decode Instructions
    • Counter Instructions
      • SIMATIC Counter Instructions
      • IEC Counter Instructions
    • High-Speed Counter Instructions
    • Pulse Output Instruction
    • Math Instructions
      • Add, Subtract, Multiply, and Divide Instructions
      • Multiply Integer to Double Integer and Divide Integer with Remainder
      • Numeric Functions Instructions
      • Increment and Decrement Instructions
    • Proportional/Integral/Derivative (PID) Loop Instruction
    • Interrupt Instructions
    • Logical Operations Instructions
      • Invert Instructions
      • AND, OR, and Exclusive OR Instructions
    • Move Instructions
      • Move Byte, Word, Double Word, or Real
      • Move Byte Immediate (Read and Write)
      • Block Move Instructions
    • Program Control Instructions
      • Conditional End
      • Stop
      • Watchdog Reset
      • For--Next Loop Instructions
      • Jump Instructions
      • Sequence Control Relay (SCR) Instructions
    • Shift and Rotate Instructions ix
      • Shift Right and Shift Left Instructions
      • Rotate Right and Rotate Left Instructions
      • Shift Register Bit Instruction
      • Swap Bytes Instruction
    • String Instructions
    • Table Instructions
      • Add To Table
      • First-In-First-Out and Last-In-First-Out
      • Memory Fill
      • Table Find
    • Timer Instructions
      • SIMATIC Timer Instructions
      • IEC Timer Instructions
    • Subroutine Instructions
  • 7 Communicating over a Network
    • Understanding the Basics of S7-200 Network Communications
    • Selecting the Communications Protocol for Your Network
    • Installing and Removing Communications Interfaces
    • Building Your Network
    • Creating User-Defined Protocols with Freeport Mode
    • Using Modems and STEP 7--Micro/WIN with Your Network
    • Advanced Topics
    • Configuring the RS-232/PPI Multi-Master Cable for Remote Operation
  • 8 Hardware Troubleshooting Guide and Software Debugging Tools
    • Features for Debugging Your Program
    • Displaying the Program Status
    • Using a Status Chart to Monitor and Modify the Data in the S7-200
    • Forcing Specific Values
    • Running Your Program for a Specified Number of Scans
    • Hardware Troubleshooting Guide
  • 9 Creating a Program for the Position Module
    • Features of the Position Module
    • Configuring the Position Module
    • Position Instructions Created by the Position Control Wizard
    • Sample Programs for the Position Module
    • Monitoring the Position Module with the EM 253 Control Panel
    • Error Codes for the Position Module and the Position Instructions
    • Advanced Topics
  • 10 Creating a Program for the Modem Module
    • Features of the Modem Module
    • Using the Modem Expansion Wizard to Configure the Modem Module
    • Overview of Modem Instructions and Restrictions
    • Instructions for the Modem Module
    • Sample Program for the Modem Module x
    • S7-200 CPUs that Support Intelligent Modules
    • Special Memory Location for the Modem Module
    • Advanced Topics
    • Messaging Telephone Number Format
    • Text Message Format
    • CPU Data Transfer Message Format
  • 11 Using the USS Protocol Library to Control a MicroMaster Drive
    • Requirements for Using the USS Protocol
    • Calculating the Time Required for Communicating with the Drive
    • Using the USS Instructions
    • Instructions for the USS Protocol
    • Sample Programs for the USS Protocol
    • USS Execution Error Codes
    • Connecting and Setting Up the MicroMaster Series 3 Drive
    • Connecting and Setting Up the MicroMaster Series 4 Drive
  • 12 Using the Modbus Protocol Library
    • Requirements for Using the Modbus Protocol
    • Initialization and Execution Time for the Modbus Protocol
    • Modbus Addressing
    • Using the Modbus Slave Protocol Instructions
    • Instructions for the Modbus Slave Protocol
  • A Technical Specifications
    • General Technical Specifications
    • CPU Specifications
    • Digital Expansion Modules Specifications
    • Analog Expansion Modules Specifications
    • Thermocouple and RTD Expansion Modules Specifications
    • EM 277 PROFIBUS--DP Module Specifications
    • EM 241 Modem Module Specifications
    • EM 253 Position Module Specifications
    • (CP 243--1) Ethernet Module Specifications
    • (CP 243--1 IT) Internet Module Specifications
    • (CP 243--2) AS--Interface Module Specifications
    • Optional Cartridges
    • I/O Expansion Cable
    • RS-232/PPI Multi-Master Cable and USB/PPI Multi-Master Cable
    • Input Simulators
  • B Calculating a Power Budget
  • C Error Codes
    • Fatal Error Codes and Messages
    • Run-Time Programming Problems
    • Compile Rule Violations
  • D Special Memory (SM) Bits xi
    • SMB0: Status Bits
    • SMB1: Status Bits
    • SMB2: Freeport Receive Character
    • SMB3: Freeport Parity Error
    • SMB4: Queue Overflow
    • SMB5: I/O Status
    • SMB6: CPU ID Register
    • SMB7: Reserved
    • SMB8 to SMB21: I/O Module ID and Error Registers
    • SMW22 to SMW26: Scan Times
    • SMB28 and SMB29: Analog Adjustment
    • SMB30 and SMB130: Freeport Control Registers
    • SMB31 and SMW32: Permanent Memory (EEPROM) Write Control
    • SMB34 and SMB35: Time Interval Registers for Timed Interrupts
    • SMB36 to SMB65: HSC0, HSC1, and HSC2 Register
    • SMB66 to SMB85: PTO/PWM Registers
    • SMB86 to SMB94, and SMB186 to SMB194: Receive Message Control
    • SMW98: Errors on the Expansion I/O Bus
    • SMB130: Freeport Control Register (see SMB30)
    • SMB131 to SMB165: HSC3, HSC4, and HSC5 Register
    • SMB166 to SMB185: PTO0, PTO1 Profile Definition Table
    • SMB186 to SMB194: Receive Message Control (see SMB86 to SMB94)
    • SMB200 to SMB549: Intelligent Module Status
  • E S7-200 Order Numbers
  • F Execution Times for STL Instructions
  • G S7-200 Quick Reference Information
  • Index

Product Overview

The S7-200 series of micro-programmable logic controllers (Micro PLCs) can control a wide variety of devices to support your 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 controlling a wide variety of applications.

In This Chapter

S7-200 CPU.......................................................................... 2

S7-200 Expansion Modules............................................................. 3 STEP 7--Micro/WIN Programming Package................................................ 3 Communications Options............................................................... 4 Display Panels........................................................................ 4

1

S7-200 Programmable Controller System Manual

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 LEDs Status LEDs: System Fault RUN STOP

Optional cartridge: EEPROM Real-time Clock Battery

Communications port

Terminal connector (removable on CPU 224, CPU 226 and CPU 226XM)

Clip for installation on a standard (DIN) rail

Access door: Mode selector switch (RUN/STOP) Analog adjustment potentiometer(s) Expansion port (for most CPUs)

Figure 1-1 S7-200 Micro PLC

Siemens provides different S7-200 CPU models with a diversity of features and capabilities 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 226 CPU 226XM Physical size (mm) 90 x 80 x 62 90 x 80 x 62 120.5 x 80 x 62 190 x 80 x 62 190 x 80 x 62 Program memory 4096 bytes 4096 bytes 8192 bytes 8192 bytes 16384 bytes Data memory 2048 bytes 2048 bytes 5120 bytes 5120 bytes 10240 bytes Memory backup 50 hours typical 50 hours typical 190 hours typical 190 hours typical 190 hours typical Local on-board I/O 6 In/4 Out 8 In/6 Out 14 In/10 Out 24 In/16 Out 24 In/16 Out Expansion modules 0 modules 1 2 modules 1 7 modules 1 7 modules 1 7 modules 1 High-speed counters Single phase Two phase

4 at 30 kHz 2 at 20 kHz

4 at 30 kHz 2 at 20 kHz

6 at 30 kHz 4 at 20 kHz

6 at 30 kHz 4 at 20 kHz

6 at 30 kHz 4 at 20 kHz Pulse outputs (DC) 2 at 20 kHz 2 at 20 kHz 2 at 20 kHz 2 at 20 kHz 2 at 20 kHz 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--

Floating-point math Yes Digital I/O image size 256 (128 in, 128 out) Boolean execution speed

0.37 microseconds/instruction

(^1) You must calculate your power budget to determine how much power (or current) the S7-200 CPU can provide for your configuration. If the CPU power budget is exceeded, you may not be able to connect the maximum number of modules. See Appendix A for CPU and expansion module power requirements, and Appendix B to calculate your power budget.

1

S7-200 Programmable Controller System Manual

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 NT, Windows 2000, or Windows XP Professional 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 connects 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.

Display Panels

TD 200 Text Display Unit

The TD 200 is a 2-line, 20-character, text display device that can be connected to the S7-200. Using the TD 200 wizard, you can easily program your S7-200 to display text messages and other data pertaining to your application.

The TD 200 provides a low cost interface to your application by allowing you to view, monitor, and change the process variables pertaining to your application.

A separate manual describes the detailed functionality and specifications of the TD 200.

The TD 200 Configuration Wizard in STEP 7--MicroWIN helps you configure TD 200 messages quickly and easily. To start the TD Wi d l h T l TD Wi d

g q y y 200 Wizard, select the Tools > TD 200 Wizard menu command.

Figure 1-3 TD 200 Text Display Unit

TP070 Touch Panel Display

The TP070 is a touch panel display device that can be connected to the S7-200. This touch panel provides you with a means to customize your operator interface.

The TP070 can display custom graphics, slider bars, application variables, custom user buttons, and so forth, by means of a user-friendly touch panel.

The optional TP--Designer for TP070, Version 1.0 CD provides the TP Designer software, which is required for programming your TP070.q p g g y Figure 1-4 TP070 Touch Panel Unit

TD 200

Getting Started

STEP 7--Micro/WIN makes it easy for you to program your S7-200. In just a few short steps using a simple example, you can learn how to connect, program, and run your S7-200.

All you need for this example is a PPI Multi-Master cable, an S7-200 CPU, and a programming device running the STEP 7--Micro/WIN programming software.

In This Chapter

Connecting the S7-200 CPU............................................................ 6 Creating a Sample Program............................................................. 9 Downloading the Sample Program....................................................... 12 Placing the S7-200 in RUN Mode........................................................ 12

2

Getting Started Chapter 2

Connecting the RS-232/PPI Multi-Master Cable

Figure 2-2 shows an RS-232/PPI Multi-Master cable connecting the S7-200 to the programming device. To connect the cable:

  1. Connect the RS-232 connector (marked “PC”) of the RS-232/PPI Multi-Master cable to the communications port of the programming device. (For this example, connect to COM 1.)
  2. Connect the RS-485 connector (marked “PPI”) of the RS-232/PPI Multi-Master cable to Port 0 or Port 1 of the S7-200.
  3. Ensure that the DIP switches of the RS-232/PPI Multi-Master cable are set as shown in Figure 2-2.

1 2 3 4 5 6 7 8

RS-232/PPI Multi-Master Cable

S7-

Programming Device

↑1 -- On ↓0 -- Off

Figure 2-2 Connecting the RS-232/PPI Multi-Master Cable

Starting STEP 7--Micro/WIN

Click on the STEP 7--Micro/WIN icon to open a new project. Figure 2-3 shows a new project.

Notice the navigation bar. You can use the icons on the navigation bar to open elements of the STEP 7--Micro/WIN project.

Click on the Communications icon in the navigation bar to display the Communications dialog box. You use this dialog box to set up the communications for STEP 7--Micro/WIN.

Navigation bar

Communications icon

Figure 2-3 New STEP 7--Micro/WIN Project

2

S7-200 Programmable Controller System Manual

Verifying the Communications Parameters for STEP 7--Micro/WIN

The example project uses the default settings for STEP 7--Micro/WIN and the RS-232/PPI Multi-Master cable. To verify these settings:

  1. Verify that the address of the PC/PPI cable in the Communications dialog box is set to 0.
  2. Verify that the interface for the network parameter is set for PC/PPI cable(COM1).
  3. Verify that the transmission rate is set to 9.6 kbps.

If d t h i ti

If you need to change your communications parameter settings, see Chapter 7.

Figure 2-4 Verifying the Communications Parameters

Establishing Communications with the S7-

Use the Communications dialog box to connect with your S7-200 CPU:

  1. Double-click the refresh icon in the Communications dialog box. STEP 7--Micro/WIN searches for the S7-200 station and displays a CPU icon for the connected S7-200 station.
  2. Select the S7-200 and click OK.

If STEP 7--Micro/WIN does not find your S7-200 CPU, check the settings for the communications parameters and repeat these steps.

After you have established communications with the S7 200 you are ready to create and

with the S7-200, you are ready to create and download the example program. Figure 2-5 Establishing Communications to the S7-