set5 doctech v2d5 en
DESCRIPTION
Set5 DocTech V2D5 EnTRANSCRIPT
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
V2.5 29.01.2008 2/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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.
Table of Contents
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 3/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
Table of Contents
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 4/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
Fields of Application and Benefits
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 5/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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.
Fields of Application and Benefits
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 6/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
Fields of Application and Benefits
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 7/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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.
Design
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 8/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
sss
S7-221 DC TC65 Terminal
S7-224 XP DC
sss
TC65 Terminal
s
sss
TC65 Terminal
Standard PC
s
Standard PC
Pum
p st
atio
nV
isua
lizat
ion
stat
ion
Tele
serv
ice
stai
ton
acknowledge, request values, control
alarms, process values
Teleservice
Visualization WinCC flexible
Design
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 9/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
2.1 Layout Diagram – Pump station
Figure 2-2
L1N
DC24V+DC24V-
line protection switch
1 2
antennamale 6-pinWestern connector
GroundGND6
GroundGND5
Switch onIGT_IN4
Switch offEMERGOFF3
Power supplyPOWER2
Power supplyPOWER1
UseSignal namePin
3
SIM card
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).
Design
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 10/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
2.2 Layout Diagram – Visualization station
Figure 2-3
L1N
DC24V+DC24V-
line protection switch
1 32
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
2
PC
networkadapter1
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).
Hardware and Software Components
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 11/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 221
1 6ES7211-0AA23-0XB0
DC
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 SIM274
1 6ES7274-1XF00-0XA0
PC/PPI cable 1 6ES7901-3CB30-0XA0
COM
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 224XP
1 6ES7214-2AD23-0XB0
DC
GSM kit TC65 Terminal 1 6AG1011-1CC00-0AA0
Hardware and Software Components
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 12/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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-
0XA0 COM
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-1CA0
128 Tags, see 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 pack GSM 24V/1.25A
1 6AG1011-1DC0-1AA0
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
Hardware and Software Components
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 13/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
Function Principle
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 14/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 The water reservoir in Micro Automation Set 5 has a volume of 100 hectoliters.
1 hectoliter corresponds to 1 unit
2 If the pump is active, the filling level in the water reservoir is reduced by two units every second. tank
Pump
T11sec.
-2 -2
3 If the pump is inactive, the filling level in the water reservoir is increased by four units every second. tank
Pump
T11sec.
+4 +4
Simulating the pump status Table 4-2
No. Function Note
1 As soon as the filling level of the water reservoir has fallen below 30 units, the pump is started.
tank
Pump
33 31 29
2 If the water level has risen to 90
units due to pumping, the pump is switched of.
tank
Pump
78 84 90
Calculating the operating hours of the pump Table 4-3
No. Function Note
1 The operating hours counter is increased by one each second the pump is active.
1 hour corresponds to 1 second
Pump
8 9Counter
T1
00 0 9
1s. 1s. 1s.
Function Principle
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 15/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 personnel is not necessary.
sss
3 For each send job the start input (1) of the “SMS_send” block is set once. Prior to that the receiver address (2) and the message text (3) have been transferred.
1
23
4 The send job was successfully processed, when the “SMS_send” block sets the “SMS_send_Done” (1) output to “1”. Then a new send job can be started by means of a new positive edge at the “SMS_send_Start“ input (2).
1
2
Function Principle
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 16/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 specifying the desired measured value.
sss
Request(filling level)
3 The service representative receives the desired measured value via SMS to his own mobile phone number.
sss
Filling levelown number
4 To recognize the request at the
station, the “SMS_receive“ block is called cyclically every 5 seconds (1). If the “SMS_receive_Done“ signal bit (2) reports a high signal, an SMS has been received.
2
5sec.1
5 The received SMS text is
evaluated regarding the desired information. • Filling level: “Level” For the filling level of the pump station, the term “Level” is used as a keyword.
…….... Level………………….
sss
?
42
6 The filling level is then sent to the service representative by starting the send procedure (1). The mobile phone number of the previous SMS is transferred as the receiver address (2). The current filling level is entered as a message text (3).
1
23
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 17/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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”
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 18/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 provider.
TC65 Terminal, side view
SIM card
3 Attach the simulator for the digital inputs at the S7-200 CPU.
4 Connect the S7-200 CPU and the
TC65 modem to the DC 24V supply voltage of LOGO!. Power.
See chapter 2.1 “Layout diagram – Pump station”. 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.
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 19/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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: 1 2 3 4 5 6 7 8 0 0 0 0 1 0 0 0
configuration PC
PC/PPI cable
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.
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 20/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 port 0 via the PC/PPI cable. Change the switch positions of the cable. 1 2 3 4 5 6 7 8 1 1 1 0 0 1 1 0
PC/PPI cable
sss
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 provider.
TC65 Terminal, side view
SIM card
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 21/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 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 0 0 0 0 1 0 0 0
Configuration PC
s
TC65 Terminal, side view
PC/PPI cable
PC
/PPI
cab
le
4 Connect the S7-200 CPU and the
TC65 modem to the DC 24V supply voltage of LOGO!. Power.
See chapter 2.2 When connecting the TC65 Terminal 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.
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 22/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 23/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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.
sss
sss
Pump station
Visualization station
SMS
SMS
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.
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 24/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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: 1 2 3 4 5 6 7 8 0 0 0 0 1 0 0 0
ConfigurationPC
PC/PPI cable
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”.
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 25/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 port 0 via the PC/PPI cable. Change the switch positions of the cable: 1 2 3 4 5 6 7 8 1 1 1 0 0 1 1 0
PC/PPI cable
sss
5.5.2 Connect components and configure modem for PC
Table 5-8
No. Instructions Note
1 Connect the GSM modem TC65 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.
See chapter 3.2
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 the “Add...” button (2). 1
2
5 Select the “Don’t detect my modem; I will select it from a list” option and acknowledge with “Next”.
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 26/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 continue. 1
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.
Configuring the Startup Software
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 27/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 your previously created modem (2). Select option (3) “Use this local modem as a Sell phone modem” and confirm your settings with “Next”.
1
2
3
13 Enter the mobile phone number of the pump station (1). The gray field (2) displays the mobile phone number to be dialed as it is chosen by STEP 7-Micro/WIN. Please ensure that only one leading zero is exists. Click on “Next” to confirm the settings.
2
1
14 Enter the SIM PIN of the local station and confirm the following windows with “Next”. Terminate the wizard for creating a new modem connection.
1
15 Only one teleservice connection can be established. Follow the steps in chapter 6.4 of the Live Demo for testing the teleservice functionality.
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 28/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
Micro Automation Set 5
Pump stationVisualization
stationTeleservice station
withSimulator
withWinCC flexible
withMicro/WIN
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 station
Visualization station
Teleservice 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
control Yes No No
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
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 29/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
blink alternately during the initialization.
1s
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,
the LED of outputs Q0.2 and Q0.3 blink simultaneously until a new mode is chosen.
1s
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 30/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 blink alternately while an action is carried out in "manual" mode.
1s
3 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.
1s
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.
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 31/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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. The text content is not relevant.
Hello
sss
2 Briefly press the I0.1 switch to start the receive procedure.
3 The LED of outputs Q0.2 and Q0.3
blink alternately while an action is carried out in "manual" mode.
1s
4 At the beginning of the Receive SMS
action, the Q0.1 exit is reset. If the process terminates successfully, the LED of output Q0.1 lights up permanently. If the process does not terminate successfully, the LED of output Q0.1 blinks.
1s
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 be switched over. To get to PPI mode, set the RUN/TERM/STOP switch into the "STOP" position.
RUNTERMN
STOP
7 Change the switch of the PC/PPI
cable. 1 2 3 4 5 6 7 8 0 0 0 0 0 0 0 0
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 32/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 PC/PPI cable. configuration PC
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.
The “VB1226“ variable contains the received text.
message
The received string contains all control characters (e.g., $N for line 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. 13 Connect the PC/PPI cable back to the
TC65 modem: Change the switch positions.
1 2 3 4 5 6 7 8 1 1 1 0 0 1 1 0
14 Return to the “Freeport“ communication mode of Port0 by setting the RUN/TERM/STOP switch into the "RUN" position.
RUNTERMN
STOP
15 The initialization process has to be
repeated. Chapter 6.2
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 33/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 blink alternately while an action is carried out in "broadcast" mode.
1s
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. 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.
1s
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 34/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 blink alternately while an action is carried out in "request" mode.
1s
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
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 35/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
No. Instructions Note
4 At the beginning of the Receive SMS action, the Q0.1 exit is reset. If the process terminates successfully, the LED on exit Q0.1 lights up permanently. If the process does not terminate successfully, the LED on exit Q0.1 blinks.
1s
5 To receive the current filling level of the pump station a request is sent to the controller. Use your mobile phone to write a brief message to the call number of the SIM card in your TC65 modem.
… Level..…….…….
sss
6 The short message must include the following key content. • Measured value: “Level”
Note: Please ensure correct upper and lower case.
7 After the short message has been evaluated using the control, the target call number is cut our of the just received SMS. Afterwards, an SMS with the current filling level of the pump station is sent.
mobile phone number
Level
8 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.
1s
9 The received text now contains the current filling level of the simulated tank.
S7-200 pump station The actual fill level(hecto litre) is 45
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 36/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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
2
3
4
5
6 7 8
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 37/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 modem by clicking the ”Start Init” button. The MS_Init 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 initialization, this output field (3) contains the number “15”.
1
2
3
A description of the Status/Error word is available in the library description.
2 Start sending an SMS to this visualization station from the pump station.
The operation of the pump station is described in chapter 6.2. Alternatively, you can, of course, also send a message to the visualization station from a cell phone.
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 38/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
No. Instructions Note
3 Wait until the receive cycle of 60 seconds in the CPU of the visualization station has finished, or 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”.
1
273
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 increased by one respectively. 1 2
5 The current SMS text is displayed in the output field (1).
1
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 39/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 entry from the buffer.
SMS 1SMS 2SMS 3SMS 4SMS 5SMS 6ne
ual
t
New SMS+ SMS 7 Delete SMS -
S7-200 Puffer
3 The output field (1) in the WinCC flexible user interface now shows the counter status of the buffer reduced by one.
1 1
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 40/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 project via “Start / Programs / SIMATIC”.
The local teleservice station must have been configured as described in chapter 5.5.2.
6 Open the “Communication” window
7 Press the “Connect“ button (1)
1
8 A teleservice connection is now initialized automatically.
Attempting to send PIN... PIN being sent... 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 blink alternately while at the remote peer "pump station" a call request is recognized, accepted, held, and terminated.
1s
Live Demo
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 41/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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.
Technical data
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 42/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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) mm
54 x 80 x 55
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) mm
90 x 80 x 62
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) mm
140 x 80 x 62
TC65 Terminal Table 7-4
Criterion Technical data Additional note
Supply voltage DC 24 V (8V to 30V) Current consumption 600 mA
Technical data
Micro Automation Set 5 Beitrags-ID 21063345
V2.5 29.01.2008 43/43
Cop
yrig
ht ©
Sie
men
s A
G 2
008
All
right
s re
serv
ed
Set
5_D
ocTe
ch_V
2D5_
en.d
oc
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 MHz
Quadband
Dimensions (W x H x D) mm
90 x 130 x 38