Komunikacja bezprzewodowa MAS5


Micro Application Examples
Wireless signaling and switching via SMS
(with S7-200 and TC65 Terminal)
Micro Automation Set 5
Table of Contents
Micro Automation Set 5 Beitrags-ID 21063345
Note
The Micro Automation Sets are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Micro
Automation Sets do not represent customer-specific solutions. They are only
intended to provide support for typical applications. You are responsible for
ensuring that the described products are used correctly. These Micro
Automation Sets do not relieve you of the responsibility of safely and
professionally using, installing, operating and servicing equipment. When using
these Micro Automation Sets, you recognize that Siemens cannot be made
liable for any damages/claims beyond the liability provisions. We reserve the
right to make changes to these Micro Automation Sets at any time without prior
notice. If there are any deviations between the recommendations provided in
these Micro Automation Sets and other Siemens publications  e.g. Catalogs 
the contents of the other documents have priority.
Warranty, Liability, and Support
We accept no liability for information contained in this document.
Any claims against us  based on whatever legal reason  resulting from the
use of the examples, information, programs, engineering and performance data
etc., described in this Micro Automation Set shall be excluded. Such an
exclusion shall not apply in the case of mandatory liability, e.g. under the
German Product Liability Act ( Produkthaftungsgesetz ), in case of intent, gross
negligence, or injury of life, body or health, guarantee for the quality of a product,
fraudulent concealment of a deficiency or breach of a condition which goes to
the root of the contract ( wesentliche Vertragspflichten ). However, claims
arising from a breach of a condition which goes to the root of the contract shall
be limited to the foreseeable damage which is intrinsic to the contract, unless
caused by intent or gross negligence or based on mandatory liability for injury of
life, body or health. The above provisions do not imply a change in the burden
of proof to your detriment.
Copyright© 2008 Siemens A&D. It is not permissible to transfer or copy
this Micro Automation Sets or excerpts of them without first having prior
written authorization from Siemens A&D.
V2.5 29.01.2008 2/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Table of Contents
Micro Automation Set 5 Beitrags-ID 21063345
Foreword
Micro Automation Sets are fully functional and tested automation
configurations based on A&D standard products for simple, fast and
inexpensive implementation of automation tasks for small-scale automation.
Each of the available Micro Automatic Sets covers a frequently occurring
subtask of a typical customer problem on the low-end performance level.
The sets help you obtain answers with regard to required products and the
question how they function when combined.
However, depending on the system requirements, a variety of other
components (e.g. other CPUs, power supplies, etc.) can be used to
implement the functionality on which this set is based. Please refer to the
respective SIEMENS A&D catalogs for these components.
The Micro Automation Sets are also available at the following link:
http://www.siemens.de/microset
V2.5 29.01.2008 3/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Table of Contents
Micro Automation Set 5 Beitrags-ID 21063345
Table of Contents
Table of Contents..........................................................................................................4
1 Fields of Application and Benefits .................................................................. 5
2 Design ................................................................................................................ 8
2.1 Layout Diagram  Pump station.......................................................................... 9
2.2 Layout Diagram  Visualization station ............................................................. 10
2.3 Layout Diagram  Teleservice station............................................................... 10
3 Hardware and Software Components ........................................................... 11
4 Function Principle........................................................................................... 14
4.1 Generating process values ............................................................................... 14
4.2 Requesting maintenance .................................................................................. 15
4.3 Requesting a process value.............................................................................. 16
5 Configuring the Startup Software.................................................................. 17
5.1 Preliminary remark ............................................................................................ 17
5.2 Downloading the startup code........................................................................... 17
5.3 Configuring components, pump station............................................................. 18
5.3.1 Installing and wiring the hardware..................................................................... 18
5.3.2 Configuring S7-200 CPU and downloading the user program .......................... 19
5.4 Configuring components, visualization station.................................................. 20
5.4.1 Installing and wiring the hardware..................................................................... 20
5.4.2 Configuring S7-200 CPU and downloading the user program .......................... 22
5.4.3 Configure WinCC flexible station and start the software................................... 23
5.5 Configuring components, teleservice station .................................................... 24
5.5.1 Configuring S7-200 CPU and downloading the user program .......................... 24
5.5.2 Connect components and configure modem for PC ......................................... 25
6 Live Demo ........................................................................................................ 28
6.1 Overview of the functions.................................................................................. 28
6.2 Live-Demo of the pump station ......................................................................... 29
6.2.1 "Initializing" mode.............................................................................................. 29
6.2.2  Manual mode .................................................................................................. 30
6.2.3 "Broadcast" mode ............................................................................................. 33
6.2.4 "Request" mode: ............................................................................................... 34
6.3 Live demo of visualization station ..................................................................... 36
6.4 Live demo of teleservice station........................................................................ 40
6.4.1 "Initializing" and "Manual" mode ....................................................................... 40
6.4.2 "Teleservice" mode ........................................................................................... 40
7 Technical data ................................................................................................. 42
V2.5 29.01.2008 4/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Fields of Application and Benefits
Micro Automation Set 5 Beitrags-ID 21063345
1 Fields of Application and Benefits
Automation Task
The freshwater supply of a community is pumped into a reservoir on ground
level using a groundwater pump facility. A controller detects the water level
via a sensor and controls a pump. A temperature sensor monitors the
current pump temperature.
Figure 1-1
Measures for efficient maintenance should be taken for optimizing plant
availability and efficiency.
Alarm messages, such as overheating or due pump maintenance, should
be sent to the service personnel as an SMS message via a GSM modem.
Figure 1-2
Response
Request
Selected process values such as the water level in the reservoir can be
requested by the staff.
Remote maintenance of the controller should be possible. A teleservice
functionality must also exist.
V2.5 29.01.2008 5/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Fields of Application and Benefits
Micro Automation Set 5 Beitrags-ID 21063345
Automation solution  Set 5
For wireless connection of the pump station to a GSM network, the GSM
modem TC65 Terminal is connected with the serial interface of the S7-200
CPU 221.
Fault and operating messages are transmitted to a mobile phone as SMS.
Process data can be requested by the personnel via SMS. The information
is also sent via a short message. Sending the response via telefax or e-mail
is possible.
After the telephone connection with TC65 Terminal has been established
(analog or GSM), it is possible to poll the status of variables and update the
user program with STEP 7-Micro/WIN.
Figure 1-3
The focus in this Micro Automation Set 5 is placed on sending and
receiving of short messages.
All relevant process values such as filling level or operating hours of the
pump are simulated via the user program.
Note
More information on measuring filling levels is available in Micro
Automation Set 3 under the entry number 21689394.
Note
The blocks described here were tested with the GSM modem:
" TC65 Terminal Revision 02.000
" MD720-3 HW version 3.4, FW version 1.7.4
" TC35 Terminal Revision 2.00
" TC35i Revision 3.01
V2.5 29.01.2008 6/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Fields of Application and Benefits
Micro Automation Set 5 Beitrags-ID 21063345
Application Areas
" Remote maintenance, remote diagnostics, remote measurement and
remote control of mobile, remote automatic machines or plant
components
" Distributed tasks in gas, oil and power supply
" Realizing efficient service concepts
" Automatic ordering of material via SMS messages, e-mail or telefax
" Automatic notification of service personnel via SMS
Benefits
" SIMATIC S7-200 sends wireless fault and operating messages via e-
mail, telefax or SMS massage using the GSM modem TC65 Terminal
" Maintenance and service personnel is informed of the plant status via
process values integrated into the message
" Received SMS messages can be evaluated by the SIMATIC S7-200, so
messages can be acknowledged and process sequences be influenced
remotely
" The connection of the controller to the GSM network can also be used
for teleservice purposes. This enables monitoring the current plant
status as well as accessing the control program.
" The TC65 modem can be used in nearly all GSM networks worldwide
world thanks to the quad-band technology.
" By using standard Micro Automation components, automation solutions
offer flexibility to grow with new requirements.
" It is possible to connect the S7-200 controller with PROFIBUS and IE
communication networks by means of an expansion module. This
enables integrating fault and operating messages of already existing
automation plants.
V2.5 29.01.2008 7/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Design
Micro Automation Set 5 Beitrags-ID 21063345
2 Design
Micro Automation Set 5 consists of a pump station which covers all the
requirements described in chapter 1.
Apart from this pump station there are two expansions with additional
functions.
Figure 2-1
S7-221 DC TC65 Terminal
s
s
s
S7-224 XP DC TC65 Terminal Standard PC
s
s
s
s
Visualization WinCC flexible
Standard PC
TC65 Terminal
Teleservice
s
s
s
s
V2.5 29.01.2008 8/43
Pump station
station
Visualization
staiton
Set5_DocTech_V2D5_en.doc
Teleservice
Copyright
©
Siemens AG 2008 All rights reserved
l
o
r
t
n
o
c
,
s
e
u
l
a
v
t
s
e
u
q
e
r
,
e
g
d
e
l
w
o
n
k
c
a
s
e
u
l
a
v
s
s
e
c
o
r
p
,
s
m
r
a
l
a
Design
Micro Automation Set 5 Beitrags-ID 21063345
2.1 Layout Diagram  Pump station
Figure 2-2
line protection switch
L1
N
DC24V+
DC24V-
1 2 3
Pin Signal name Use
SIM card
1 POWER Power supply
2 POWER Power supply
3 EMERGOFF Switch off
4 IGT_IN Switch on
5 GND Ground
male 6-pin antenna
6 GND Ground
Western connector
The basic version of Micro Automation Set 5 consists of a S7-200 CPU 221
DC (2) and a GSM Modem TC65 Terminal (3).
Both components are connected via a PC/PPI cable.
The 24V power supply of the devices is provided by a LOGO! Power 1.3A
(1).
V2.5 29.01.2008 9/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Design
Micro Automation Set 5 Beitrags-ID 21063345
2.2 Layout Diagram  Visualization station
Figure 2-3
line protection switch
L1
N
DC24V+
DC24V-
1 3
2
PC
Apart from the basic version devices, the Micro Automation Set 5, with
expansions for visualization, consists also of a S7-200 CPU 224XP (2) and
a GSM Modem TC65 Terminal (3).
Both components are connected via a PC/PPI cable at port 0 of the S7-200
CPU 224XP. A PC is connected to port 1 of the S7-200 CPU 224XP via a
PC/PPI cable.
The 24V power supply of the devices is provided by a LOGO! Power 1.3A
(1).
2.3 Layout Diagram  Teleservice station
Figure 2-4
network
adapter
2
1
PC
Apart from the basic version devices, the Micro Automation Set 5, with
expansions for visualization, consists also of a further GSM Modem TC65
Terminal (2).
The serial interface of the GSM Modem TC65 Terminal is connected with a
PC via a modem cable.
The 24V DC power supply for the devices is provided by a
SIPLUS plug-in power pack 1.25A (1).
V2.5 29.01.2008 10/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Hardware and Software Components
Micro Automation Set 5 Beitrags-ID 21063345
3 Hardware and Software Components
Pump stations
Products
Table 3-1
Component No. MLFB / Order number Note
LOGO! Power 24V 1.3A 1 6EP1331-1SH02
SIMATIC S7-200 CPU 1 6ES7211-0AA23- DC
221 0XB0
GSM kit TC65 Terminal 1 6AG1011-1CC00-
0AA0
Accessories
Table 3-3
Component No. MLFB / Order number Note
Line protection switch 1 5SX2116-6 1 pole B, 16A
Simulator module 1 6ES7274-1XF00-
SIM274 0XA0
PC/PPI cable 1 6ES7901-3CB30- COM
0XA0
Top hat rail 1 6ES5710-8MA11 19.02 in
Configuration software/tools
Table 3-5
Component No. MLFB / Order number Note
STEP 7 Micro/WIN 1 6ES7810-2CC03-
0YX0
Visualization station
Products
Table 3-4
Component No. MLFB / Order number Note
LOGO! Power 24V 1.3A 1 6EP1331-1SH02
SIMATIC S7-200 CPU 1 6ES7214-2AD23- DC
224XP 0XB0
GSM kit TC65 Terminal 1 6AG1011-1CC00-
0AA0
V2.5 29.01.2008 11/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Hardware and Software Components
Micro Automation Set 5 Beitrags-ID 21063345
Accessories
Table 3-5
Component No. MLFB / Order number Note
Line protection switch 1 5SX2116-6 1 pole B, 16A
PC/PPI cable 2 6ES7901-3CB30- COM
0XA0
Top hat rail 1 6ES5710-8MA11 19.02 in
Configuration software/tools
Table 3-6
Component No. MLFB / Order number Note
WinCC flexible RT 1 6AV6613-1BA01- 128 Tags, see
1CA0 Note
Note
The WinCC flexible version specified here enables you to start and
operate the Runtime file (*.fwx). 128 tags can be displayed here. Should
it become necessary to also edit the project file (*.hmi), other WinCC
flexible licenses are required.
https://mall.automation.siemens.com/
Teleservice station
Products
Table 3-7
Component No. MLFB / Order number Note
SIPLUS plug-in power 1 6AG1011-1DC0-1AA0
pack GSM 24V/1.25A
GSM kit TC65 Terminal 1 6AG1011-1CC00-
0AA0
Accessories
Table 3-8
Component No. MLFB / Order number Note
Modem cable 1 Specialist dealer 1:1
V2.5 29.01.2008 12/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Hardware and Software Components
Micro Automation Set 5 Beitrags-ID 21063345
Note
All CPU types mentioned here can be replaced by a SIPLUS version.
SIPLUS devices are mainly characterized by an extended ambient
temperature (-25... +70°C). Further product information as well as order
numbers can be found at
www.siemens.com/siplus
V2.5 29.01.2008 13/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Function Principle
Micro Automation Set 5 Beitrags-ID 21063345
4 Function Principle
4.1 Generating process values
In Micro Automation Set 5 all process values which are part of the
automation task are simulated.
Simulating the filling level
Table 4-1
No. Function Note
1 hectoliter corresponds to 1
1 The water reservoir in Micro
unit
Automation Set 5 has a volume
of 100 hectoliters.
2 If the pump is active, the filling
Pump
level in the water reservoir is 1sec.
T1
reduced by two units every
tank -2 -2
second.
3 If the pump is inactive, the filling
Pump
level in the water reservoir is 1sec.
T1
increased by four units every
tank
+4 +4
second.
Simulating the pump status
Table 4-2
No. Function Note
33 31 29
1 As soon as the filling level of the
tank
water reservoir has fallen below
Pump
30 units, the pump is started.
78 84 90
2 If the water level has risen to 90
tank
units due to pumping, the pump
Pump
is switched of.
Calculating the operating hours of the pump
Table 4-3
No. Function Note
1 The operating hours counter is 1 hour corresponds to 1
increased by one each second the second
pump is active.
Pump
1s. 1s. 1s.
T1
0 0 0 9
Counter 8 9
V2.5 29.01.2008 14/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Function Principle
Micro Automation Set 5 Beitrags-ID 21063345
4.2 Requesting maintenance
If the plant is due for maintenance, an SMS broadcast is sent from the
pump station to three persons.
Table 4-4
No. Function Note
1 If the operation hours reach a certain number, a start command for
an SMS broadcast is set. In the Live Demo Chapter, the value for
exceeding the threshold is set manually.
2 Three send jobs with different
phone numbers are successively
sent to the service personnel.
Acknowledgement by the
s
s
s
personnel is not necessary.
3 For each send job the start input
(1) of the  SMS_send block is
set once. Prior to that the
1
receiver address (2) and the
message text (3) have been
2
transferred.
3
4 The send job was successfully
processed, when the
 SMS_send block sets the
