indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
Qualified Personnel
personnel qualified
Proper use of Siemens products
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
Disclaimer of Liability
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
The product/system described in this documentation may be operated only by
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Note the following:
for the specific
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
07/2015 Subject to change
Preface
Purpose of the manual
Required basic knowledge
Scope of the manual
Certification, CE label and other standards
Service and support
The S7-200 SMART 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 SMART a perfect solution for controlling small
applications. The wide variety of S7-200 SMART models and the Windows-based
programming tool give you the flexibility you need to solve your automation problems.
This manual provides information about installing and programming the S7-200 SMART
CPUs and is designed for engineers, programmers, installers, and electricians who have a
general knowledge of programmable logic controllers.
To understand this manual, it is necessary to have a general knowledge of automation and
programmable logic controllers.
This manual describes the following products:
● STEP 7-Micro/WIN SMART V2.01
● S7-200 SMART CPU firmware release V2.1
For a complete list of the S7-200 SMART products and article numbers described in this
manual, see Technical Specifications (Page 565).
Refer to the technical specifications for more information.
In addition to our documentation, we offer our technical expertise on the Internet on the
customer support web site (http://www.siemens.com/automation/).
Contact your Siemens distributor or sales office for assistance in answering any technical
questions, for training, or for ordering S7 products. 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 you might encounter.
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
3
Preface
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, solutions, machines, equipment and/or networks. They are
important components in a holistic industrial security concept. With this in mind, Siemens’
products and solutions undergo continuous development. Siemens recommends strongly
that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable
preventive action (e.g. cell protection concept) and integrate each component into a holistic,
state-of-the-art industrial security concept. Third-party products that may be in use should
also be considered. You can find more information about industrial security on the Internet
(http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific
newsletter. You can find more information on the Internet
(http://support.automation.siemens.com).
2 Getting started ......................................................................................................................................... 25
7 Program instructions .............................................................................................................................. 149
6.1 Configuring the operation of the PLC system ....................................................................... 115
6.1.1 System block ......................................................................................................................... 115
6.1.2 Configuring communication .................................................................................................. 117
6.1.3 Configuring the digital inputs ................................................................................................ 119
6.1.4 Configuring the digital outputs .............................................................................................. 121
6.1.5 Configuring the retentive ranges ........................................................................................... 122
6.1.6 Configuring system security .................................................................................................. 124
6.1.7 Configuring the startup options ............................................................................................. 128
6.1.8 Configuring the analog inputs ............................................................................................... 129
6.1.9 Reference to the analog inputs technical specifications ....................................................... 131
6.1.10 Configuring the analog outputs ............................................................................................. 132
6.1.11 Reference to the analog outputs technical specifications..................................................... 133
6.1.12 Configuring the RTD analog inputs ....................................................................................... 134
6.1.13 Configuring the TC analog inputs ......................................................................................... 139
6.1.14 Configuring the RS485/RS232 CM01 communications signal board ................................... 143
6.1.15 Configuring the BA01 battery signal board ........................................................................... 144
7.14 Shift and rotate ..................................................................................................................... 315
7.14.1 Shift and rotate ..................................................................................................................... 315
S7-200 SMART
8System Manual, 09/2015, A5E03822230-AC
Table of contents
8 Communication ...................................................................................................................................... 353
7.14.2 Shift register bit ..................................................................................................................... 317
10 Debugging and troubleshooting ............................................................................................................. 453
11 PID loops and tuning ............................................................................................................................. 467
12 Open loop motion control ....................................................................................................................... 481
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
11
Table of contents
A Technical specifications ......................................................................................................................... 565
A.2.1 CPU ST20 and CPU SR20 .................................................................................................. 570
A.2.1.1 General specifications and features..................................................................................... 570
A.2.1.2 Digital inputs and outputs ..................................................................................................... 573
A.2.1.3 CPU ST20 and CPU SR20 wiring diagrams ........................................................................ 575
A.2.2 CPU ST30 and CPU SR30 .................................................................................................. 577
A.2.2.1 General specifications and features..................................................................................... 577
A.2.2.2 Digital inputs and outputs ..................................................................................................... 580
A.2.2.3 CPU ST30 and CPU SR30 wiring diagrams ........................................................................ 582
A.2.3 CPU ST40, CPU SR40, and CPU CR40 ............................................................................. 584
A.2.3.1 General specifications and features..................................................................................... 584
A.2.3.2 Digital inputs and outputs ..................................................................................................... 587
S7-200 SMART
12System Manual, 09/2015, A5E03822230-AC
Table of contents
B Calculating a power budget ................................................................................................................... 653
C Error codes ............................................................................................................................................ 657
A.2.3.3 CPU ST40, SR40 and CR40 wiring diagrams ...................................................................... 590
A.2.4 CPU ST60, CPU SR60, and CPU CR60 .............................................................................. 593
A.2.4.1 General specifications and features ..................................................................................... 593
A.2.4.2 Digital inputs and outputs ..................................................................................................... 596
A.2.4.3 CPU ST60, SR60 and CR60 wiring diagrams ...................................................................... 599
A.2.5 Wiring diagrams for sink and source input, and relay output ............................................... 602
A.3 Digital inputs and outputs expansion modules (EMs) ........................................................... 603
A.3.1 EM DE08 digital input specifications ..................................................................................... 603
A.3.2 EM DT08 and EM DR08 digital output specifications ........................................................... 604
A.3.3 EM DT16, EM DR16, EM DT32, and EM DR32 digital input/output specifications .............. 607
A.4 Analog inputs and outputs expansion modules (EMs) ......................................................... 613
A.4.1 EM AE04 and EM AE08 analog input specifications ............................................................ 613
A.4.2 EM AQ02 and EM AQ04 analog output module specifications ............................................ 616
A.4.3 EM AM03 and EM AM06 analog input/output module specifications ................................... 618
A.4.4 Step response of the analog inputs ...................................................................................... 623
A.4.5 Sample time and update times for the analog inputs ........................................................... 623
A.4.6 Measurement ranges of the analog inputs for voltage and current (SB and EM) ................ 624
A.4.7 Measurement ranges of the analog outputs for voltage and current (SB and EM) .............. 625
A.5 Thermocouple and RTD expansion modules (EMs) ............................................................. 626
D.21 SMB186-SMB194: Receive message control (See SMB86-SMB94) .................................. 685
D.22 SMB480-SMB515: Data log status ...................................................................................... 685
D.23 SMB600-SMB749: Axis (0, 1, and 2) open loop motion control .......................................... 686
D.24 SMB650-SMB699: Axis 1 open loop motion control (See SMB600-SMB740) .................... 687
D.25 SMB700-SMB749: Axis 2 open loop motion control (See SMB600-SMB740) .................... 687
D.26 SMB1000-SMB1049: CPU hardware/firmware ID ............................................................... 688
D.27 SMB1050-SMB1099: SB (signal board) hardware/firmware ID ........................................... 688
D.28 SMB1100-SMB1399: EM (expansion module) hardware/firmware ID ................................ 689
D.29 SMB1400-SMB1699: EM (expansion module) module-specific data .................................. 691
S7-200 SMART
14System Manual, 09/2015, A5E03822230-AC
Table of contents
E References ............................................................................................................................................ 693
F Ordering information .............................................................................................................................. 705
Index ...................................................................................................................................................... 709
E.1 Often-used special memory bits ........................................................................................... 693
E.2 Interrupt events in priority order ............................................................................................ 694
F.4 Communication ..................................................................................................................... 706
F.5 Spare parts and other hardware ........................................................................................... 706
F.6 Human Machine Interface devices ....................................................................................... 708
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
15
Table of contents
S7-200 SMART
16System Manual, 09/2015, A5E03822230-AC
1
The S7-200 SMART series of micro-programmable logic controllers (Micro PLCs) can control
a wide variety of devices to support your automation needs.
The CPU 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 SMART a perfect solution for controlling a wide variety of
applications.
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
17
Product overview
1.1
S7-200 SMART CPU
①
LEDs for the I/O
②
Terminal connectors
③
Ethernet communication
port
④
Clip for installation on a
standard (DIN) rail
⑤
Ethernet status LEDs
(under door): LINK, Rx/Tx
⑥
Status LEDs: RUN, STOP
and ERROR
⑦
RS485 Communication
port
⑧
Optional signal board
(Standard models only)
⑨
Memory card connection
(under door)
CR40
CR60
SR20
ST20
SR30
ST30
SR40
ST40
SR60
ST60
Compact, non-expandable
X X
Standard, expandable
X X X X X X X X Relay output
X X X X X X Transistor output (DC)
X X X
X
I/O points (built-in)
40
60
20
20
30
30
40
40
60
60
1.1 S7-200 SMART CPU
The CPU combines a microprocessor, an integrated power supply, input circuits, and output
circuits in a compact housing to create a powerful Micro PLC. After you have downloaded
your program, the CPU contains the logic required to monitor and control the input and
output devices in your application.
The CPU provides different models with a diversity of features and capabilities that help you
create effective solutions for your varied applications. The different models of CPUs are
shown below. For detailed information about a specific CPU, see the technical specifications
(Page 570).
Table 1- 1 S7-200 SMART CPUs
S7-200 SMART
18System Manual, 09/2015, A5E03822230-AC
Product overview
Features
CPU CR40
CPU CR60
Dimensions: W x H x D (mm)
125 x 100 x 81
175 x 100 x 81
User data
8 Kbytes
8 Kbytes
Expansion modules
None
None
Signal board
None
None
2 at 50 K Hz A/B phase
2 at 50 K Hz A/B phase
PID loops
8 8 Real-time clock with 7-day back-up
No
No
1
ues on retentive timers) to be retentive, up to the specified maximum amount.
Features
CPU SR20, CPU
ST20
CPU SR30, CPU
ST30
CPU SR40, CPU
ST40
CPU SR60, CPU
ST60
Dimensions: W x H x D (mm)
90 x 100 x 81
110 x 100 x 81
125 x 100 x 81
175 x 100 x 81
User memory
Program
12 Kbytes
18 Kbytes
24 Kbytes
30 Kbytes
User data
8 Kbytes
12 Kbytes
16 Kbytes
20 Kbytes
Retentive
10 Kbytes max.1
10 Kbytes max.1
10 Kbytes max.1
10 Kbytes max.1
Expansion modules
6 max.
6 max.
6 max.
6 max.
Signal board
1 1 1
1
Pulse outputs 2
2 at 100 KHz
3 at 100 K Hz
3 at 100 KHz
3 at 100 KHz
PID loops
8 8 8 8 Real-time clock with 7-day back-up
Yes
Yes
Yes
Yes
1
2
is not recommended for CPU models with relay outputs.
1.1 S7-200 SMART CPU
Table 1- 2 Compact non-expandable CPUs
User memory Program 12 Kbytes 12 Kbytes
Retentive 10 Kbytes max.1 10 Kbytes max.1
On-board digital I/O
• Inputs
• Outputs
• 24 DI
• 16 DQ Relay
36 DI
24 DQ Relay
High-speed counters 4 at 100 K Hz single phase
or
4 at 100 K Hz single phase
or
You can configure areas of V memory, M memory, C memory (current values), and portions of T memory (current val-
Table 1- 3 Standard expandable CPUs
On-board digital I/O
• Inputs
• Outputs
• 12 DI
• 8 DQ
• 18 DI
• 12 DQ
• 24 DI
• 16 DQ
• 36 DI
• 24 DQ
High-speed counters 4 at 200 K Hz
single phase
or
2 at 100 K Hz A/B
phase
You can configure areas of V memory, M memory, C memory (current values), and portions of T memory (current val-
ues on retentive timers) to be retentive, up to the specified maximum amount.
The specified maximum pulse frequency is possible only for CPU models with transistor outputs. Pulse output operation
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
4 at 200 K Hz single phase
or
2 at 100 K Hz A/B
phase
4 at 200 K Hz single phase
or
2 at 100 K Hz A/B
phase
4 at 200 K Hz single phase
or
2 at 100 K Hz A/B
phase
19
Product overview
1.2
S7-200 SMART expansion modules
Type
Input only
Output only
Combination In/Out
Other
Module
Type
Description
1.2 S7-200 SMART expansion modules
Refer to the technical specifications (Page 565) for the power requirements of the CPU and
the expansion modules. Use the worksheets in Appendix B, Calculating a power budget
(Page 656) to calculate your power budget.
To better solve your application requirements, the S7-200 SMART family includes a wide
variety of expansion modules, signal boards, and a communications module. You can use
these expansion modules with the standard CPU models (SR20, ST20, SR30, ST30, SR40,
ST40, SR60 or ST60) to add additional functionality to the CPU. The following table provides
a list of the expansion modules that are currently available. For detailed information about a
specific module, see the technical specifications (Page 565).
Table 1- 4 Expansion modules and signal boards
Digital expansion module
Analog expansion modules
Signal boards
• 8 x DC In• 8 x DC Out
• 8 x Relay Out
• 4 x Analog In
• 8 x Analog In
• 2 x RTD In
• 4 x RTD In
• 4 x TC In
• 1 x Analog In• 1 x Analog Out• 2 x DC In x 2 x DC Out• RS485/RS232
• 2 x Analog Out
• 4 x Analog Out
Table 1- 5 Communication expansion modules
Communication expansion module
(EM)
PROFIBUS DP SMART module EM DP01 PROFIBUS DP
• 8 x DC In / 8 x DC Out
• 8 x DC In / 8 x Relay Out
• 16 x DC In / 16 x DC Out
• 16 x DC In / 16 x Relay Out
• 4 x Analog In / 2 x Analog Out
• 2 x Analog In / 1 x Analog Out
• Battery Board
S7-200 SMART
20System Manual, 09/2015, A5E03822230-AC
Product overview
1.3
HMI devices for S7-200 SMART
Text Display unit:
to your application.
SMART HMIs:
1.3 HMI devices for S7-200 SMART
The S7-200 SMART supports Comfort HMIs, SMART HMIs, Basic HMIs and Micro HMIs.
The TD400C and the SMART LINE Touch Panel are shown below. Refer to Appendix C,
Human Machine Interface (Page 705) for a complete list of supported devices and article
numbers.
Table 1- 6 HMI devices
The TD400C is a display device that can be connected to
the CPU. Using the Text Display wizard, you can easily program your CPU
to display text messages and other data pertaining to your application.
The TD400C device provides a low cost interface to your application by
allowing you to view, monitor, and change the process variables pertaining
The SMART LINE Touch Panel provides operating and
monitoring functions for small-scale machines and plants. Short configuration and commissioning times, their configuration in WinCC flexible (ASIA
version), and a double-port Ethernet/RS485 interface form the highlights of
these HMIs.
The Text Display wizard in STEP 7-Micro/WIN SMART helps you configure Text Display
messages quickly and easily for the TD400C. To start the Text Display wizard, select the
"Text Display" command from the "Tools" menu.
The SIMATIC Text Display (TD) User Manual can be downloaded from the Siemens
customer support web site.
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
21
Product overview
1.4
Communications options
1.4 Communications options
The S7-200 SMART offers several types of communication between CPUs, programming
devices, and HMIs:
● Ethernet:
– Exchange of data from the programming device to the CPU
– Exchange of data between HMIs and the CPU
– S7 peer-to-peer communication with other S7-200 SMART CPUs
● PROFIBUS:
– High speed communications for distributed I/O (up to 12 Mbps)
– One bus master connects to many I/O devices (supports 126 addressable devices).
– Exchange of data between the master and I/O devices
– EM DP01 module is a PROFIBUS I/O device.
● RS485:
– Supports a total of 126 addressable devices (32 devices per network segment)
– Supports PPI (point-to-point interface) protocol
– Exchange of data between HMIs and the CPU
– Exchange of data between devices and the CPU using Freeport (XMT/RCV
instructions)
● RS232:
– Supports a point-to-point connection to one device
– Supports PPI protocol
– Exchange of data between HMIs and the CPU
– Exchange of data between devices and the CPU using Freeport (XMT/RCV
instructions)
S7-200 SMART
22System Manual, 09/2015, A5E03822230-AC
Product overview
1.5
Programming software
STEP7
SMART provides a
user
edit, and monitor the logic needed to
control your application.
At the top is a quick access toolbar for
frequent tasks, followed by menus for
all common functions. At the left is the
project tree and navigation bar for
easy access to components and i
structions. The program editor and
other components that you open o
cupy the remainder of the us
face.
STEP7
three program editors (LAD, FBD, and
STL) for convenience and efficiency in
developing the control program for
your application.
Computer requirements
Installing STEP 7-Micro/WIN SMART
Note
To install STEP
7 operating system, you
must log in with Administrator privileges.
1.5 Programming software
-Micro/WIN
-friendly environment to develop,
n-
c-
er inter-
-Micro/WIN SMART provides
To help you find the information you need, STEP7-Micro/WIN SMART provides an extensive
online help system.
STEP 7-Micro/WIN SMART runs on a personal computer. Your computer should meet the
following minimum requirements:
● Operating system: Windows XP SP3 (32 bit only), Windows 7 (both 32 bit and 64 bits
supported)
● At least 350M bytes of free hard disk space
● Mouse (recommended)
Insert the STEP 7-Micro/WIN SMART CD into the CD-ROM drive of your computer or
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
contact your Siemens distributor or sales office to download STEP7-Micro/WIN SMART from
the customer support web site (Page 3). Installation starts automatically and prompts you
through the installation process. Refer to the Readme file for more information about
installing STEP 7-Micro/WIN SMART.
7-Micro/WIN SMART on a Windows XP or Windows
23
Product overview
1.6
New features
1.6 New features
STEP 7-Micro/WIN SMART V2.1 and the S7-200 SMART V2.1 CPUs introduce the following
new features:
● New modules:
– EM DP01: intelligent expansion module that supports MPI protocol and PROFIBUS
DP V0, V1 as a slave
– EM AM03: analog expansion module with two analog inputs and one analog output
– EM AR04: analog expansion module with four RTD input channels
– EM AE08: analog expansion module with eight analog input channels
– EM AQ04: analog expansion module with four analog output channels
– SB AE01: signal board with one analog input channel
● Enhancement of the PLS instruction to work with PTO (Pulse Train Output) functions as
well as PWM (Pulse Width Modulation) functions
● Performance enhancements
S7-200 SMART
24System Manual, 09/2015, A5E03822230-AC
2
2.1
Connecting to the CPU
Connecting power to the CPU
WARNING
Ensure power is off prior to installing, wiring or removing devices
STEP 7-Micro/WIN SMART makes it easy for you to program your CPU. In just a few short
steps using a simple example, you can learn how to create a user program that you can
download and run on your CPU.
All you need for this example is an Ethernet cable, a CPU, and a programming device
running the STEP 7-Micro/WIN SMART programming software.
Connecting your CPU is easy. For this example, you only need to connect power to your
CPU and then connect the Ethernet communication cable between your programming device
and the CPU.
Before you install or remove any electrical device, ensure that the power to that equipment
has been turned off.
Attempts to install or connect the wiring for the CPU or related equipment with power
applied could cause electric shock or faulty operation of equipment. Failure to disable all
power to the CPU 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 CPU is disabled
before attempting to install or remove the CPU or related equipment.
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
25
Getting started
DC installation
AC installation
2.1.1
Configuring the CPU for communication
2.1.1.1
Overview
A CPU can communicate with a
STEP
vice on an Ethernet netw
2.1 Connecting to the CPU
Connect the CPU to a power source. The following figure shows the wiring connections for
either a DC or an AC model of the CPU.
7-Micro/WIN SMART programming de-
ork.
Consider the following when setting up communications between a CPU and a programming
device:
● Configuration/Setup: No hardware configuration is required for a single CPU. If you want
multiple CPU's on the same network, then you must change the default IP addresses to
new, unique IP addresses.
● No Ethernet switch is required for one-to-one communications; an Ethernet switch is
required for more than two devices in a network.
S7-200 SMART
26System Manual, 09/2015, A5E03822230-AC
Getting started
2.1.1.2
Establishing the hardware communication connection
①
Ethernet port
2.1.1.3
Setting up communication with the CPU
2.1 Connecting to the CPU
The Ethernet interfaces establish the physical connections between a programming device
and a CPU. Since Auto-Cross-Over functionality is built into the CPU, either a standard or
crossover Ethernet cable can be used for the interface. An Ethernet switch is not required to
connect a programming device directly to a CPU.
Follow the steps below to create the hardware connection between a programming device
and a CPU:
1. Install the CPU.
2. Remove the RJ45 connection cover from the Ethernet port. Retain the cover for reuse.
3. Plug the Ethernet cable into the Ethernet port on top of the CPU as shown below.
4. Connect the Ethernet cable to the programming device.
From STEP 7-Micro/WIN SMART, use one of the following methods to display the
"Communications" dialog for configuring communication to the CPU.
● From the project tree, double-click the "Communications" node.
● Click the "Communications" button
● Select "Communications" from the Component drop-down list in the Windows area of the
View menu ribbon strip.
The "Communication" dialog provides two methods of selecting the CPU to be accessed:
● Click the "Find CPUs" button to have STEP 7-Micro/WIN SMART search your local
network for CPUs. The IP address of each CPU found on the network is listed under
"Found CPUs".
● Click the "Add CPU ..." button to manually enter the access information (IP address and
so forth) for a CPU that you wish to access. The IP address for each CPU, manually
added with this method, is listed under "Added CPUs" and is retained.
from the navigation bar.
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
27
Getting started
parameters and repeat these steps.
2.1 Connecting to the CPU
For "Found CPUs" (CPUs located on your local
network), use the "Communications dialog" to
connect with your CPU:
• Select TCP/IP for your network interface card.
• Click the "Find CPUs" button to display all
operational CPUs ("Found CPUs") on the local
Ethernet network. All CPUs have a default IP
address. See the Note below.
• Highlight a CPU, and then click "OK".
For "Added CPUs" (CPUs on the local or remote
networks), use the "Communications dialog" to
connect with your CPU:
• Select TCP/IP for your network interface card.
• Click the "Add CPU" button to do one of the
following:
– Enter the IP address of a CPU that is ac-
cessible from the programming device, but
is not on the local network.
– Enter the IP address of a CPU directly that
is on the local network.
All CPUs have a default IP address. See the
Note below.
• Highlight a CPU, and then click "OK".
After you have established communication with
the CPU, you are ready to create and download
the example program.
To download all project components, click the
Download button from the Transfer area of the File
or PLC menu ribbon strip, or alternatively press
the shortcut key combination CTRL+D.
S7-200 SMART
If STEP 7-Micro/WIN SMART does not find your
CPU, check the settings for the communications
28System Manual, 09/2015, A5E03822230-AC
Getting started
Note
The CPU list will show all of the CPUs regardless of Ethernet network class and subnet.
To make a connection to your CPU, your network interface card (NIC) and the CPU must be
on the same class of network and on the same subnet. You can either set up your network
interface card to match the default IP address of the CPU, or you can change the IP address
of the CPU to match the network class and subnet of your network interface card.
See the "Configuring or changing an IP address for a CPU or device in your project" for
information about how to accomplish this.
2.2
Creating the sample program
LAD/FBD
STL
Description
Network 1
LDN M0.0
TON T33, +100
Network 2
LDW>= T33, +40
= M10.0
Network 3
LD T33
= M0.0
Timing diagram:
2.2 Creating the sample program
Entering this example of a control program will help you understand how easy it is to use
STEP 7-Micro/WIN SMART. 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 description column explains the logic for each network. The timing diagram shows the
operation of the program. There are no network comments in the STL program.
Table 2- 1 Sample program for getting started with STEP 7-Micro/WIN SMART
10 ms timer T33 times out after (100 x 10 ms = 1 s)
M0.0 pulse is too fast to monitor with Status view.
Comparison becomes true at a rate that is visible
with Status view. Turn on M10.0 after (40 x 10 ms =
0.4 s) for a 40% OFF / 60% ON waveform.
T33 (bit) pulse is too fast to monitor with Status view.
Reset the timer through M0.0 after the (100 x 10 ms
= 1 s) period.
•① T33 (current)
② Current = 100
•
③ Current = 40
•
④ T33 (bit) and M0.0
•
⑤ M10.0
•
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
29
Getting started
Notice the project tree and the pr
gram editor. You use the project tree
to insert instructions into the networks
of the program editor by dragging and
dropping the instructions from the
"Instructions" portion of the Proj
tree to the networks.
The Program Block folder in the pr
ject tree contains all of the blocks of
your program.
The program editor toolbar icons pr
vide shortcuts to PLC commands and
programming operation.
2.2.1
Network 1: Starting the timer
Network 1: Starting the timer
When M0.0 is off (0), this contact turns
on and provides power flow to start
the timer.
2.2 Creating the sample program
o-
ect
o-
o-
After you enter and save the program, you can download the program to the CPU.
To enter the contact for M0.0:
1. Either double-click the "Bit Logic" icon or click the plus sign (+) to display the bit logic
instructions.
S7-200 SMART
30System Manual, 09/2015, A5E03822230-AC
2. Select the "Normally Closed" contact.
3. Hold down the left mouse button and drag the contact onto the first network.
4. Enter the following address for the contact: M0.0
5. Press the Return key to enter the address for the contact.
Loading...
+ 696 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.