Upload
dinhhuong
View
219
Download
3
Embed Size (px)
Citation preview
Micro Application Example
Wireless Data Communication based on GPRS (flexible)
Micro Automation Set 31
Warranty, Liability and Support
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 2/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Note The Micro Automation Sets are not binding and do not claim to be complete regarding their configuration, equipment 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 damage/claims beyond the liability clause described. 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 of the burden of proof to your detriment.
Copyright-2008 Siemens IA/DT It is not permissible to transfer or copy this Micro Automation Set or excerpts of it without first having prior authorization from Siemens A&D in writing.
Preface
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 3/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Preface Micro Automation Sets are fully functional and tested automation configurations based on IA / DT 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 in the low-end performance level.
The sets help you to obtain answers with regard to required products and the question of 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 IA / DT catalogs for these components. The Micro Automation Sets are also available by clicking the following link:
http://www.siemens.de/microset
Table of Contents
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 4/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Table of Contents
Table of Contents ......................................................................................................... 4
1 Fields of Application and Benefits................................................................ 5
2 Design.............................................................................................................. 9 2.1 Layout diagram of the Central Station .............................................................. 9 2.2 Layout Diagram of a Remote Station.............................................................. 10
3 Hardware and Software Components......................................................... 11 3.1 Central Station ................................................................................................ 11 3.2 Remote Station ............................................................................................... 12
4 Principle of Operation .................................................................................. 14 4.1 Central Station ................................................................................................ 14 4.1.1 Managing connections with the SINAUT MICRO SC ..................................... 14 4.1.2 Visualizing the process data with OPC client ................................................. 17 4.2 Remote Station ............................................................................................... 18 4.2.1 GPRS modem SINAUT MD720-3................................................................... 18 4.2.2 S7 Block library............................................................................................... 19 4.2.3 Block for configuring the modem .................................................................... 20 4.2.4 Blocks for the application................................................................................ 20 4.3 Communication between Remote Station and Central Station....................... 22 4.4 Dyn-DNS service ............................................................................................ 24
5 Configuring the Startup Software ............................................................... 25 5.1 Preliminary remarks........................................................................................ 25 5.2 Downloading the startup code ........................................................................ 25 5.3 Configuring components................................................................................. 25 5.3.1 Central Station ................................................................................................ 26 5.3.2 Remote Station ............................................................................................... 27
6 Live Demo...................................................................................................... 32 6.1 User interface ................................................................................................. 33 6.2 Scenarios of Remote Station “Stormwater Overflow” ..................................... 35
7 Performance Data of the Application.......................................................... 39 7.1 Comparison with Micro Automation Set 21..................................................... 39 7.2 Estimating the communication costs .............................................................. 39 7.2.1 Connection costs of the Remote Station ........................................................ 40 7.2.2 Example of the connection costs of the Remote Stations .............................. 40 7.2.3 Connection costs of the Central Station ......................................................... 44 7.3 Information on connection quality ................................................................... 44
8 Technical Data .............................................................................................. 46
Fields of Application and Benefits
Wireless Data Communication based on GPRS (flexible) 30321000
1 Fields of Application and Benefits
Automation task
To provide good comprehensibility, the features of the Micro Automation Set are explained using an application example.
The infrastructure of a discharge treatment plant contains the “Stormwater Overflow1” substation. It is supposed to communicate with a control center. The internet based GPRS2 service, which charges by data volume, should be used as a data transfer medium. The control center should enable central operator control and monitoring.
Figure 1-1
V1.0 release 19.08.2008 5/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Stormwater Overflow
P1 P2
River
Waste water treatment plant
Stormwater Overflow
PumpPump
• Flow rate measurement of water added • Measuring the fill level of the overflow
structure• Automatic pumping of basin content to the
discharge treatment plant • Operating hours count of the pumps• Monitoring overflow structure and dry run of
the pumps• Manual control of the pump to the river
1 Stormwater Overflow is a structure in the wastewater network for catching peak loads. A Stormwater Overflow enables controlled “overflow“ (with overflow measurement) 2 GPRS: General Packet Radio Service is a package-oriented data service in GSM networks. These are based on IP network technology (IP = internet protocol)
Fields of Application and Benefits
Wireless Data Communication based on GPRS (flexible) 30321000
Automation solution – Set 31
The automation solution uses the SINAUT Micro SC remote control system with the GPRS modem MD720-3 to visualize process data from the Remote Station via the Central Station
Figure 1-2
V1.0 release 19.08.2008 6/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
PPI RS232
S7-200MD 720-3
S Q C
S
P1 P2
StormwaterOverflow
INTERNETRemote Station
Central Station
SINAUT MICRO SCWinCC flexible
GPRS
Remote Station “Stormwater Overflow”
The S7-200 CPU 222 controls pump “P1”, which automatically pumps the water of the stormwater overflow structure into the water treatment plant.
Pump “P2” which can be operated manually via the Central Station enables pumping the water into a nearby river.
All process data are transferred to the Central Station via the GPRS modem MD720-3.
Central Station
The OPC3 server SINAUT MICRO SC is used as a platform for data exchange with the Remote Station. The Central Station communicates with the GPRS station via an Internet connection.
As OPC client, WinCC flexible enables visualizing and operating the process.
3 OPC: Openess, Productivity, Collaboration is an open software interface. This is meant to enable data exchange via a
standardized interface.
Fields of Application and Benefits
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 7/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Fields of application
The Micro Automation Set 31 is suitable for industrial applications in which data with the following properties are to be transferred at low cost.
Wireless data transfer
Sending data across large distances (worldwide, if a GSM4/ GPRS network exists)
Data exchange with mobile stations
The Micro Automation Set 31 is particularly suitable for the following fields of application:
Controlling and inspecting of
– Waste water treatment plant
– Water treatment
– Crude oil and gas pipeline
– Pump stations
– Traffic management systems
– Buildings
– Intelligent bill boards
– Weather stations
– Light house
– Decentralized power generation such as wind and solar power
– Power distribution and district-heating systems
Connecting automated mobile stations such as:
– Rail vehicles
– Special vehicles
– Complex building machines
– Ships in inland and coastal waters
4 GSM: Global System for Mobile Communications. Is the name for the used (digital) mobile radio standard.
Fields of Application and Benefits
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 8/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Benefits
SINAUT Micro SC enables economical and bi-directional data communication between all Remote Stations or between Remote and Central Station.
The OPC server integrated in SINAUT Micro SC enables visualizing and controlling all process data of the Remote Stations.
A quad-band antenna enables worldwide log-in at the GPRS network of the GSM mobile services providers
GPRS and INTERNET ensure short transfer times and are always online
Despite of a high availability, only the sent or received data volume is charged for.
Use of cost-effective micro-controllers from CPU221 on
More memory space for the user program due to the small size of the block library
Easy retrofitting of existing plants by selecting a variable interface for GPRS connection
Design
Wireless Data Communication based on GPRS (flexible) 30321000
2 Design
V1.0 release 19.08.2008 9/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
2.1 Layout diagram of the Central Station
Figure 2-1
L1
N
DC24V+
DC24V-
Leitungs-
schutzschalter
Internet connection:fixed IP address orDyn-DNS Service
INTERNET
SINAUTMicro SC
WinCCflexible4
31 2
The Central Station consists of a SIMATIC MicroBox 427B (2). The software components SINAUT Micro SC (3) and the visualization system WCC flexible (4) have been installed on the MicroBox.
Power is supplied from a LOGO! Power 24V 1.3A unit (1).
A router links the MicroBox with the Internet. The router has been assigned a static IP address.
Design
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 10/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
2.2 Layout Diagram of a Remote Station
Figure 2-2
L1
N
DC24V+
DC24V-
Line protection switch
1
34
2
Micro Automation Set 31 includes one Remote Station.
The Remote Station consists of an S7-200 CPU 222 (2) with connected GSM/GPRS modem SINAUT MD720-3 (3). A quad-band antenna ANT 794-4MR (4) is linked to the GSM/GPRS modem.
Power is supplied from a LOGO! Power 24V 1.3A unit (1).
The modem and the control unit are connected via a PC/PPI cable.
Insert a SIM card of your mobile service provider into the modem.
Hardware and Software Components
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 11/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
3 Hardware and Software Components
3.1 Central Station
Products
Table 3-1
Component Nr MLFB / order number Note
LOGO! Power 24V/1.3A 1 6EP1 331-1SH02
SIMATIC MicroBox 427B 1 6ES7 647-7AA30-0QA0
SINAUT MICRO SC (License: for 8 stations)
1 6NH9 910-0AA10-0AA3 Available: 8, 64 and 256 stations
WinCC flexible 2007 RT 1 6AV6613-1BA51-2CA0 128 tags
Note The listed order number of the SIMATIC Microbox 427B covers the following system configuration:
Celeron M 900MHz; 400MHz FSB; 1024MB DDR2 SDRAM; 2GB Compact Flash; Windows XP embedded incl. SP2.
The system data can be adjusted under the following address: https://mall.automation.siemens.com
Instead of the MicroBox 427B, a standard Windows PC may also be used.
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.
For example, WinCC flexible Advanced ES (6AV6613-0AA51-2CA5)
Accessories
Table 3-2
Component Nr MLFB / order number Note
Router 1 Specialist dealer With port forwarding
Hardware and Software Components
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 12/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Services of a provider
Table 3-3
Component Nr MLFB / order number Note
Internet connection 1 Internet provider With static IP address
Dyn-DNS service - (e.g. http://www.dyndns.com)
If no static IP address is available
3.2 Remote Station
Products
Table 3-4
Component Nr MLFB / order number Note
LOGO! Power 24V/1.3A 1 6EP1 331-1SH02
S7-200 CPU 222 1 6ES7 212-1AB22-0XB0 DC
SINAUT MD720-3 1 6NH9 720-3AA00 E status: 3.4 Firmware: 1.7.7
Quad-band5 antenna ANT 794-4MR
1 6NH9 860-1AA0 Omnidirectional with 5m cable
PC/PPI cable 1 6NH9701-0AD COM
Accessories
Table 3-5
Component Nr MLFB / order number Note
Standard 35mm DIN rail 1 6ES5 710-8MA11 483 mm
Simulator 1 6ES7 274-1XH00-0XA0
Configuration software/tools
Table 3-6
Component Nr MLFB / order number Note
SIMATIC STEP 7-Micro/WIN
1 6ES7810-2CC03-0YX0
5 Quad-band: here it refers to different GSM networks which can be used. (900 MHz and 1800 MHz, as well as 850 MHz and 1900 MHz in the USA)
Hardware and Software Components
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 13/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Services of a mobile service provider
Table 3-7
Component Nr MLFB / order number Note
SIM card 1 Available from your mobile service provider.
Often special M2M rates are available for GPRS
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
4 Principle of Operation
V1.0 release 19.08.2008 14/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
4.1 Central Station
The Central Station is connected to the Internet. It manages all configured connections to the Remote Stations using SINAUT MICRO SC. The integrated OPC server of SINAUT MICRO SC enables visualization of all process data with the aid of an OPC client.
Figure 4-1
Central Station
SINAUTMICRO SC
WinCCf lexible
OPC Server OPC Client
INTERNET
4.1.1 Managing connections with the SINAUT MICRO SC
Configuration of connections with SINAUT MICRO SC
Data exchange between a Remote Station and the Central Station requires configuring a connection for each one using SINAUT MICRO SC.
Up to 256 connections can be configured. Figure 4-2 shows an exemplary overview of the configured connections for the Remote Stations “Stormwater Overflow” (MAS31).
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
Figure 4-2
V1.0 release 19.08.2008 15/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
The following parameters must be defined for each connection:
Station name: unique symbolic name of the Remote Station
Station number: unique station number from 1 to 256
Password: password for protecting the data exchange from manipulation
PLC Status monitoring: When selecting the “Status monitoring by RealTimeClock synchronization” option, the Central Station sends the PC system time to the affected Remote Station, for the amount of time specified in the “Interval” field, to signal to the mobile service provider that the GPRS connection is still required.
Interval: Time interval in which the synchronization messages are sent from the Central Station
Comment: Comment
Figure 4-3 shows the communication settings of the Remote Station “Stormwater Overflow”
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
Figure 4-3
V1.0 release 19.08.2008 16/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Establishing and maintaining all configured connections
After switching on the Remote Station, modem MD720-3 tries to establish a GPRS connection to the Central Station on the basis of the configured parameters. The target address of the Central Station is either the static IP address of the Internet access or a Dyn. DNS.
Furthermore, the used communications service requires a freely available port address. Figure 4-4 shows the port address used in this Micro Automation Set.
Figure 4-4
SINAUT MICRO SC saves all significant connection parameters after a successful connection. For the respective Remote Station, the GPRS-IP address assigned by the mobile service provider is stored together with the station number in the so-called routing table.
As long as the connection is not interrupted by the mobile provider, data can be sent from the Remote Station to the Central Station and vice versa.
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
4.1.2 Visualizing the process data with OPC client
All process data of the Remote Station can be read via the integrated OPC server of SINAUT MICRO SC using the following syntax.
MSC:[<Station name>]DB1,<Format><Address>
Apart from the user configurable process data, the OPC server provides system variables (see blue marking in Figure 4-5 ).
Displaying and changing process data:
Display of process data: Process data VD2000 sent by the Remote Station is received by SINAUT MICRO SC and can be read, for example, by cyclic polling of an OPC client, e.g. WinCC flexible.
V1.0 release 19.08.2008 17/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Change of process data: A change of process data VD2000 in the OPC client is recognized by the OPC server of SINAUT MICRO SC, and causes SINAUT MICRO SC to send the changed VD2000 value to the Remote Station.
Figure 4-5
Remote Station
Station number: 1
Central Station
MAS31
VD2000
SINAUTMICRO SC
WinCCflexible
OPC-Server OPC-Client
VD2000 MSC:[MAS31]DB1,Real2000
MSC:[MAS31]GPRSConnectedMSC:[MAS31]PLCConnectedMSC:[MAS31]BytesReceivedMSC:[MAS31]BytesTransmittedMSC:[MAS31]RefreshValuesMSC:[MAS31]RefreshValues
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 18/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
4.2 Remote Station
4.2.1 GPRS modem SINAUT MD720-3
The MD720-3 modem serves as interface between Remote Station and Central Station. It transmits data from the S7-200 CPU to SINAUT MICRO SC via GPRS and vice versa.
Requirements for operation
Operating modem MD720-3 requires a SIM card with GPRS service which, analogously to a mobile phone, must be placed inside the modem in an appropriate slot.
The quad-band antenna enables operating the modem at GSM networks with the following frequencies:
800 MHz
900 MHz
1800 MHz
1900 MHz
Configuration of modem MD720-3
The configuration of the modem is performed by means of the S7 block “WDC_CONFIG_FLEX_Px” contained in the delivery scope. Any S7-200 CPU from CPU221 to CPU226 can be used for configuration.
The block sends the parameters previously stored in the configuration program to the modem after rebooting the controller and stores them in a non-volatile buffer.
Static IP address of the SINAUT MICRO SC server
Port of the SINAUT MICRO SC server
The modem name automatically assigned for the respective connection by SINAUT MICRO SC
The password for this connection defined in SINAUT MICRO SC
The PIN number of the SIM card, if PIN request has been activated on the SIM card
Access Point Name of the mobile service provider which defines the node from the GPRS network to the INTERNET
User or password of the APNs
Overview of the most important configuration parameters (logical target address, APN)
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
Once configuration is complete, the configuration program is no longer required for memory space reasons and can be replaced by the program of the application.
Setup of a GSM/ GPRS connection and log-in at SINAUT MICRO SC
After the connection parameters have been transferred to the modem, the modem automatically establishes a connection to the SINAUT MICRO SC server.
Figure 4-6 illustrates a successful log-in process. The respective connection status is illustrated by the front LEDs “S”, “Q” and “C”.
Figure 4-6
V1.0 release 19.08.2008 19/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
S Q C
Connection to the GSM PROVIDER has beenestablished3
Connection to theSINAUT MICRO SC server has beensuccessfully established
6
Establishing a connection to the SINAUT MICRO SC server5
Connection to the GPRS service has beensuccessfully established4
Establishing a connection to the GSM PROVIDER2
Checking all Sim card parameters (e.g. PIN)1
S Q C
S Q C
S Q C
S Q C
MD 720-3
S Q C
4.2.2 S7 Block library
This Micro Automation Set contains two block libraries. The libraries differ only in the interface selection of the CPU to which the modem is to be connected:
SinautMicroSC_FlexP0.mwl (port 0)
SinautMicroSC_FlexP1.mwl (port 1)
Each library contains one block for modem configuration and three blocks for the user program of the application.
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
4.2.3 Block for configuring the modem
“WDC_CONFIG_FLEX_Px”
The block is called cyclically in a separate configuration program. The block transmits the connection parameters stored in the data block to the MD720-3 modem. The configuration is completed, if the “DONE bit” changes to “1”.
Figure 4-7
V1.0 release 19.08.2008 20/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
4.2.4 Blocks for the application
Initializing with “WDC_INIT_FLEX_Px”
This block to be cyclically called in the user program of the application initialises the interface of the CPU und transmits the station number to the MD720-3 modem defined for this connection.
Figure 4-8
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
Sending with “WDC_SEND_FLEX_Px”
Specifying the station number of the target Remote Station, the block to be cyclically called in the user program of the application sends a data block with a maximum size of 239 bytes.
Figure 4-9
V1.0 release 19.08.2008 21/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Receiving with “WDC_RECEIVE_FLEX_Px”
This block to be cyclically called in the user program of the application receives incoming message frames and copies the received data block into the given address area.
Figure 4-10
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
4.3 Communication between Remote Station and Central Station
Remote Station sends process data to Central Station
Figure 4-11
V1.0 release 19.08.2008 22/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Station number: 0
SINAUT Micro SC
WinCCflexible
Central Station
Remote Station
Station number: 1
P P
3
INTERNET
GPRS
ISp
4
89
Internet Service Provider
12,3%
1
12,3%
56
7
2 10
Table 4-1
No. Function
1. The data, e.g. fill level of 12.3% is read by the controller of Remote Station via an analog interface. The process values in this Micro Automation Set are simulated by a variable.
2. S7-200 sends the fill level (e.g. 12.3%) by calling the S7 block “WDC_SEND_FLEX_Px” with details of
logic address of the target Central Station
variable address and byte length of the fill level to be sent (e.g. 12.3%) to the modem.
3. The modem processes the fill level (e.g. 12.3%) and sends it to the mobile service provider via GPRS.
4. The mobile service provider forwards the fill level (e.g. 12.3%) to the INTERNET. The interface between mobile service provider and the INTERNET is referred to as Access Point.
5. The INTERNET routes the fill level (e.g.12.3%) to the INTERNET Service Provider of the Central Station.
6. The INTERNET Service Provider of the Central Station transfers the fill level (e.g. 12.3%) to the SINAUT MICRO SC server of the Central Station.
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
No. Function
7. The OPC server of SINAUT MICRO SC provides the received process data to the OPC client (HMI system).
8. After successful reception, SINAUT MICRO SC sends an acknowledgement to the modem of Remote Station.
9. The modem forwards the acknowledgement to the S7-200 CPU.
10. The S7 block “WDC_RECEIVE_FLEX_P” receives the acknowledgement. The S7 block “WDC_SEND_FLEX_Px” subsequently informs the user program of the success of the completed send procedure.
Central Station sends process data to Remote Station Figure 4-12
V1.0 release 19.08.2008 23/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Station number: 0
SINAUT Micro SC
WinCCflexible
Central Station
Remote Station
Station number: 1
P P
6
INTERNET
GPRS
ISp
5
210
Internet Service Provider
12,3% -> 32,3%
1
32,3%
43
1
7 8
12
9
Table 4-2
No. Function
1. In OPC client a variable is changed/updated.
2. The OPC client transfers the changed variable to the OPC server of SINAUT MICRO SC
3. SINAUT MICRO SC sends the changed value to Remote Station which is assigned to this variable. The current IP address is thereby taken from the routing table.
4. The INTERNET Service Provider forwards the new process value to the INTERNET.
5. In the INTERNET the data are routed to the mobile service provider.
6. The mobile service provider sends the data to the modem.
7. The changed process value is transferred from modem to S7-200 via PC/PPI cable.
Principle of Operation
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 24/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
No. Function
8. The updated process value is received by the S7-200 CPU using the S7 block “WDC_RECEIVE_FLEX_Px” and assigned to the given variable address.
9. S7 block “WDC_SEND_FLEX_Px” generates an acknowledgement message and transmits it to the modem.
10. The modem sends the acknowledgement to SINAUT MICRO SC of the Central Station
11. After the acknowledgement has been successfully received, SINAUT MICRO SC assigns the quality “good” to the transmitted variable (tag). If no acknowledgement for the send job has been received within the monitoring time of 15 sec, the quality “bad” will be assigned to the respective tag
4.4 Dyn-DNS service
What use is the Dyn-DNS service?
Not all INTERNET service providers offer a static IP address for their connections. For the Remote Station to be able to connect to the SINAUT MICRO SC server after all, services from third party providers are available. They offer determining the IP address currently assigned to the SINAUT MICRO SC server via a so-called “Domain Name”, and to replace the “Domain Name” with that address.
The DyN-DNS service enables reaching a PC (server) from the INTERNET without a static IP address.
Function
After a new Internet connection has been established or, when an IP address has been changed, a PC or the preceding router send the currently assigned IP address to a server of the Dyn-DNS provider.
The provider introduces the new (or changed IP address) to the Domain Name servers of the Internet.
If the Domain Name servers know the current IP address of the SINAUT MICRO SC, the server can be addressed via a domain name. (e.g. www.sinaut_micro_sc_testserver.de).
Risks of Dyn-DNS
A principle risk is the availability of the services. If it is not available, the connection between Central Station and Remote Station is lost.
Another risk is the update time of the new IP address in the Domain Name servers of the Internet. (The new IP address of the SINAUT MICRO SC server must be introduced to the Domain Name servers of the Internet.)
Configuring the Startup Software
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 25/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
5 Configuring the Startup Software
5.1 Preliminary remarks
For the startup, we offer you software examples with the Startup Code as a download. The software example supports you during the first steps and tests with this Micro Automation Set. It enables quick testing of the hardware and software interfaces between the products described in the Micro Automation Sets.
The software example is always assigned to the components used in the set and shows their principal interaction. However, it is not a real application in the sense of technological problem solving with definable properties.
5.2 Downloading the startup code
The software example is available on the HTML page from which you downloaded this document.
Table 5-1
No. Object File name Content
1. OPCM2M.xml Configuration file for SINAUT MICRO SC
2. MAS31_WinCCFlex_VxDy_en.zip
WinCC flexible configuration
3.
Central Station
MAS31_WinCCFlex_RT_VxDy_en.zip
WinCC flexible Runtime
4. MAS31_Configuration_Px_VxDy_en.mwp
S7-200 configuration
5.
Remote Station
MAS31_Userprogram_Px_VxDy_en.mwp
S7-200 configuration
5.3 Configuring components
Note Here it is assumed, that the required software
SINAUT MICRO SC
WinCC flexible Runtime
STEP 7 Micro/WIN
has been installed on your computer and you are familiar with the principal operation of this software.
Configuring the Startup Software
Wireless Data Communication based on GPRS (flexible) 30321000
5.3.1 Central Station
SINAUT MICRO SC
Table 5-2
V1.0 release 19.08.2008 26/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
No. Action Comment
1. Establish an INTERNET connection on your PC.
2. Ensure that the used Port 26862 is, if necessary, directed through firewall or a router on your PC.
If you have activated a Firewall on your PC, define an exception for Port 26862. When using a Router, e.g. a DSL router, you forward Port 26862 to the internal IP address of your PC. (e.g. using the function “Port Forwarding” or “Virtual Server”)
3. Copy file m2mopc.xml into the installation directory of SINAUT MICRO SC.
Save the existing file!
4. Terminate SINAUT MICRO SC. To do this, right-click the SINAUT MICRO SC icon in the info area of Windows. (Taskbar, left next to the clock) and select “Exit”. If necessary close the configuration user interface for SINAUT MICRO SC. Restart SINAUT MICRO SC.
WinCC flexible Runtime
Table 5-3
No. Action Comment
1. Unzip the file (3) from Table 5-1.
2. Start the generated WinCC flexible project file (*.fwx).
WinCC flexible Runtime is started
3. For experts the WinCC flexible project file is also attached. See Table 5-1 File (2).
Configuring the Startup Software
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 27/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
5.3.2 Remote Station
General information
This chapter describes the configuration process for the Remote Station. Table 5-4 shows you a short summary of configuration steps.
Table 5-4
No. Function
1. Install and wire the hardware
2. Open the configuration project “MAS31_Configuration_Px_VxDy_en.mwp”
3. Perform parameterization in the data block “config_modem”
4. Load configuration project into S7-200 CPU
5. Wait until the Remote Station is logged-in at the SINAUT MICRO SC server
6. Open the user-project “MAS31_Userprogram_Px_VxDy_en.mwp”
7. Perform parameterization in the data block “MAS31”
8. Load the user-project into the S7-200 CPU, configuration project is overwritten
9. Start Live-Demo
Installing and wiring the hardware
Table 5-5
No. Action Comment
1. Open the SINAUT modem MD720-3 and insert the SIM card of your mobile services provider.
MD720-3 Documentation (Chapter 2)
2. Mount the LOGO! Power, S7-200 CPU and the SINAUT MD720-3 modem onto a top-hat rail.
See Chapter 2 “Layout diagram of a Remote Station”
3. Connect the S7-200 CPU and the MD720-3 modem to the DC 24V supply voltage of LOGO! Power.
See Chapter 2 “Layout diagram of a Remote Station”
4. Connect all ground connections to earth.
5. Connect the modem antenna with the modem.
If necessary, ensure a suitable lightning protection of the antenna!
Configuring the Startup Software
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 28/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Configuring the MD720-3 modem with the S7-200 CPU and loading the configuration program
Table 5-6
No. Action Comment
1. Open the configuration project of the Remote Station (4) from Table 5-1 according to the CPU port used
2. Use STEP 7 Micro/WIN to navigate to the “config_modem” data block.
3. Replace the currently used IP address either by the static IP address of your Internet connection or by the Domain Name.
//Server IP Address
CONFIG_INIT_IP_Address ”123.45.67.89”
4. Enter the port, which has been selected in SINAUT Micro SC.
//Server port
CONFIG_INIT_Dest_Port ”26862”
5. Enter the PIN of your SIM card used. We recommend that you deactivate the PIN query. In this case enter the value “0000”.
//SIM PIN
CONFIG_INIT_SIM_PIN ”1234”
6. Enter the APN address of your provider. This is the access of the GPRS network to the INTERNET. Germany: http://www.teltarif.de/i/gprs-config.html Worldwide: http://www.unlocks.co.uk/gprs_settings.php
//GPRS APN
CONFIG_INIT_APN ”apn.address.com”
7. If your provider requests an APN user name, enter it here.
//GPRS APN User
CONFIG_INIT_APN_User ”guest”
8. If your provider requests an APN user password, enter it here.
//GPRS APN User Password
CONFIG_INIT_APN_User_PW ”guest”
9. Enter here your DNS server of your provider.
If you use a static IP address for your Central Station you can leave this field empty. („„)
If you use a “Domain Name Server” instead of the static IP address, maximally two DNS addresses are to be entered here.
When using domain names:
//DNS
CONFIG_INIT_DNS “139.007.030.125;139.007.030.126”
When not using domain names:
//DNS
CONFIG_INIT_DNS „„
10. If Teleservice shall be used, you can enter here up to three telephone numbers (or number ranges with wildcard*) for access authorization.
//CLIP
WDC_INIT_Clip_Numbers “+4912345*;;;;;”
11. Load the project into the S7-200 CPU.
Configuring the Startup Software
Wireless Data Communication based on GPRS (flexible) 30321000
No. Action Comment
12. The modem configuration is completed, if the “DONE” output at the block WDC_CONFIG_FLEX_Px is “1”.
V1.0 release 19.08.2008 29/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Configuring the Startup Software
Wireless Data Communication based on GPRS (flexible) 30321000
Checking the GSM/ GPRS connection and log-in at SINAUT MICRO SC server
Before the user-project can be loaded, the Remote Station has to be successfully logged-in at the SINAUT MICRO SC server.
Table 5-7
V1.0 release 19.08.2008 30/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
No. Action Comment
1. Open SINAUT MICRO SC Configurator with: Start/AllProgramms/Simatic/SINAUTMicro SC/Konfiguration The cross icon in front of each connection signals that the Remote Station has not yet been logged-in at the SINAUT MICRO SC server.
2. Switch on the power supply of the
Remote Station. The modem checks the transferred SIM card parameters
3. The modem is establishing the connection
with the GSM network
4. The modem has successfully established
the connection with the GSM network.
5. The modem has successfully established
the connection with the GPRS network.
6. This connects to the SINAUT MICRO SC
server.
7. The modem has successfully logged-in at
the SINAUT MICRO SC server.
Configuring the Startup Software
Wireless Data Communication based on GPRS (flexible) 30321000
No. Action Comment
8. The checkmark icon in front of each connection signals that the Remote Station has logged-in at the SINAUT MICRO SC server. If the modem does not log-in correctly, check the connection parameters and reload the configuration program.
Configuring and loading the user program of the application
Before you can start the Live-Demo, the user program has to be configured and loaded into the S7-200 CPU.
V1.0 release 19.08.2008 31/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Table 5-8
No. Action Comment
1. Open the user-project of the Remote Station (5) from Table 5-1 according to the CPU port used
2. Use STEP 7 Micro/WIN to navigate to the “MAS31” data block.
3. Enter the station number, which has been selected in SINAUT Micro SC.
//Own unique Station number
WDC_INIT_own_stationnmb ”1”
4. Load the project into the S7-200 CPU.
Live Demo
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 32/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
6 Live Demo
Overview of features
The following features of this Micro Automation Set can be demonstrated:
Table 6-1
No. Function Comment
1. Monitoring the process data (e.g.: fill level, flow)
Cyclic sending of data to the Central Station
2. Manual control of the pump P2 Changing data by the Central Station
Note The Micro Automation Set 31 contains a simple communication example, suitable for demonstrating the operation of the GPRS communication with cost efficient components.
Technological features such as buffering of data, sending of SMS messages or cross communication between several Remote Stations are described in detail in the Micro Automation Set 21. http://support.automation.siemens.com/WW/view/de/22537809
Note The Remote Station “Stormwater Overflow” from this Micro Automation
Set can replace the Remote Station “Stormwater Overflow” in the Micro Automation Set 21.
Live Demo
Wireless Data Communication based on GPRS (flexible) 30321000
6.1 User interface
Overview
The user interface of Micro Automation Set 31 consists of the operator displays “MAS31 – Live Demo” and “Communication”.
Structure of operator display “MAS31 – Live Demo”
Figure 6-1
V1.0 release 19.08.2008 33/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
1
2 6
7
83
7467
90,874
455
0,94
11231
10
12
P1
Table 6-2
No. Description Comment
1. The MAS31 Live Demo button takes you to the “Live Demo” operator display.
2. The Communication button takes you to the “Communication“ operator display.
3. Updates the depicted process data of Remote Station “Stormwater Overflow”
4. Starts the demo “Stormwater Overflow”.
5. Pump P2 is switched ON/OFF with this button.
Live Demo
Wireless Data Communication based on GPRS (flexible) 30321000
No. Description Comment
V1.0 release 19.08.2008 34/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
6. Operating hours display (Operating Hours) of pump P1.
7. Operating hours display (Operating Hours) of pump P2.
8. Shows the current flow (Flow Rate) into the Stormwater Overflow.
If there is a flow, the feed pipe turns blue.
9. Shows the current drainage (Overflow Rate) from the Stormwater Overflow into the lake/river.
If there is a flow, the drain pipe turns blue.
10. Display of the current fill level (Fill Level) of the Stormwater Overflow.
The fill level is also graphically symbolized as the water level in the Inspection Shaft.
11. Symbolizes pump P1. Color changes to green if ON. Additionally the pipe is colored blue.
12. Symbolizes pump P2. Color changes to green if ON. Additionally the pipe is colored blue. Color changes to green if ON.
The bottom range of the picture contains the alarm message window. Here the current status information and alarms are depicted.
Structure of operator display “Communication”
Figure 6-2
Online
Online
31
10
775524
1688688
2384242
5
6
7
8
9
10
11
1
10 Seconds
3
4
2
Live Demo
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 35/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Table 6-3
No. Description Comment
1. The MAS31 Live Demo button takes you to the “Live Demo” operator display.
2. The Communication button takes you to the “Communication” operator display.
3. Updates the depicted data of Remote Station “Stormwater Overflow”.
4. Currently active send cycle in seconds.
5. Shows whether the modem has successfully logged-in at the SINAUT MICRO SC server.
6. Shows whether SINAUT MICRO SC and S7-200 are connected.
7. Signal intensity of the antenna. 0 = poor reception 31=excellent reception
8. Currently active send cycle in seconds.
9. Number of bytes received by the modem. Update occurs every hour
10. Number of bytes sent by the modem. Update occurs every hour
11. Total of bytes received and sent by the modem. Update occurs every hour
6.2 Scenarios of Remote Station “Stormwater Overflow”
General information
The scenarios of the Remote Station “Stormwater Overflow” have been kept simple.
Live Demo
Wireless Data Communication based on GPRS (flexible) 30321000
Scenario “Monitoring of process data”
Table 6-4
V1.0 release 19.08.2008 36/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
No. Action / What happens? Note / Picture
1. Change to the “Communication” screen.
2. In the drop-down list “Send Cycle” set the cycle time 10 seconds for the Remote Station “Stormwater Overflow”. (The Remote Station cyclically sends data to the Central Station every 10 seconds.)
3. Change to the “MAS31 – Live Demo” screen.
4. Click the “Start Demo” button of the
Stormwater Overflow. (Here data are written from the Central Station to the Remote Station.)
5. After a short wait time you see how the
feed pipe for the inflow turns blue. The fill level rises and pump P1 switches on.
Live Demo
Wireless Data Communication based on GPRS (flexible) 30321000
No. Action / What happens? Note / Picture
6. If the Stormwater Overflow is full and the inflow abides, the filling process is terminated.
V1.0 release 19.08.2008 37/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Live Demo
Wireless Data Communication based on GPRS (flexible) 30321000
Scenario “Pump control”
Table 6-5
V1.0 release 19.08.2008 38/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
No. Action / What happens? Note / Picture
7. Switch on pump P2 by pressing the “P2 switch on” button in order to empty the overflow structure. (Here data are written from the Central Station to the Remote Station “Stormwater Overflow”.)
8. P2 becomes green and the pump pipe
turns blue.
9. If the basin is empty and pump P2 is
switched on, the alarm message “Tank fill level too low” appears
10. Switch off pump P2 by pressing the “P2
switch off” button.
11. The demo is completed. To avoid excessive data accumulation,
increase the send cycle of the “Stormwater Overflow” Station to > 1 minute.
Performance Data of the Application
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 39/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
7 Performance Data of the Application
7.1 Comparison with Micro Automation Set 21
General information
This chapter describes the advantages and disadvantages of the Micro Automation Set 31 compared to the Micro Automation Set 21.
Table 7-1
No. Function MAS21 MAS31
1. Use of all S7-200 CPUs (CPU221 to CPU226) No Yes
2. Variable interface selection (port 0 or port 1) No Yes
3. More memory space for the user program due to the small size of the block library
No Yes
4. Sending SMS Yes No
Note Technological features such as buffering of data and cross communication are also possible with the Micro Automation Set 31 and are described in detail in the Micro Automation Set 21.
7.2 Estimating the communication costs
General information
This chapter has two parts. The connection costs are considered separately for
Remote Stations and for
the Central Station.
Note At this point no absolute prices are given. The chapter is an aid for you to estimate your connection costs.
The GPRS connection costs and the standard internet connections are calculated on the basis of the presently typical tariff rate models. (As at August 2006)
Performance Data of the Application
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 40/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
7.2.1 Connection costs of the Remote Station
Fixed costs
Table 7-2
No. Description Comment
1. Basic charge of the SIM card Does not always exist, e.g. a basic charge is usually not charged for “prepaid” SIM cards.
2. Charge for volume discount rate
Volume discount rate means that a certain free volume is available. (Regardless whether it is used or not.)
Note (Prepaid cards, however, are not recommended due to high block rounding6 and high tariffs.)
Variable costs
Table 7-3
No. Description Comment
1. Connection costs The connection costs are usually paid for the transferred data volume unless they are included in the fixed costs as a volume discount rate. I.e. if you do not have a volume discount rate, you pay for the data volume sent.
7.2.2 Example of the connection costs of the Remote Stations
Example: fixed costs
Table 7-4
No. Description Costs
1. Basic charge of the SIM card 4 units
2. Charge for volume discount rate
0 units (for 0 Mbytes free volume)
6 Block rounding: For payment purposes the produced data volume is summarized in blocks of certain size (typical 10kBytes). However, if the block volume is not used up within a certain period of time (typically 1 day), it is rounded up to the full block volume.
Performance Data of the Application
Wireless Data Communication based on GPRS (flexible) 30321000
Example: variable costs
Table 7-5
No. Description Costs
1. Connection costs 0.08 units per 10 Kbytes
Example calculation of the connection costs of Remote Station “A”, which cyclically sends data to the Central Station every 15 minutes)
The following factors for the calculation are given:
Connection costs: 0.2 units per 10Kbytes
Send interval: every quarter of an hour
Data volume: 280 bytes
Figure 7-1
V1.0 release 19.08.2008 41/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Central Station
Stationsnummer: 0
Remote Station
Stationsnummer: 1
P P
INTERNET
GPRS
ISp
Internet Service Provider
Send dataAcknowledgment
SINAUT Micro SC
WinCCflexible
Performance Data of the Application
Wireless Data Communication based on GPRS (flexible) 30321000
Where does a data volume of 280 bytes result from?
Table 7-6 Remote Station “A” sends
V1.0 release 19.08.2008 42/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Calculation Number
Bytes
Comment
1. Sending Data:
Net data
Header SINAUT MICRO SC
IP header
TCP header
50 15 20 32
Remote Station sends 50 bytes of net data
2. Sending acknowledgement for Data:
IP header
TCP header
20 32
SINAUT MICRO SC then returns an acknowledgement.
3. Sending Transfer Status:
Clock Synchronization
IP header
TCP header
7 20 32
SINAUT MICRO SC additionally sends a status monitoring in form of the clock synchronization every 15 minutes
4. Acknowledgement for Transfer Status:
IP header
TCP header
20 32
The Remote Station then returns an acknowledgement.
5. Total 280
! Attention
This example calculation does not consider:
Repeated sending if the acknowledgement of one package on the TCP/IP level is missing
Any cross communication between modems
Sending of data from the Central Station to the Remote Station
Sending on demand
Dialling into the GPRS network (2 kBytes)
Performance Data of the Application
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 43/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
What is the data volume that is sent per month if the send-interval is a quarter of an hour?
Table 7-6
No. Calculation Comment
1. Hours per month: 720 hours
1 month = 30 days;
1 day = 24 hours
2. Send jobs per month: 2880
1 send interval = 0.25 hours
3. Sent bytes per month: 806,400 bytes
280 bytes * 2880
What connection costs incur for a data volume of 288,000 bytes per month?
Table 7-7
No. Calculation Comment
1. Costs per byte: 0.000008 units per byte
0.08 units per 10 Kbytes
2. Total costs: 6.46 units
0.000008 units per byte * 806,400 bytes
Plus the fixed costs of 4 units (see Table 7-4) the total costs per month and Remote Station amount to 10.46 units.
Note The tariffs can be extended with Inclusive-Volumes. Tariffs are for example available for 7 units including 1 MB volume.
The above calculated volume would be in the range of Inclusive-Volume with fixed costs only.
Performance Data of the Application
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 44/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
7.2.3 Connection costs of the Central Station
The recommended tariff rate for the Central Station is a presently common tariff rate with a free volume of 1 GB or more.
Even extremely high communication will not deplete this free volume. The following example will elucidate this:
Example: calculation of the connection costs of the Central Station
In the following a calculation example is given for the data volume for an extreme communication load. This is a mere example and it does not refer to any possible system.
The following factors for the calculation are given:
Number of Remote Stations: 100
Send intervals of the Remote Stations: every quarter of an hour (15 minutes)
Data volume: 806,400 bytes
What is the data volume received per month for the specified factors?
Table 7-8
No. Calculation Comment
1. Received data volume per 100 stations per month: 80,640,000 bytes
Number of Remote Stations: 100
Data volume per Remote Station per minute: 806,400 bytes
Assuming a theoretical system with 100 Remote Stations which send 280 bytes of data every 15 minutes, the data volume used amounts to approx. 0.08 Gbytes.
7.3 Information on connection quality
General information
Specific information on connection quality is not possible. The quality depends on many factors, such as the following:
Mobile service provider
INTERNET Service Provider
Number of Remote Stations
Frequency of cross communication
Frequency of writing SINAUT MICRO SC to Remote Stations
Performance Data of the Application
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 45/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
Connection quality
Due to the fact that the above factors cannot be excluded, the modem was designed so that an unsuccessful send job is signalled at the send block.
This gives the user of the user program the opportunity to react to an unsuccessful send job.
Technical Data
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 46/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
8 Technical Data
LOGO!Power 24 V/1.3 A
Table 8-1
Criterion Technical data Additional note
Supply voltage AC 85 up to 264 V
Output voltage 24 VDC (setting range 22.2 to 26.4 VDC)
Output current 1.3 A
Dimensions (W x H x D) in mm 54 x 90 x 55
S7-200 CPU 222
Table 8-2
Criterion Technical data Additional note
Input voltage 24 V DC
Current consumption 500 mA
Output current 340 mA at 5V For expansion modules
Interfaces 1 x RS 485 interface 1 x expansion bus for modules
Inputs/outputs 8DE/6DA
EPROM user data 4 Kbytes
Dimensions (W x H x D) in mm 90 x 80 x 62
SINAUT MD720-3
Table 8-3
Criterion Technical data Additional note
Connection RS232 SUB D9 female connector
Transfer rate of RS232 300 bps up to 57,600 bps
Quad-band 800, 900, 1800, 1900MHz
Output power 2W 800, 900MHz 1W 1800,1900MHz
Supply voltage 24 VDC (min.12V, max.30V)
Current consumption max. 260 mA
Operating temperature –20°C to +60°C
Design Top hat rail mounting
Dimensions (W x H x D) in mm 22.5mm x 99mm x 114mm
Technical Data
Wireless Data Communication based on GPRS (flexible) 30321000
V1.0 release 19.08.2008 47/47
Co
pyr
igh
t
Sie
me
ns
AG
Co
pyr
igh
t-2
008
All
righ
ts r
ese
rved
S
et3
1_
Te
chD
oc_
V1
d0_
en
.do
c
WinCC flexible RT
Table 8-4
Criterion Technical data Additional note
Operating system MS Windows 2000 & SP4 MS Windows XP Professional & SP1/SP2
Variables
Depending on order, maximum of 2000 variables with external connection to the controller, internal values unlimited
Powertags 128, 512, 2K
Number of connectable partners, max.
Depending on scale of configuration (communication), up to 8 connections possible with WinCC flexible Runtime
Online languages, max. 16 Offline languages max. 32