2
 SMS_send_Done (1) output to
 1 . Then a new send job can be
started by means of a new 1
positive edge at the
 SMS_send_Start input (2).
V2.5 29.01.2008 15/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Function Principle
Micro Automation Set 5 Beitrags-ID 21063345
4.3 Requesting a process value
Table 4-5
No. Function Note
1 The service personnel can request the current filling level of the
freshwater tank.
2 The service representative
sends a request via SMS
s
s
s
specifying the desired measured
value.
3 The service representative
receives the desired measured Filling level
s
s
s
own number
value via SMS to his own mobile
phone number.
4 To recognize the request at the
station, the
 SMS_receive block is called
cyclically every 5 seconds (1).
1
If the
5sec.
 SMS_receive_Done signal
2
bit (2) reports a high signal, an
SMS has been received.
5 The received SMS text is
& & ....
Level&
evaluated regarding the desired
& & & &
& & .
information.
" Filling level:  Level
For the filling level of the pump
station, the term  Level is used
s
s
s
as a keyword.
6 The filling level is then sent to
the service representative by
starting the send procedure (1).
The mobile phone number of the 1
previous SMS is transferred as
2
the receiver address (2). The
3
current filling level is entered as
a message text (3).
V2.5 29.01.2008 16/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
t
s
e
u
q
e
R
)
l
e
v
e
l
g
n
i
l
l
i
f
(
?
4
2
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
5 Configuring the Startup Software
5.1 Preliminary remark
For the startup we offer you software examples with test code and test
parameters as download. The software examples support you during the
first steps and tests with your Micro Automation Sets. They enable quick
testing of the hardware and software interfaces between the products
described in the Micro Automation Sets.
The software examples are always assigned to the components used in the
set and show their basic interaction. However, they are not real applications
in the sense of technological problem solving with definable properties.
5.2 Downloading the startup code
The software examples are available on the HTML page from which you
downloaded this document.
Table 5-1
No. File name Content
1 set5_s7-200-library.mwl Library for sending and
receiving SMS
2 Set5_S7-200_VxDy_en.mwp STEP 7-Micro/WIN
project file for the pump
station
3 Set5_S7-200_Visu_VxDy_en.mwp STEP 7-Micro/WIN
project file for the
visualization station
4 Set5_WinCCflex_Visu_VxDy_en.fwx WinCC flexible Runtime for
the visualization station.
5 Set5_WinCCflex_Visu_VxDy_en.hmi WinCC flexible project file
for the visualization station.
6 Set5_S7-200_Tele_VxDy_en.mwp STEP 7-Micro/WIN
project file for the
teleservice station
Note
All STEP 7 Micro/WIN projects use the  set5_s7-200-libary.mwl
V2.5 29.01.2008 17/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
5.3 Configuring components, pump station
Note
It is assumed here that the necessary software has been installed on
your computer and that you are familiar with handling the software.
5.3.1 Installing and wiring the hardware
Table 5-2
No. Instructions Note
1 Mount the LOGO! Power, S7-200
CPU and the Modem TC65 terminal
onto a top-hat rail.
2 Open the TC65 Terminal and insert
the SIM card of your mobile service SIM card
provider.
TC65 Terminal, side view
3 Attach the simulator for the digital
inputs at the S7-200 CPU.
4 Connect the S7-200 CPU and the See chapter 2.1  Layout diagram 
TC65 modem to the DC 24V supply Pump station .
voltage of LOGO!. Power.
When connection the TC65 Terminal
to the LOGO! Power, pay attention to
the correct polarity!
5 Connect all ground connections to
earth.
6 Connect the modem antennae with
the modem.
TC65 Terminal, side view
7 Switch on the power supply of all
devices.
V2.5 29.01.2008 18/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
5.3.2 Configuring S7-200 CPU and downloading the user program
Table 5-3
No. Instructions Note
1 Connect a free COM port of the PC to
port 0 of the S7-200 controller using
the USB-PC/PPI cable. Use the
following switch positions:
configuration PC
1 2 3 4 5 6 7 8
PC/PPI cable
0 0 0 0 1 0 0 0
2 Make the following settings in the
 PG/PC Interface under
 Start/Settings/Control Panel .
" Access point of the application:
Micro/WIN PC/PPI cable(PPI)
" Transmission rate:
19.2 Kbit/s
" Local connection: COM
" Advanced PPI deactivated
" Multi Master network deactivated
3 Die Datei aus The software document.
Nr. 2 mit STEP 7-Micro/WIN öffnen.
4 Use STEP 7 Micro/WIN to navigate to
the  MAS 5 block.
5 Enter the PIN of your used SIM card.
6 Enter the SMS service center of your
used GSM provider.
7 Enter the desired SMS text for the
operating modes "manual",
"broadcast", and "request" here.
Note:
The variables are already preset and
adjusted to the following Live Demo.
V2.5 29.01.2008 19/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
8 Enter your mobile phone number.
Note:
 Manual mode: Engineer_1
"Broadcast" mode: Engineer_1,
Engineer_2, Engineer_3
"Request" mode: -
9 Enter the desired time delays for
operating modes "broadcast" and
"request".
Note:
The variables are already preset and
adjusted to the following Live Demo.
10 Transfer the project to the S7-200
controller via  File/Load to CPU .
11 Set the S7-200 controller to the
 RUN mode.
12 Remove the connector from the COM
port of your PC and connect the TC65
modem with the S7-200 controller at
s
s
s
port 0 via the PC/PPI cable. Change
the switch positions of the cable.
1 2 3 4 5 6 7 8
PC/PPI cable
1 1 1 0 0 1 1 0
5.4 Configuring components, visualization station
5.4.1 Installing and wiring the hardware
Table 5-4
No. Instructions Note
1 Mount the LOGO! Power, S7-200
CPU and the Modem TC65 terminal
onto a top-hat rail.
2 Open the TC65 Terminal and insert
the SIM card of your mobile service SIM card
provider.
TC65 Terminal, side view
V2.5 29.01.2008 20/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
3 Connect port 0 of the S7-224XP with
the TC65 Terminal. Connect your
configuration station to port 1. A
PC/PPI cable is used for both
connections.
" Switch positions CPU  TC65T
PC/PPI cable
1 2 3 4 5 6 7 8
1 1 1 0 0 1 1 0
" Switch positions S7-CPU / PG/PC
1 2 3 4 5 6 7 8
TC65 Terminal, side view
0 0 0 0 1 0 0 0
s
Configuration PC
4 Connect the S7-200 CPU and the See chapter 2.2
TC65 modem to the DC 24V supply
When connecting the TC65 Terminal
voltage of LOGO!. Power.
to the LOGO! Power, pay attention to
the correct polarity!
5 Connect all ground connections to
earth.
6 Connect the modem antenna with the
modem.
TC65 Terminal, side view
7 Switch on the power supply of all
devices.
V2.5 29.01.2008 21/43
PC/PPI cable
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
5.4.2 Configuring S7-200 CPU and downloading the user program
Table 5-5
No. Instructions Note
1 Set the following settings in the
 PG/PC Interface under
 Start/Settings/Control Panel .
" Access point of the application:
Micro/WIN PC/PPI cable(PPI)
" Transmission rate:
19.2 Kbit/s
" Local connection: COM
" Advanced PPI deactivated
" Multi Master network deactivated
2 Open No. 3 using STEP 7 Micro/WIN.
3 Use STEP 7 Micro/WIN to navigate to
the  MAS 5Option1 block.
4 Enter the PIN of your used SIM card.
5 Enter the SMS service center of your
used GSM provider.
6 Transfer the project to the S7-200
controller via  File/Load to CPU .
7 Set the S7-200 controller to the
 RUN mode.
8 Provide the switches of the PC/PPI
cable for connecting port 1 and your
PC/PG as follows.
" Switch positions S7-CPU / PG/PC
1 2 3 4 5 6 7 8
0 0 0 0 0 0 0 0
V2.5 29.01.2008 22/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
Note
Sending process values from the pump station to the visualization station
during the Live Demo requires changing the receiver address in the user
program of the pump station.
For this you need to change the phone numbers from table 5-3 No. 8.
The new receiver number is the mobile phone number of the SIM card in
the visualization station.
Pump station
s
s
s
Visualization station
s
s
s
5.4.3 Configure WinCC flexible station and start the software
Table 5-6
No. Instructions Note
1 Set the following settings in the
 PG/PC Interface under
 Start/Settings/Control Panel .
" Access point of the application:
S7ONLINE ( PC/PPI cable (PPI)
" Transmission rate:
19.2 Kbit/s
" Local connection: COM
" Advanced PPI deactivated
" Multi Master network deactivated
2 Open No. 4 with WinCC flexible.
V2.5 29.01.2008 23/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
S
M
S
S
M
S
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
5.5 Configuring components, teleservice station
5.5.1 Configuring S7-200 CPU and downloading the user program
Table 5-7
No. Instructions Note
1 Connect a free COM port of the PC to
port 0 of the S7-200 controller using
the USB-PC/PPI cable. Use the
following switch positions:
ConfigurationPC
1 2 3 4 5 6 7 8
PC/PPI cable
0 0 0 0 1 0 0 0
2 Make the following settings in the
 PG/PC Interface under
 Start/Settings/Control Panel .
" Access point of the application:
Micro/WIN PC/PPI cable(PPI)
" Transmission rate:
19.2 Kbit/s
" Local connection: COM
" Advanced PPI deactivated
" Multi Master network deactivated
3 Open No. 6 using STEP 7 Micro/WIN.
4 Use STEP 7 Micro/WIN to navigate to
the  MAS5Option2 data block.
5 Enter the PIN of your used SIM card.
6 Enter the SMS service center of your
used GSM provider.
7 Enter your mobile phone number.
8 Here you enter your SMS text.
9 Transfer the project to the S7-200
controller via  File/Load to CPU .
V2.5 29.01.2008 24/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
10 Set the S7-200 controller to the
 RUN mode.
11 Remove the connector from the COM
port of your PC and connect the TC65
modem with the S7-200 controller at
s
s
s
port 0 via the PC/PPI cable. Change
the switch positions of the cable:
1 2 3 4 5 6 7 8
PC/PPI cable
1 1 1 0 0 1 1 0
5.5.2 Connect components and configure modem for PC
Table 5-8
No. Instructions Note
1 Connect the GSM modem TC65 See chapter 3.2
Terminal to a free COM port of your
PC using the modem cable.
2 Use the network adapter to provide
the power supply for the GSM
modem.
3 Install a Windows standard driver for
the GSM Modem TC65 Terminal.
Open the   Phone and Modem
Options via  Start / Control Panel )
4 Select the  Modem tab (1) and press
1
the  Add... button (2).
2
5 Select the  Don t detect my modem; I
will select it from a list option and
acknowledge with  Next .
V2.5 29.01.2008 25/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
6 Select  Standard Modem Types from
the left selection pane (1). Select
 Standard 9600 bps Modem from the
right pane (2). Click  Next to
1
continue.
2
7 Select the used COM port and
terminate the Add Hardware Wizard
with  Next .
8 Open STEP 7 Micro/WIN via  Start /
Programs / SIMATIC .
9 Open the  Set PG/PC Interface menu
and make the following settings.
" Access point of the application:
Micro/WIN ( PC/PPI cable(PPI)
" Local connection: COM x
" Activate modem connection
" Transmission rate 9.6 kbps
Acknowledge each with  OK .
10 Open the  Communication menu and
double-click the yellow teleservice
icon.
V2.5 29.01.2008 26/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
11 Call the  Modem Connection Settings
by clicking  Properties .
Create a new modem connection via
the  Add button.
12 Specify a connection name (1). Select
1
your previously created modem (2).
Select option (3)  Use this local
modem as a Sell phone modem and
2
confirm your settings with  Next .
3
13 Enter the mobile phone number of the
pump station (1). The gray field (2)
1
displays the mobile phone number to
be dialed as it is chosen by STEP 7-
Micro/WIN. Please ensure that only
2
one leading zero is exists.
Click on  Next to confirm the settings.
14 Enter the SIM PIN of the local station
and confirm the following windows
1
with  Next . Terminate the wizard for
creating a new modem connection.
15 Only one teleservice connection can
be established. Follow the steps in
chapter 6.4 of the Live Demo for
testing the teleservice functionality.
V2.5 29.01.2008 27/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
6 Live Demo
The functions and features of the Micro Automation Set 5 are displayed in
form of an example application for better understanding.
If the components have been correctly configured as described in chapter 5,
the program code can be tested.
Figure 6-1
with with with
Simulator WinCC flexible Micro/WIN
Visualization
Pump station Teleservice station
station
Micro Automation Set 5
The basic version "pump station" is activated via the simulator module.
Here the basic library functions can be tested in combination with the
example program of a pump station.
The "visualization station" is operated via a WinCC flexible screen. The PC-
based visualization enables the display of incoming messages of a
connected control with GSM modem.
The functionality of the "teleservice station" is displayed using STEP 7-
Micro/WIN. This version shows the remote access to the control. The
functions Send SMS and Receive SMS are not displayed here.
6.1 Overview of the functions
The following list provides an overview of the displayed functions of the
individual versions.
Table 6-1
No. Function Pump Visualization Teleservice
station station station
1 Initialize modem Yes Yes Yes
2 Send SMS Yes No Yes
3 Receive SMS Yes Yes No
4 Display / evaluate received message in Yes No No
control
5 Broadcast Yes No No
6 Request process value Yes No No
7 Display/evaluate SMS on PC No Yes No
8 TeleService No No Yes
V2.5 29.01.2008 28/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
6.2 Live-Demo of the pump station
6.2.1 "Initializing" mode
Select "Initializing" mode
Table 6-2
No. Instructions Note
Briefly press the I0.5 switch to switch
to the "initializing" mode.
Perform initialization
Table 6-3
No. Instructions Note
Briefly press the I0.0 switch to start
the initialization action in the
"initializing" mode.
12 The LED of outputs Q0.2 and Q0.3
1s
blink alternately during the
initialization.
13 If the initialization was successful, the
LED of outputs Q0.2 and Q0.3 light up
permanently until a new mode is
chosen.
14 If the initialization was not successful,
1s
the LED of outputs Q0.2 and Q0.3
blink simultaneously until a new mode
is chosen.
V2.5 29.01.2008 29/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
6.2.2  Manual mode
Select  Manual mode
Table 6-4
No. Instructions Note
1 Briefly press the I0.2 switch to switch
to the "manual" mode.
Perform the send procedure
Table 6-5
No. Instructions Note
1 Briefly press the I0.0 switch to start
the Send SMS action in the "manual"
mode.
SMS text
See table 5-3 No. 7
Receiver:
See table 5-3 No. 8
2 The LED of outputs Q0.2 and Q0.3
1s
blink alternately while an action is
carried out in "manual" mode.
3 At the beginning of the Send SMS
action, the Q0.0 output is reset.
If the process terminates
1s
successfully, the LED of output Q0.0
lights up permanently.
If the process does not terminate
successfully, the LED of output Q0.0
blinks.
4 After the process is terminated
(successfully or not), the LED of
outputs Q0.2 and Q0.3 are reset. The
state of the LED of output Q0.0
remains the same.
V2.5 29.01.2008 30/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
Performing the receive procedure
Table 6-6
No. Instructions Note
1 Use your mobile phone to write a brief
message to the call number of the
SIM card in your TC65 modem.
Hello
The text content is not relevant.
s
s
s
2 Briefly press the I0.1 switch to start
the receive procedure.
3 The LED of outputs Q0.2 and Q0.3
1s
blink alternately while an action is
carried out in "manual" mode.
4 At the beginning of the Receive SMS
action, the Q0.1 exit is reset.
If the process terminates
1s
successfully, the LED of output Q0.1
lights up permanently.
If the process does not terminate
successfully, the LED of output Q0.1
blinks.
5 After the process is terminated
(successfully or not), the LED of
outputs Q0.2 and Q0.3 are reset. The
state of the LED of output Q0.1
remains the same.
6 To read the received SMS using
STEP 7 Micro/WIN, the
communication mode of port 0 must
RUN
TERMN
be switched over. To get to PPI mode,
STOP
set the RUN/TERM/STOP switch into
the "STOP" position.
1 2 3 4 5 6 7 8
7 Change the switch of the PC/PPI
cable.
0 0 0 0 0 0 0 0
V2.5 29.01.2008 31/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
8 Remove the plug of the PC/PPI cable
from the serial interface of the TC65
modem and connect the PC with port
0 of the S7-200 controller via this
configuration PC
PC/PPI cable.
PC/PPI cable
9 Open the file using STEP 7
Micro/WIN, see table 5-1 No.2.
10 Activate the table status.
11 Change to the  MAS5-man status
table.
message
The received string contains all
The  VB1226 variable contains the control characters (e.g., $N for line
received text. feed) and, apart from the actual user
data, also information such as index,
send number, data and time.
12 Close the STEP 7 Micro/WIN project.
1 2 3 4 5 6 7 8
13 Connect the PC/PPI cable back to the
TC65 modem: Change the switch
1 1 1 0 0 1 1 0
positions.
14 Return to the
 Freeport communication mode of
Port0 by setting the
RUN
TERMN
RUN/TERM/STOP switch into the
STOP
"RUN" position.
15 The initialization process has to be
repeated.
Chapter 6.2
V2.5 29.01.2008 32/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
6.2.3 "Broadcast" mode
Select "Broadcast" mode
Table 6-7
No. Instructions Note
Briefly press the I0.3 switch to switch
to the "Broadcast" mode.
Execute broadcast
Table 6-8
No. Instructions Note
1 Briefly press the I0.0 switch to start
the Send SMS action to multiple
recipients in the "broadcast" mode.
SMS text
See table 5-3 No. 7
Receiver:
See table 5-3 No. 8
2 The LEDs for outputs Q0.2 and Q0.3
1s
blink alternately while an action is
carried out in "broadcast" mode.
3 A parameterizable delay of 5 seconds
is set between two send processes.
See table 5-3 No. 9
4 Three SMS are sent during the
broadcast . The following behavior
can be observed three times.
1s
At the beginning of the Send SMS
action, the Q0.0 output is reset.
If the process terminates
successfully, the LED of output Q0.0
lights up permanently.
If the process does not terminate
successfully, the LED of output Q0.0
blinks.
V2.5 29.01.2008 33/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
5 After the process is terminated
(successfully or not), the LED of
output Q0.2 and Q0.3 are reset. The
state of the LED of output Q0.0
remains the same.
6.2.4 "Request" mode:
Select "Request" mode:
Table 6-9
No. Instructions Note
Briefly press the I0.3 switch to switch
to the "Request" mode.
Execute request
Table 6-10
No. Instructions Note
1 Briefly press the I0.0 switch to start
the action to receive a request and
send the current filling level in the
"request" mode.
SMS text
See table 5-3 No. 7
Receiver:
Receiver = Sender
2 The LED for outputs Q0.2 and Q0.3
1s
blink alternately while an action is
carried out in "request" mode.
3 In "request" mode the GSM modem is
cyclically checked for a new SMS.
The parameterizable delay is preset to
5 seconds.
See Configuring S7-200 CPU and
downloading the user program
V2.5 29.01.2008 34/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
4 At the beginning of the Receive SMS
action, the Q0.1 exit is reset.
If the process terminates
1s
successfully, the LED on exit Q0.1
lights up permanently.
If the process does not terminate
successfully, the LED on exit Q0.1
blinks.
5 To receive the current filling level of
the pump station a request is sent to
& Level..
the controller.
& & .
Use your mobile phone to write a brief
& & .
s
message to the call number of the s
s
SIM card in your TC65 modem.
6 The short message must include the Note:
following key content.
Please ensure correct upper and
lower case.
" Measured value:  Level
7 After the short message has been
evaluated using the control, the target
Level
call number is cut our of the just
received SMS.
mobile phone number
Afterwards, an SMS with the current
filling level of the pump station is sent.
8 At the beginning of the Send SMS
action, the Q0.0 output is reset.
If the process terminates
1s
successfully, the LED of output Q0.0
lights up permanently.
If the process does not terminate
successfully, the LED of output Q0.0
blinks.
S7-200 pump station
9 The received text now contains the
The actual fill level(hecto
current filling level of the simulated
litre) is 45
tank.
V2.5 29.01.2008 35/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
10 After the process is terminated the
LEDs of exits Q0.2 and Q0.3 are
reset. The state of the LEDs of exits
Q0.0 and Q0.1 remain the same.
The process is considered to be
terminated when the text "level" has
been successfully extracted from an
SMS and the respective answer has
been sent.
6.3 Live demo of visualization station
WinCC flexible user interface
Figure 6-2
1 4
5
2
3 7 8
6
V2.5 29.01.2008 36/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
Table 6-3
No. Function
1 Starting the initialization of the GSM modem. (Start signal for the SMS_INIT
block)
2 Starting the receive procedure. If an SMS exists at the GSM modem, it is
fetched. (Start signal for the SMS_RECEIVE block)
3 Deletes the last received message from the receive buffer of the S7-200
controller. If another SMS exists in the buffer, it is now displayed.
4 Status information of the initialization process. (busy, done, aborted, status)
5 Status information of the receive process (busy, done, aborted, status)
6 Output of the last received SMS stored in the buffer of the S7-200 controller.
7 Date and time of the received SMS.
8 Number of received SMS in the buffer of the S7-200.
Receiving and visualizing an SMS
Table 6-4
No. Instructions Note
Perform the initialization of the GSM
1
3
modem by clicking the  Start Init
2
button.
The MS_Init block activates the  busy
bit (1). After successful processing,
A description of the Status/Error word
the  done bit (2) is set. You can see
is available in the library description.
the current step in the Status/Error
word. After completing the
initialization, this output field (3)
contains the number  15 .
2 Start sending an SMS to this The operation of the pump station is
visualization station from the pump described in chapter 6.2.
station. Alternatively, you can, of course,
also send a message to the
visualization station from a cell
phone.
V2.5 29.01.2008 37/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
3 Wait until the receive cycle of 60
1
3
seconds in the CPU of the
7
visualization station has finished, or 2
press the  Start Receive button.
The "SMS_Receive" block activates
the  busy bit (1). After successful
processing, the  done bit (2) is set.
You can see the current step in the
Status/Error word. After completing
the receiving process, this output field
(3) contains the number  7 .
4 Repeat step 2 for to 3 any number of
times. Please ensure, that the date
and time stamp (1) is updated for
each SMS and that the buffer (2) is
2
increased by one respectively. 1
5 The current SMS text is displayed in
the output field (1).
1
V2.5 29.01.2008 38/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
Acknowledge SMS and delete in the buffer
Table 6-5
No. Instructions Note
To acknowledge an SMS and delete it
from the buffer of the S7-200
controller, press the  Acknowledge
button (1).
1
2 Pressing the button deletes the last
S7-200 Puffer
entry from the buffer.
SMS 1
SMS 2
SMS 3
SMS 4
SMS 5
SMS 6
SMS 7
+ New SMS Delete SMS -
3 The output field (1) in the WinCC
flexible user interface now shows the
counter status of the buffer reduced 1
1
by one.
V2.5 29.01.2008 39/43
neu
alt
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
6.4 Live demo of teleservice station
6.4.1 "Initializing" and "Manual" mode
Execute the initialization as decribed in chapter 6.2.
Test the functionality for sending SMS before and after the teleservice
connection. Proceed as described in chapter 6.2.2. The functionality Send
SMS is not available here.
6.4.2 "Teleservice" mode
Table 6-11
No. Instructions Note
Open a new STEP 7 Micro/WIN The local teleservice station must
project via  Start / Programs / have been configured as described in
SIMATIC . chapter 5.5.2.
6 Open the  Communication window
7 Press the  Connect button (1)
1
Attempting to send PIN...
8 A teleservice connection is now
PIN being sent...
initialized automatically.
The PIN number was invalid, the modem
was already authorized, or an unknown
error occurred.
Placing call to T015118984709
Call placed
Dialing...
Proceeding...
Connected
Waiting for incoming messages...
9 The LED of outputs Q0.2 and Q0.3
1s
blink alternately while at the remote
peer "pump station" a call request is
recognized, accepted, held, and
terminated.
V2.5 29.01.2008 40/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
No. Instructions Note
10 Check the functioning teleservice
connection. Close the
 Communications window with  OK .
Open the PLC Information window via
 PLC / Information . After the
connection has been initialized
successfully, the type and the
firmware of your controller is
displayed.
11 The teleservice connection is
cancelled automatically in the remote
station  Pump Station after 180
seconds.
12 After the process is terminated
(successfully or not), the LED of
outputs Q0.2 and Q0.3 are reset. The
state of the LED of output Q0.0
remains the same.
V2.5 29.01.2008 41/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Technical data
Micro Automation Set 5 Beitrags-ID 21063345
7 Technical data
LOGO! Power 24V 1.3
Table 7-1
Criterion Technical data Additional note
Supply voltage 85 to 264 V AC
Output voltage DC 24 V (setting range DC
22.2 to 26.4 V)
Output current 1.3A
Dimensions (W x H x D) 54 x 80 x 55
mm
SIMATIC S7-200 CPU 221
Table 7-2
Criterion Technical data Additional note
Supply voltage DC 20.4 V bis 28.8 V
Current consumption 450 mA
Inputs/outputs 6DE/4DA
User data 4 Kbytes
Dimensions (W x H x D) 90 x 80 x 62
mm
SIMATIC S7-200 CPU 224XP
Table 7-3
Criterion Technical data Additional note
Supply voltage DC 20.4 V bis 28.8 V
Current consumption 900 mA
Inputs/outputs 14DE/10DA + 2AE
EPROM user data 16 Kbytes
Dimensions (W x H x D) 140 x 80 x 62
mm
TC65 Terminal
Table 7-4
Criterion Technical data Additional note
Supply voltage DC 24 V (8V to 30V)
Current consumption 600 mA
V2.5 29.01.2008 42/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved
Technical data
Micro Automation Set 5 Beitrags-ID 21063345
Criterion Technical data Additional note
Output power
" Kl.4 (2 W) for EGSM
850/900
" Kl. 1 (1 W) for GSM
1800/1900
Frequency range GSM 850 / 900 / 1800 / 1900 Quadband
MHz
Dimensions (W x H x D) 90 x 130 x 38
mm
V2.5 29.01.2008 43/43
Set5_DocTech_V2D5_en.doc
Copyright
©
Siemens AG 2008 All rights reserved


Wyszukiwarka