s7200 - System - Manual - en-US 16-26

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

S7-200 Programmable Controller System Manual

What’s 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 LEDs Access door:


Status LEDs: Mode selector switch (RUN/STOP)
System Fault/Diagnostic Analog adjustment potentiometer(s)
(SF/DIAG) Expansion port (for most CPUs)
RUN
STOP
Terminal connector
Optional cartridge: (removable on CPU 224, CPU 224XP
Memory Cartridge and CPU 226)
Real-time Clock
Battery
Communications port Clip for installation on a standard (DIN) rail

Figure 1-1 S7-200 Micro PLC

2
Product Overview Chapter 1

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


CPU 224XP
Feature CPU 221 CPU 222 CPU 224 CPU 226
CPU 224XPsi
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 4096 bytes 4096 bytes 8192 bytes 12288 bytes 16384 bytes
without run mode edit 4096 bytes 4096 bytes 12288 bytes 16384 bytes 24576 bytes
Data memory 2048 bytes 2048 bytes 8192 bytes 10240 bytes 10240 bytes
Memory backup 50 hours 50 hours 100 hours 100 hours 100 hours
typical typical typical typical typical
Local on-board I/O
Digital 6 In/4 Out 8 In/6 Out 14 In/10 Out 14 In/10 Out 24 In/16 Out
Analog -- -- -- 2 In/1 Out --
Expansion modules 0 modules 2 modules1 7 modules1 7 modules1 7 modules1
High-speed counters
Single phase 4 at 30 kHz 4 at 30 kHz 6 at 30 kHz 4 at 30 kHz 6 at 30 kHz
2 at 200 kHz
Two phase 2 at 20 kHz 2 at 20 kHz 4 at 20 kHz 3 at 20 kHz 4 at 20 kHz
1 at 100 kHz
Pulse outputs (DC) 2 at 20 kHz 2 at 20 kHz 2 at 20 kHz 2 at 100 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--485
Floating-point math Yes
Digital I/O image size 256 (128 in, 128 out)
Boolean execution 0.22 microseconds/instruction
speed

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.

3
S7-200 Programmable Controller System Manual

S7-200 Expansion Modules


To better solve your application requirements, the S7-200 family includes a wide variety 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 specific module, see Appendix A.

Table 1-2 S7-200 Expansion Modules


Expansion Type
Modules
Discrete modules
Input 8 x DC In 8 x AC In 16 x DC In
Output 4 x DC Out 4 x Relays 8 x Relay
8 x DC Out 8 x AC Out
Combination 4 x DC In/ 8 x DC In/ 16 x DC In/ 32 x DC In/
4 x DC Out 8 x DC Out 16 x DC Out 32 x DC Out
4 x DC In / 8 x DC In / 16 x DC In/ 32 x DC In/
4 x Relay 8 x Relay 16 x Relay 32 x Relay
Analog modules
Input 4 x Analog In 8 x Analog In 4 x Thermocouple In 8 x Thermocouple In
2 x RTD In 4 x RTD In
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 MS1
1 Detailed information not included in Appendix A. Please refer to your module documentation.

4
Product Overview Chapter 1

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

5
S7-200 Programmable Controller System Manual

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 TD 100C TD 200


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. TD400C
TD 200C
- The TD 200 has a faceplate which
provides four keys with predefined,
set-bit functions and allows up to
Text Display eight set-bit functions.
- The TD400C can have a 2- 2 or
4-line text display depending on Figure 1-3 Text Display Units
your font and character choice.
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 configure Text Display messages
quickly and easily. To start the Text Display wizard, select the Tools > Text Display Wizard menu
command.

Operator and 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 configuration 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
additional applications. This feature
enables its use even when space is Figure 1-4 Operator and Touch Panel Displays
restricted.

6
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Creating a Sample Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Downloading the Sample Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Placing the S7-200 in RUN Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

7
S7-200 Programmable Controller System Manual

Connecting the S7-200 CPU


Connecting your S7-200 is easy. For this example, you only need to connect power to your
S7-200 CPU and then connect the communications cable between your programming device and
the S7-200 CPU.

Connecting Power to the S7-200 CPU


The first step is to connect the S7-200 to a power source. Figure 2-1 shows the wiring
connections for either a DC or an AC model of the S7-200 CPU.

Before you install or remove any electrical device, ensure that the power to that equipment has
been turned off. Always follow appropriate safety precautions and ensure that power to the
S7-200 is disabled before attempting to install or remove the S7-200.

Warning
Attempts to install or wire the S7-200 or related equipment with power applied could cause
electric shock or faulty operation of equipment. Failure to disable all power to the S7-200 and
related equipment during installation or removal procedures could result in death or serious
injury to personnel, and/or damage to equipment.
Always follow appropriate safety precautions and ensure that power to the S7-200 is disabled
before attempting to install or remove the S7-200 or related equipment.

24 VDC 85 to 265 VAC

DC Installation AC Installation

Figure 2-1 Connecting Power to the S7-200 CPU

8
Getting Started Chapter 2

Connecting the RS-232/PPI Multi-Master Cable


Figure 2-2 shows an RS-232/PPI
Programming
Multi-Master cable connecting the
Device
S7-200 to the programming device. To
connect the cable:
S7-200
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 RS-232/PPI
example, connect to COM 1.) Multi-Master Cable
2. Connect the RS-485 connector
(marked “PPI”) of the RS-232/PPI ↑1 -- On
Multi-Master cable to Port 0 or ↓0 -- Off
Port 1 of the S7-200. 1 2 3 4 5 6 7 8

3. Ensure that the DIP switches of


the RS-232/PPI Multi-Master cable
are set as shown in Figure 2-2. Figure 2-2 Connecting the RS-232/PPI Multi-Master Cable

Tip
Examples in this manual use the RS-232/PPI Multi-Master cable. The RS-232/PPI Multi-Master
cable replaces the previous PC/PPI cable. A USB/PPI Multi-Master cable is also available.
Refer to Appendix E for order numbers.

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.
Navigation bar
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 Communications icon
navigation bar to display the
Communications dialog box. You use
this dialog box to set up the
communications for STEP 7--Micro/WIN.

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

9
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 you need to change your
communications parameter settings, see
Chapter 7.

Figure 2-4 Verifying the Communications Parameters

Establishing Communications with the S7-200


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
co u cat o s with
t the
t e S7-200,
S 00, you
are ready to create and download the Figure 2-5 Establishing Communications to the S7-200
example program.

Creating a Sample Program


Entering this example of a control program will help you understand how easy it is to use
STEP 7--Micro/WIN. This program uses six instructions in three networks to create a very simple,
self-starting timer that resets itself.
For this example, you use the Ladder (LAD) editor to enter the instructions for the program. The
following example shows the complete program in both LAD and Statement List (STL). The
network comments in the STL program explain the logic for each network. The timing diagram
shows the operation of the program.

10
Getting Started Chapter 2

Example: Sample Program for getting started with STEP 7-- Micro/WIN

Network 1 //10 ms timer T33 times out after


//(100 x 10 ms = 1 s) M0.0 pulse is
// too fast to monitor with Status view.
LDN M0.0
TON T33, +100
Network 2 //Comparison becomes true at a
//rate that is visible with
//Status view. Turn on Q0.0 after
//(40 x 10 ms = 0.4 s), for a
// 40% OFF/60% ON waveform.
LDW>= T33, +40
= Q0.0
Network 3 //T33 (bit) pulse too fast to monitor with
//Status view. Reset the timer through
//M0.0 after the (100 x 10 ms = 1 s) period.
LD T33
= M0.0

Timing Diagram
current = 100

current = 40

T33 (current) 0.4s 0.6s

T33 (bit)
M0.0

Q0.0

Opening the Program Editor


Click on the Program Block icon to open
the program editor. See Figure 2-6.
Notice the instruction tree and the
program editor. You use the instruction
tree to insert the LAD instructions into
the networks of the program editor by
dragging and dropping the instructions
from the instruction tree to the networks. Program editor
The toolbar icons provide shortcuts to
the menu commands.
After you enter and save the program, Instruction tree
you can download the program to the
S7-200.

Figure 2-6 STEP 7--Micro/WIN Window

11
S7-200 Programmable Controller System Manual

Entering Network 1: Starting the Timer


When M0.0 is off (0), this contact turns on and provides power flow to start the timer. To enter the
contact for M0.0:

1. Either double-click the Bit Logic


icon or click on the plus sign (+) to
display the bit logic instructions.
2. Select the Normally Closed
contact.
3. Hold down the left mouse button
and drag the contact onto the first
network.
4. Click on the “???” above the
contact and enter the following
address: M0.0
5
5. Press the Return key to enter the
Figure 2-7 Network 1
address for the contact.
To enter the timer instruction for T33:

1. Double-click the Timers icon to display the timer instructions.


2. Select the TON (On-Delay Timer).
3. Hold down the left mouse button and drag the timer onto the first network.
4. Click on the “???” above the timer box and enter the following timer number: T33
5. Press the Return key to enter the timer number and to move the focus to the preset time
(PT) parameter.
6. Enter the following value for the preset time: 100
7. Press the Return key to enter the value.

Entering Network 2: Turning the Output On


When the timer value for T33 is greater than or equal to 40 (40 times 10 milliseconds, or 0.4
seconds), the contact provides power flow to turn on output Q0.0 of the S7-200. To enter the
Compare instruction:

1. Double-click the Compare icon to display the compare instructions. Select the >=I
instruction (Greater-Than-Or-Equal-To-Integer ).
2. Hold down the left mouse button
and drag the compare instruction
onto the second network.
3. Click on the “???” above the
contact and enter the address for
the timer value: T33
4. Press the Return key to enter the
timer number and to move the
focus to the other value to be
compared with the timer value.
5. Enter the following value to be
compared
p with the timer value: 40
6. Press the Return key to enter the Figure 2-8 Network 2
value.
To enter the instruction for turning on output Q0.0:

1. Double-click the Bit Logic icon to display the bit logic instructions and select the output coil.
2. Hold down the left mouse button and drag the coil onto the second network.
3. Click on the “???” above the coil and enter the following address: Q0.0
4. Press the Return key to enter the address for the coil.

12

You might also like