Você está na página 1de 69

Micro Application Examples.

Wireless Data Communication based on GPRS Micro Automation Set 21

Note

Micro Automation Set 21

Entry-ID 22537809

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 pro-vide support for typical applications. You are responsible in ensuring that the de-scribed products are correctly used. These Micro Automation Sets do not relieve you of the responsibility in 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 - then the contents of the other documents have priority.

Warranty, liability and support


Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

We do not accept any liability for the 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 Sets 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 does not imply a change in the burden of proof to your detriment. Copyright 2006 Siemens A&D. It is not permissible to transfer or copy these Micro Automation Sets or excerpts of them without first having prior authorization from Siemens A&D in writing.

05.05.2006

2/69

Foreword

Micro Automation Set 21

Entry-ID 22537809

Foreword
Micro Automation Sets are fully functional and tested automation configurations based on A&D standard products for easy, fast and inexpensive implementation of automation tasks in small-scale automation. Each of these Micro Automatic Sets covers a frequently occurring subtask of a typical customer problem in the low-end range. The sets help you to 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 by clicking the following link: http://www.siemens.com/microset

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

3/69

Foreword

Micro Automation Set 21

Entry-ID 22537809

Table of Contents
Table of Contents ......................................................................................................... 4 1 2 2.1 2.2 2.3 3 3.1 3.2 4 4.1
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Application Areas and Usage ................................................................... 6 Setup ......................................................................................................... 11 General setup................................................................................................ 11 Layout diagram for Central Station............................................................. 12 Layout diagram of a Remote Station .......................................................... 13 Hardware and Software Components .................................................... 14 Central Station .............................................................................................. 14 Remote Station ............................................................................................. 15 Function principle .................................................................................... 17 SINAUT MICRO SC Server ........................................................................... 17 GPRS Modem SINAUT MD720-3 .................................................................. 21 S7 Block Library ........................................................................................... 22 Communication between Remote Stations ................................................ 25 Management of the send jobs ..................................................................... 33 Buffering of process data with real time stamp......................................... 36 Archiving the process data in the Central Station..................................... 36 Sending SMS text messages ....................................................................... 38 Dyn-DNS Service .......................................................................................... 39 TeleService.................................................................................................... 40 Configuring the Startup Software........................................................... 41 Preliminary Remarks .................................................................................... 41 Downloading the Startup Code ................................................................... 41 Configuring Components ............................................................................ 41 SINAUT MICRO SC Server ............................................................................ 42 WinCC Flexible ............................................................................................... 42 Remote Station ............................................................................................... 43 Live Demo ................................................................................................. 47 User interface................................................................................................ 47 Scenario of Remote Station Stormwater Overflow ................................ 51

4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 5 5.1 5.2 5.3 5.3.1 5.3.2 5.3.3 6 6.1 6.2

05.05.2006

4/69

Foreword

Micro Automation Set 21

Entry-ID 22537809

6.3 7 7.1 7.1.1 7.1.2 7.1.3 7.2 8

Scenario of Remote Station Inspection Shaft ........................................ 54 Performance Data of the Application ..................................................... 61 Estimating the communication costs ......................................................... 61 Connection costs of the Remote Station ........................................................ 61 Example of the connection costs of the Remote Stations .............................. 62 Connection costs of the Central Station ......................................................... 65 Information on connection quality .............................................................. 66 Technical Data.......................................................................................... 68

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

5/69

Application Areas and Usage

Micro Automation Set 21

Entry-ID 22537809

Application Areas and Usage


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 substations Stormwater Overflow and Inspection Shaft. Both should communicate with each other and with a control center. The internet based GPRS 1 service, which charges by data volume, should be used as a data transfer medium. The control center should enable central operator control and monitoring. The substations should have the following functionalities: Stormwater Overflow Structure 2, Flow measurement for discharge influx Measuring the filling level of the overflow structure Overflow measurement 3 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

Application example

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Inspection Shaft 4, Flow measurement for discharge influx Measuring the filling level of the overflow structure Automatic pumping of basin content to the Stormwater Overflow Operating hours count of the pumps Monitoring overflow structure and dry run of the pumps All measuring data are to be buffered locally with real-time stamps and non-volatile, until they have been sent to the control center successfully and could be archived there. A trigger in the control center causes the Inspection Shaft substation to send an SMS to a telephone number determined by the control center.

GPRS: General Packet Radio Service is a package-oriented data service in GSM networks. These are based on IP network technology (IP = internet protocol) 2 Stormwater Overflow: a structure in the discharge network for catching peak loads. A Stormwater Overflow enables controlled overflow (with overflow measurement). 3 Overflow measurement: Stormwater overflow structures have an overflow for surplus effluent which forms after heavy rainfall, for example. The effluent volume is measured at an overflow edge and is referred to as overflow measurement. 4 Inspection Shaft: a shaft in the pipe system of the waste water network. The Micro Automation Set contains/simulates elements for flow measurement. This enables measuring and calculating the waste water influx from an industrial plant, for example.

05.05.2006

6/69

Application Areas and Usage

Micro Automation Set 21

Entry-ID 22537809

Figure 1-1
Waste Water Treatment Plant

Pump Pump
P1 P2

Discharge
P3

Inspection Shaft

Pump

Stormwater Overflow

River

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

7/69

Application Areas and Usage

Micro Automation Set 21

Entry-ID 22537809

Automation Solution Set 21 The automation solution uses the SINAUT Micro SC remote control system with the GPRS modems MD720-3 to display the distributed Remote Stations at the Central Station or to change them to exchange process data between the Remote Stations

Figure 1-2
Central Station SINAUT MICRO SC WinCC flexible

INTERNET

GPRS
Remote Station
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

GPRS
Remote Station S7-200 MD 720-3
S

S7-200

MD 720-3
S

S QC

S QC

PPI

RS232 Inspection shaft

PPI

RS232

Stormwater Overflow
P1 P2

Remote Station Inspection Shaft The S7-224 XP controller measures the amount of discharge influx (simulation) and, depending on the filling level, controls the pump P3, which pumps the water into the subsequent stormwater overflow structure. All process data are transmitted to the Central Station via the GPRS modem MD720-3 A non-volatile buffer in the memory module saves the process data together with a real-time stamp until they have been sent successfully.

Remote Station Stormwater Overflow The S7-224 XP controller controls pump P1, which pumps the water of the stormwater overflow structure into the subsequent waste water treatment station (simulation). 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.

05.05.2006

8/69

Application Areas and Usage

Micro Automation Set 21

Entry-ID 22537809

Central Station The OPC server SINAUT MICRO SC is used as a platform for data exchange with the Remote Stations. A DSL internet connection provides a performant communication. As OPC 5 client, WinCC flexible takes on the task of displaying the process data and writing them into a SCV file 6 with real-time stamp. The user interface enables switching one demo program each in the Remote Station Inspection Shaft or Stormwater Overflow, which indicates the filling or emptying of the overflow structure.

Application Areas The Micro Automation Set is suitable for industrial applications in which data with the following properties are to be transferred cost-effectively:
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Wireless data transfer Sending data across large distances (worldwide, if a GSM 7/ GPRS network exists) Data exchange with mobile stations Secured by buffers (in case of a connection fault)

This Micro Automation Set 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 Automats Traffic management systems Buildings Intelligent bill boards Weather stations Light house

OPC: Openness, Productivity, Collaboration is an open software interface. This is meant to enable data exchange via a standardized interface. 6 CSV file: (Comma Separated Values) is a text file with values separated by commas or semicolon. 7 GSM: Global System for Mobile Communications. Is the name for the used (digital) mobile radio standard.

05.05.2006

9/69

Application Areas and Usage

Micro Automation Set 21

Entry-ID 22537809

Benefits

Decentralized power generation such as wind and solar power Power distribution and remote long distance heating systems

Connecting automated mobile stations such as: Rail vehicles Special vehicles Complex building machines Ships in inland and coastal waters

Remote programming and maintenance of the S7-200 via GSM CSD 8

SINAUT Micro SC enables an economic and bidirectional 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. All Remote Stations can be maintained via the Teleservice of MicroWin For service purposes, text messages can be automatically transferred to the service staff via SMS A Quadband antennae enables worldwide log-in at GSM mobile services providers via GPRS network GPRS and INTERNET secure short transfer times and are always online. Despite of a high availability, only the sent or received data volume is charged.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

CSD: Circuit Switched Data. Transferring data using the time-slot procedure of the GSM mobile radio standard.

05.05.2006

10/69

Setup

Micro Automation Set 21

Entry-ID 22537809

2
2.1

Setup
General setup

Layout diagram for Micro Automation Set 21


Figure 2-1
Central Station SINAUT MICRO SC WinCC flexible

INTERNET

GPRS
Remote Station S7-200 MD 720-3
S

GPRS
Remote Station S7-200 MD 720-3
S

S QC

S QC

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

PPI

RS232 Inspection Shaft

PPI

RS232

Stormwater Overflow
P1 P2

The Micro Automation Set 21 consists of a Central Station and two Remote Stations.

05.05.2006

11/69

Setup

Micro Automation Set 21

Entry-ID 22537809

2.2

Layout diagram for Central Station


Figure 2-2

Central Station

Internet connection with static IP address or DynDNS Service

SINAUT MICRO SC WinCC flexible

INTERNET

The Central Station consists of a standard Windows PC with internet connection and a static IP address (alternative to the static IP address, a Dyn-DNS service can be used).
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Installed on the PC are software SINAUT MICRO SC, for managing the GPRS communication, and WinCC flexible for visualizing the process data.

05.05.2006

12/69

Setup

Micro Automation Set 21

Entry-ID 22537809

2.3

Layout diagram of a Remote Station


Figure 2-3

INTERNET GPRS
Remote Station
LOGO!Power 24V 1.3A
N L1

CPU 224XP

MD720-3

DIP switch of the PC/PPI cable


1 1 RS485 2 1 3 1 4 0 5 0 6 1 7 1 8 0

PC/PPI cable

RS232

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

The Remote Station consists of an S7-224 XP CPU with connected modem MD720-3 and a LOGO! Power 24V 1.3A power unit. Modem MD720-3 is connected to Port 0 of the S7-224 XP CPU with a PC/PPI cable. Modem MD720-3 contains the SIM card of your mobile services provider.

05.05.2006

13/69

Hardware and Software Components

Micro Automation Set 21

Entry-ID 22537809

3
3.1
Products

Hardware and Software Components


Central Station

Table 3-1

Component Windows PC SINAUT MICRO SC (License: for 8 stations) SINAUT MICRO SC (License: for 64 stations) SINAUT MICRO SC (License: for 256 stations) WinCC flexible RT

No. 1 1 alt. alt. --

MLFB / Order number 6NH9910-0AA10-0AA3 6NH9910-0AA10-0AA6 6NH9910-0AA10-0AA8

Note

alternative alternative 128 tags, other versions also available

6AV6613-1BA01-1CA0

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Accessories
Table 3-2

Component

No.

MLFB / Order number

Note Alternative, e.g. DSL-Router for effective separation from INTERNET

Router

Alt.

--

Configuration software/tools
Table 3-3

Component WinCC flexible Advanced

No. 1

MLFB / Order number 6AV6613-0AA01-1CA5

Note For configuration of WinCC flexible RT

Services of a provider
Table 3-4

Component Internet connection Dyn-DNS Service

No. 1 Opt --

MLFB / Order number

Note With static IP address If no static IP address available

(e.g. http://www.dyndns.com)

05.05.2006

14/69

Hardware and Software Components

Micro Automation Set 21

Entry-ID 22537809

3.2
Products

Remote Station

Table 3-5

Component LOGO! Power 24V/1,3A S7-200 CPU 224 XP SINAUT MD720-3 Quad band antenna ANT 794-4MR PC/PPI cable
9

No. 1 1 1 1

MLFB / Order number 6EP1 331-1SH02 6ES7 214-2AD23-0XB0 6NH9720-3AA00 6NH9860-1AA0 DC

Note

GPRS Modem Omnidirectional with 5m cable Serial Interface

6ES7 901-3CB30-0XA0

Accessories
Table 3-6

Component
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

No. 1 1 1

MLFB / Order number 6ES7 291-8GH23-0XA0 6ES5 710-8MA11

Note Buffering data which are not sent 483 mm Optional for this application example

256 KB memory module Standard DIN rail 35mm Simulator

Configuration software/tools
Table 3-7

Component

No.

MLFB / Order number

Note Serial interface, alternatively the cable can be used under Products.

PC/PPI cable SIMATIC STEP 7Micro/WIN

1 1

6ES7 901-3CB30-0XA0 6ES7810-2CC03-0YX0

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)

05.05.2006

15/69

Hardware and Software Components

Micro Automation Set 21

Entry-ID 22537809

Services of a mobile provider


Table 3-8

Component SIM card

No. 1

MLFB / Order number Available at your mobile services provider.

Note Often special M2M are available for GPRS

Note

With the exception of the configuration tool and a memory module the components are required for each Remote Station.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

16/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

4
4.1

Function principle
SINAUT MICRO SC Server

Configuration of the connection between Remote Station and Central Station Data exchange between a Remote Station and the Central Station requires configuring a connection for each one using SINAUT MICRO SC. A maximum number of 256 connections can be configured. Figure 4-1 shows an exemplary overview of the configured connections for the Remote Stations Inspection Shaft (MAS21_IS) and Stormwater Overflow (MAS21_SWOS).
Figure 4-1

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

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 services 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-2 shows the communication settings of the Remote Station Inspection Shaft

05.05.2006

17/69

Function principle

Micro Automation Set 21


Figure 4-2

Entry-ID 22537809

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

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 and the port address. Figure 4-3 shows the port address used in this Micro Automation Set.
Figure 4-3

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.

05.05.2006

18/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

Routes of data message frames for communication between Remote Stations Data exchange between Remote Stations is always performed via the Central Station. Table 4-1 shows an example process of a send job from Remote Station A to Remote Station B.
Table 4-1

Step 1.

Function Remote Station A sends a process value to Remote Station B with station number 2 as target address SINAUT MICRO SC receives the message frame from Remote Station A Using the routing table and the target address station number B, SINAUT MICRO SC determines the current GPRS IP address of Remote Station B and forwards the message frame to this station.

Note / Picture

2. 3.

Vice versa Remote Station B sends an acknowledgement to Remote Station A

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Figure 4-4
Central Station

Station number: 0

WinCC flexible SINAU T MICRO SC

INTERNET
2

1
Remote Station A Station number: 1

GPRS

Remote Station B Station number: 2

GPRS

P P

05.05.2006

19/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

Visualizing the process data with OPC-Client Each 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 Inspection Shaft 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. Changing of process data: A change of process data VD2000 in the OPC client (e.g. WinCC flexible) is recognized by the OPC server of SINAUT MICRO SC, and causes SINAUT MICRO SC to send the changed VD2000 value to the Inspection Shaft Remote Station.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Figure 4-5
Remote Station Inspection Shaft Station number: 1 Central Station

OPC-Server SINAUT MICRO SC

OPC-Client WinCC flexible MSC:[MAS21_IS]GPRSConnected MSC:[MAS21_IS]PLCConnected MSC:[MAS21_IS]BytesReceived MSC:[MAS21_IS]BytesTransmitted MSC:[MAS21_IS]RefreshValues MSC:[MAS21_IS]RefreshValues

MAS21_IS VD2000

VD2000

MSC:[MAS21_IS]DB1,Real2000

05.05.2006

20/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

4.2

GPRS Modem SINAUT MD720-3

Requirements for operation Operating modem MD720-3 requires a SIM card with GPRS service which, analog 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


Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

The configuration of the modem is performed by means of the S7 block WDC_INIT contained in the delivery scope. It sends the parameters previously stored in the user program to the modem after rebooting the controller: The station number for this connection defined in SINAUT MICRO SC 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 a 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)

Setup of a GSM/ GPRS connection and login 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.

05.05.2006

21/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

A successful login process is illustrated in Figure 4-6. The respective connection status is illustrated by the front LEDs S, Q and C
Figure 4-6
MD 720-3

1 2 3

Checking all Sim card parameters (e.g. PIN) Connecting with GSM PROVIDER

C
Connecting with GSM PROVIDER

Q Q

C
Successfully connected with GPRS service

4 5

C
Connecting with SINAUT MICRO SC Server

Q Q

C
Successfully connected with SINAUT MICRO SC Server

6
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

4.3

S7 Block Library

Initializing with WDC_INIT This block to be cyclically called in the user program transfers the connection parameters stored in the data block to modem MD720-3.
Figure 4-7

05.05.2006

22/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

Sending with WDC_SEND Specifying the station number of the target Remote Station, the block to be cyclically called in the user program sends a data block with a maximum size of 239 bytes.
Figure 4-8

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Receiving with WDC_RECEIVE This block to be cyclically called in the user program receives incoming message frames and copies the received data block into the given address area.
Figure 4-9

Executing special functions with WDC_CONTRL This block to be cyclically called in the user program enables the following special functions: Accepting authorized CSD calls with the aim of maintaining the respective Remote Station via Teleservice.

05.05.2006

23/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

Switching to the so-called AT mode, with the aim, for example, of sending an SMS via AT commands. In this mode, the GPRS connection is deactivated.

Figure 4-10

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

24/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

4.4

Communication between Remote Stations

Remote station A sends process data to Remote Station B


Figure 4-11
Central Station Internet Service Provider Station number: 0

WinCC flexible SINAU T MICRO 7 14 SC

6 8

I S p

INTERNET

3
Remote Station A

9
Remote Station B Station number: 2

13
GPRS

GPRS

1
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Station number: 1

2
P

16 12.3%

11
P P

12.3%

Table 4-2

No. 1.

Function The data, e.g. filling level of 12.3% is read by the controller of Remote Station A via an analog interface. S7-200 sends the filling level (e.g. 12.3%) by calling the S7 block WDC_SEND with details of logic address of target Remote Station B variable address and byte length of the filling level to be sent (e.g. 12.3%) to the modem. The modem processes the filling level (e.g. 12.3%) and sends it to the mobile services provider via GPRS.

Note / Picture The process values are in this Micro Automation Set simulated by a variable.

2.

3.

05.05.2006

25/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

No. 4.

Function The mobile service provider passes the filling level (e.g. 12.3%) to the INTERNET. The INTERNET routes the filling level (e.g.12.3%) to the INTERNET Service Provider of the Central Station The INTERNET Service Provider of the Central Station transfers the filling level (e.g. 12.3%) to the SINAUT MICRO SC Server of the Central Station. The SINAUT MICRO SC Server cancels the logic target address of Remote Station B using the routing table. The SINAUT MICRO SC Server sends the filling level (e.g. 12.3%) to the current IP address of Remote Station B. The filling level (e.g. 12.3%) is routed via the INTERNET Service Provider and via INTERNET. The filling level (e.g. 12.3%) is passed on via the GPRS data service from the INTERNET to the modem of Remote Station B. Modem MD720-3 transfers the filling level (e.g. 12.3%) to the S7-200 CPU of Remote Station B. The filling level (e.g. 12.3%) is received from S7 block WDC_RECEIVE and filed in the data memory of Remote Station B. S7 block WDC_SEND CPU automatically generates an acknowledgement message and sends it to the modem. The modem sends the acknowledgement to the SINAUT MICRO SC Server of the Central Station via the above route The SINAUT MICRO SC Server forwards the acknowledgement to the modem of Remote Station A.

Note / Picture The interface between mobile services provider and the INTERNET is referred to as Access Point

5.

6.

7.

8.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

9.

10.

11.

12.

13.

14.

05.05.2006

26/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

No. 15.

Function The modem forwards the acknowledgement to the S7-200 CPU. The S7 block WDC_RECEIVE receives the acknowledgement. The S7 block WDC_SEND subsequently informs the user program of the success of the completed send procedure

Note / Picture

16.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

27/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

Remote station A sends the process data request to Remote Station B


Figure 4-12
Central Station Internet Service Provider Station number: 0

WinCC flexible SINAU T MICRO 7 14 SC

6 8

I S p

INTERNET

3
Remote Station A Station number: 1
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

9
Remote Station B Station number: 2

13
GPRS

GPRS

2
P

16

11 12

23.4%
P P

23.4%
Table 4-3

No. 1.

Function In the S7-200 controller of Remote Station A there is a need to request the filling level of Remote Station B. The filling level request is passed on to the modem via PC/PPI cable by calling the S7 block WDC_SEND and specifying logic address of target Remote Station B variable address and byte length of the requested filling level The modem processes the request and sends it to the mobile services provider via GPRS. The mobile service provider forwards the filling level request to the INTERNET

Note / Picture

2.

3.

4.

The interface between mobile services provider and the INTERNET is referred to as Access Point

05.05.2006

28/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

No. 5.

Function The INTERNET routes the filling level to the INTERNET Service Provider of the Central Station The INTERNET Service Provider transfers the filling level request to the SINAUT MICRO SC Server of the Central Station. The SINAUT MICRO SC Server cancels the logic target address of Remote Station B using the routing table. The SINAUT MICRO SC Server sends the filling level request to the current IP address of Remote Station B. The filling level request is routed via the INTERNET Service Provider and via INTERNET. The filling level request is passed on via the GPRS data service from the INTERNET to the modem of Remote Station B. The modem transfers the filling level request to the S7-200 CPU of Remote Station B. The filling level request is received from the S7 block WDC_RECEIVE and forwarded to the S7 block WDC_SEND. S7 block WDC_SEND CPU automatically generates an acknowledgement message with the requested filling level (e.g. 23.4%) and sends it to the modem. The modem sends the acknowledgement to the SINAUT MICRO SC Server of the Central Station via the above route The SINAUT MICRO SC Server forwards the acknowledgement to the modem of Remote Station A. The modem forwards the acknowledgement to the S7-200 CPU. The S7 block WDC_RECEIVE receives the acknowledgement and assigns the respective variable to the filling level (e.g. 23.4%) of the respective variable. The S7 block WDC_SEND subsequently informs the user program of the success of the completed send procedure

Note / Picture

6.

7.

8.

9.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

10.

11.

12.

13.

14.

15. 16.

05.05.2006

29/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

Remote Station A sends process data to Central Station B


Figure 4-13
Central Station Internet Service Provider Station number: 0

12,3%

WinCC flexible 7 SINAU T MICRO 8 SC

6 9

I S p

INTERNET

3
Remote Station A

GPRS

Remote Station B Station number: 2

GPRS

1
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Station number: 1

2 10
P P P

12.3%

Table 4-4

No. 1.

Function The data, e.g. filling level of 12.3% is read by the controller of Remote Station A via an analog interface. S7-200 sends the filling level (e.g. 12.3%) by calling the S7 block WDC_SEND with details of logic address of the target Central Station variable address and byte length of the filling level to be sent (e.g. 12.3%) to the modem. The modem processes the filling level (e.g. 12.3%) and sends it to the mobile service provider via GPRS. The mobile service provider forwards the filling level (e.g. 12.3%) to the INTERNET.

Note / Picture The process values are in this Micro Automation Set simulated by a variable.

2.

3.

4.

The interface between mobile service provider and the INTERNET is referred to as Access Point

05.05.2006

30/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

No. 5.

Function The INTERNET routes the filling level (e.g.12.3%) to the INTERNET Service Provider of the Central Station The INTERNET Service Provider of the Central Station transfers the filling level (e.g. 12.3%) to the SINAUT MICRO SC Server of the Central Station. The OPC server of SINAUT MICRO SC provides the received process data to the OPC client (HMI system). After successful reception, SINAUT MICRO SC an acknowledgement to the modem of Remote Station A. The modem forwards the acknowledgement to the S7-200 CPU. The S7 block WDC_RECEIVE receives the acknowledgement. The S7 block WDC_SEND subsequently informs the user program of the success of the completed send procedure

Note / Picture

6.

7.

8.

9. 10.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

31/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

Central Station sends process data to Remote Station A


Figure 4-14
Central Station Internet Service Provider Station number: 0

12.3% -> 32.3%

WinCC flexible 1 SINAU T MICRO 8 SC

6 9

I S p

INTERNET

3
Remote Station A

GPRS

Remote Station B Station number: 2

GPRS

Station number: 1

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

2 10
P P P

32.3%

Table 4-5

No. 1. 2.

Function In OPC client a variable is changed/updated. The OPC client transfers the changed variable to the OPC server of SINAUT MICRO SC SINAUT MICRO SC sends the changed value to Remote Station A which is assigned to this variable. The current IP address is thereby taken from the routing table. The INTERNET Service Provider forwards the new process value to the INTERNET. In the INTERNET the data are routed to the mobile service provider. The mobile service provider sends the data to the modem.

Note / Picture

3.

4.

5. 6.

05.05.2006

32/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

No. 7. 8.

Function The changed process value is transferred from modem to S7-200 via PC/PPI cable. The updated process value is received from the S7-200 CPU using the S7 blocks WDC_RECEIVE and assigned to the given variable address S7 block WDC_SEND generates an acknowledgement message and transmits it to the modem. The modem sends the acknowledgement to SINAUT MICRO SC of the Central Station 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

Note / Picture

9.

10.

11.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

4.5

Management of the send jobs

Send management Only one send job at once can be processed at any time. The maximum transmission time of 15 s defines the maximum send time. A send job cannot be interrupted. If process data are to be sent cyclically and event controlled, the events must be timed and prioritized (send management) In Micro Automation Set 21 the following four cyclic send functions must be managed by the Inspection Shaft Remote Station: A. Remote Station Inspection Shaft sends current filling level and status data to the Central Station B. Remote Station Inspection Shaft requests the filling level from Remote Station Stormwater Overflow. C. Remote Station Inspection Shaft sends the filling level data to Remote Station Stormwater Overflow. D. Remote Station Inspection Shaft sends filling levels, buffered due to communication errors, to the Central Station The following figure shows the temporal division of the four send jobs.

05.05.2006

33/69

Function principle

Micro Automation Set 21


Figure 4-15

Entry-ID 22537809

Send trigger A

T 4

T 4

Send trigger D

Send trigger B

T 4
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

T 4
Send trigger C

Imagine the send manager like the hour hand of a clock. Every quarter of an hour a send job will be processed. However, the hour hand does not take one hour for one cycle, but the cycle time T can be adjusted in the user program. The send time required for the transmission from the S7 block WDC_SEND is taken into account in the cycle time, i.e. between the end of send job A and the start of send job B there is T/4. In Micro Automation Set 21 the alarms in send job A are transferred to the Central Station. If an alarm occurs, the hour hand jumps to 59 minutes, just before the send job A. The next send job to be processed is hence send job A. See illustration below. Alarms such as a pump running dry cannot be planned or timed. Alarms must be forwarded to the Central Station quickly and with highest priority.

05.05.2006

34/69

Function principle

Micro Automation Set 21


Figure 4-16

Entry-ID 22537809

Send trigger A

Event

T 4

T 4

Send trigger D

Send trigger B

T 4
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

T 4
Send trigger C

05.05.2006

35/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

4.6

Buffering of process data with real time stamp

Why is it necessary to buffer process data with real time stamp? The data transfer occurs via the INTERNET. If the availability of the send job time is restricted, no data can be transferred. In order to send this data after all, together with a designated time, to the event to be triggered at a later time, it must first be buffered in a nonvolatile memory. If the communication connection is available again, the data can be read from the buffer and be sent.

Functionality of the buffer: Memory module 256 kByte of the S7-200 CPU is used as the buffer. The process data are stored as recipes. In the user program, program blocks of the recipe wizard are used for this. This enables exporting possible data onto the memory module, as well as reading from it. 1. Archive
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

If a send job fails, the affected data record is supplemented with a real time stamp in the memory module, comparable with adding a line in a table. 2. Retrieve If the connection quality is good, the respective data record buffered last is loaded from the memory module, sent and deleted. The user program evaluates the connection quality with bad, if a send job was cancelled unsuccessfully. If only the first three send jobs of a time disk (see chapter 4.4) were successfully sent, the connection quality is set to good.

4.7

Archiving the process data in the Central Station

Why are process data archived? Many applications (e.g. water management) require an archive function to provide process data with real-time stamp for charging for performed works or for quality proofs. Archiving the method of operation The current and buffered process data are transferred via different variables of the control program. This ensures that the display field of the OPC client connected with this tag always displays the current value.

05.05.2006

36/69

Function principle

Micro Automation Set 21


Figure 4-17

Entry-ID 22537809

Current Process Data

C SV file

Save data during faulty communication


Momory
Realtime stamp
S

S7-200

MD 720-3

Value 1 123 789

Value 2 456 193

22.02.2006 15:10:00 22.02.2006 15:09:00

S QC

Buffered Process Data

PPI

RS232 Inspection Shaft

...

...

...

Send data as soon as communication restored

P1

P2

P3

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

This Micro Automation Set 21 uses WinCC flexible as OPC client. The realtime stamp transferred together with the process data, consisting of second, minute, hour, day, month and year works as trigger for a VB script for filing the process data into a CSV file. Due to time-delayed transfer of buffered process data the CSV file must be sorted regarding the timestamp prior to further data processing.
Figure 4-18

Archive
Date 17.02.2006 17.02.2006 17.02.2006 17.02.2006 17.02.2006 17.02.2006 17.02.2006 Time 14:37:49 14:38:32 14:35:31 14:39:15 14:40:12 14:34:08 14:40:54 Value 1 9,084531 32,64882 44,54535 55,78626 63,48804 5,690887 36,29039 Value 2 0,67101 0 0,992403 0,671013 0,5868255 0,213209 0 Value 3 8 8 8 8 8 8 9

Source: current process data

Source: buffered process data

05.05.2006

37/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

4.8

Sending SMS text messages

What use is there in sending an SMS? A permanent failure of a Remote Station connection with the SINAUT MICRO SC Server could go unnoticed for some time. Enabling a Remote Station to inform, for example, a service technician of this problem in due time, irrespective of the SINAUT MICRO SC server status, requires the option of sending an SMS.

Functionality The S7 block WDC_SMS enables sending an SMS. To do this, the block needs the telephone number of the SMS service center of the mobile service provider, the number to which the SMS is to be sent and the SMS text. WDC_SMS requires the S7 block WDC_Control, in order to terminate the GPRS connection and to reestablish it after sending the SMS. WDC_SMS switches the modem into AT mode and sends the short message on the basis of AT commands.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

After successful sending, or after a time out error, it is switched back into GPRS mode.

!
Attention

During sending the SMS, the GPRS connection is terminated. This disconnects the SINAUT MICRO SC Server. This means, the Remote Station is offline!

Note

The program block WDC_SMS for sending an SMS is offered as a library via a separate download together with a separate description of this block.

05.05.2006

38/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

4.9

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) the Domain Name servers of the INTERNET.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

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 if 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 servers must be introduced to the Domain Name servers of the INTERNET.)

05.05.2006

39/69

Function principle

Micro Automation Set 21

Entry-ID 22537809

4.10

TeleService

What does Teleservice mean? Teleservice offers the opportunity of changing the control program of the distributed Remote Station via a CSD connection using MicroWin.

Functionality The parameterization of the S7 block WDC_INIT in the user program enables transferring up to 3 authorized telephone numbers for the Teleservice to the modem. Calling one of these telephone numbers causes the modem to forward this request to the S7 block WDC_CONTROL of the controller, which receives it and switches the interface from Freeport to PPI Mode. The S7 program can be changed using MicroWin. Terminating the teleservice requires restarting the controller via MicroWin which causes the modem to reestablish a GPRS connection with the SINAUT MICRO SC server.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

40/69

Configuring the Startup Software

Micro Automation Set 21

Entry-ID 22537809

5
5.1

Configuring the Startup Software


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. They enable 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 show 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.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Table 5-1

No. 1. 2. 3. 4. 5.

Object Server

File name OPCM2M.xml

Content Configuration file for SINAUT MICRO SC

MAS21_WinCCFlex_V1d WinCC flexible 0_en.zip configuration Inspection shaft Stormwater overflow: SMS library MAS21_S7_InspShaft_V 1d0_en.mwp MAS21_S7_InspShaft_V 1d0_en.mwp S7-200 configuration S7-200 configuration

Set21_DocLibrary_V0d01 Library for using with _en.pdf Micro/Win.

5.3
Note

Configuring Components
Here it is assumed, that the required software
SINAUT MICRO SC WinCC flexible Advanced MicroWin

has been installed on your computer and you are familiar with the principal operation of this software.

05.05.2006

41/69

Configuring the Startup Software

Micro Automation Set 21

Entry-ID 22537809

5.3.1
Table 5-2

SINAUT MICRO SC Server

No. 6. 7.

Instructions Establish an INTERNET connection on your PC. Ensure that the used Port 26862 is, if necessary, directed through firewall or a router on your PC.

Note

If you have activated a Firewall on your PC, you 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) Save the existing file!

8.

Copy file OPCM2M.xml into the installation directory of SINAUT MICRO SC. Terminate SINAUT MICRO SC Server 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.

9.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

5.3.2
Table 5-3

WinCC Flexible

No. 1. 2.

Instructions Unzip the file (2) Table 5-1 and restart the WinCC flexible project file *.fwx For experts the WinCC flexible configuration of the project is also attached as *.hmi file

Note

05.05.2006

42/69

Configuring the Startup Software

Micro Automation Set 21

Entry-ID 22537809

5.3.3

Remote Station

General information This chapter describes the configuration process for the Remote Station Inspection Shaft. Proceed analog for configuring the Remote Station Waste Water Overflow Structure, taking into account the notes for this station.

Installing and wiring the components


Table 5-4

No. 1.

Instructions Open the SINAUT modem MD720-3 and insert the SIM card of your mobile services provider. Attach the simulator for the digital inputs at the S7-200 CPU. Plug the 256 KB memory module into the S7-200 CPU.
(Not necessary for the Inspection Shaft Remote Station)

Note See MD720-3 documentation chapter 2, Pages: 13-18

2. 3.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

S7-224 XP CPU Cartridge Cartridge

4.

Mount LOGO! Power, S7-200 CPU and the SINAUT MD720-3 Modem to the tophat rail. Connect the S7-200 CPU and the MD720-3 modem to the DC 24V supply voltage of LOGO! Power. Connect the MD720-3 and the S7-200 CPU with the PC/PPI cable. Use the following switch positions: 1 2 3 4 5 6 7 8 1 1 1 0 0 1 1 0 Connect all ground connections to earth. Connect the modem antennae with the modem.

See chapter 2.3 Layout diagram of a Remote Station See chapter2.3 Layout diagram of a Remote Station

5.

6.

7. 8.

If necessary, ensure a suitable lightning protection of the antennae!

05.05.2006

43/69

Configuring the Startup Software

Micro Automation Set 21

Entry-ID 22537809

Configure the software for the S7-200 and load into PLC
Table 5-5

No. 9.

Instructions Open the project of the Inspection Shaft Remote Station (3) or Remote Station Stormwater Overflow (4) of the Table 5-1. Navigate with STEP7 Micro/Win to the data block Communication_Parameter.

Note

10.

When substituting the following parameter ensure sufficient distance to the subsequent parameter so it wont be exceeded.
//Server IP Adress WDC_INIT_Target_IP_Addr "217.91.50.138"

11.

Replace the currently used IP address of the variable WDC_INIT_Target_IP_Addr either with the static IP address of your INTERNET connection or with the Domain Name Replace the currently used Pin no. of variable WDC_INIT_SIM_PIN with your Pin no. We recommend you deactivate the Pin query. In this case you enter the value 0000 Replace the currently used AccessPointName (APN) of the WDC_INIT_APN variable with that of your mobile service provider. This is the access of the GPRS network to the INTERNET. On top of the APN, some mobile service providers request a user name. In this case you replace the currently used APN user name of the WDC_INIT_APN_USER variable with that of your mobile service provider. Some mobile service providers request a password on top of the APN. In this case you replace the currently used APN password of the WDC_INIT_APN_PW variable with that of your mobile service provider. Use a static IP address at the INTERNET connection of your SINAUT MICRO SC server, predefine the WDC_INIT_DNS variable with . If alternatively to the static IP address a Domain Name is employed, at least one (maximal 2) IP address(es) of the Domain Name Server have to be stored in the WDC_INIT_DNS variable.

12.

//SIM PIN WDC_INIT_SIM_PIN "7091"

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

13.

//GPRS APN WDC_INIT_APN "web.vodafone.de"

14.

//GPRS APN User WDC_INIT_APN_User "guest"

15.

//GPRS APN User Password WDC_INIT_APN_User_PW "guest"

16.

Bei Verwendung von Domain Namen: //DNS WDC_INIT_DNS "139.007.030.125;139.007.030.126" Keine Verwendung von Domain Namen: //DNS WDC_INIT_DNS ""

05.05.2006

44/69

Configuring the Startup Software

Micro Automation Set 21

Entry-ID 22537809

No. 17.

Instructions In the variable you can store up to 3 telephone numbers to be authorized for a Teleservice data call. You can also use parts of telephone numbers and enable a telephone number chain with a *. Replace the currently used telephone number of the short message service center of your mobile service provider of the SMS_Service_Central variable with that of your mobile service provider.
(Only necessary for the Inspection Shaft Remote Station)

Note
//CLIP WDC_INIT_Clip_Numbers "+49911895*;;;;;"

18.

//Schort Message Service Central SMS_Service_Central "+491722270000"

19.

Load the project into the S7-200 CPU

Log in Remote Station Inspection Shaft and Stormwater Overflow at the SINAUT MICRO SC server
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Before starting with the Live demo, both Remote Stations Inspection Shaft and Stormwater Overflow must have successfully logged in at the SINAUT MICRO SC Server.
Table 5-6

No. 1.

Instructions SINAUT MICRO SC Configurator with


Start/AllProgramms/Simatic/SINAUTMicro SC/Konfiguration :

Note

The cross icon before each connection signals that both Remote Stations have not yet been logged in at the SINAUT MICRO SC server.

2.

Switch on the power supply of the Remote Station Inspection Shaft and Stormwater Overflow. The following steps apply for both Remote Stations. The modem checks the transferred SIM card parameters The modem establishes the connection with the GSM network

3.

05.05.2006

45/69

Configuring the Startup Software

Micro Automation Set 21

Entry-ID 22537809

No. 4.

Instructions The modem has successfully established the connection with the GSM network.

Note

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.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

8.

The checkmark icon before each connection signals that both Remote Stations have logged in at the SINAUT MICRO SC server.

05.05.2006

46/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

Live Demo
The following features of this Micro Automation Set can be demonstrated: Remote Station Stormwater Overflow Cyclic sending of data to the Central Station Changing data by the Central Station Calling/requesting data by the Central Station

Overview of features

Remote Station Inspection Shaft Cyclic sending of data to the Central Station Event controlled sending of data to the Central Station Changing data by the Central Station Sending data to the Remote Station Stormwater Overflow Calling/requesting data from the Remote Station Stormwater Overflow Archiving process data in a *.CSV file on the PC Local buffering of process data during connection failure and emptying the buffer on reconnecting Generating an alarm and depicting it via the WinCC flexible user interface Sending SMS text messages

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc


Note

With both Remote Stations different complexity structures were realized. The Remote Station Stormwater Overflow contains a Simple Communication Example, suitable for demonstrating the basic functions. Technological features such as buffering of data or sending of SMS messages are only realized in the Remote Station Inspection Shaft. This Remote Station is therefore more complex.

6.1
Overview

User interface

The user interface of Micro Automation Sets 21 consists of the operator displays Waste Water Application and Communication.

05.05.2006

47/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

Operator display Waste Water Application


Figure 6-1

1 2 3 9 14 10 15 7 8 16 17 18 4 6 5 11 13 12

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Table 6-1

No. 1.

Description The Waste Water Application button takes you to the Waste Water Application operator display. The Communication button takes you to the Communication operator display. Display of the current filling level (Fill Level) of the Inspection Shaft. Shows the current flow (Flow Rate) into the Inspection Shaft. Operating hours display (Operating Hours) of pump P3. Symbolizes pump P3. Updates the depicted process data of Remote Station Inspection Shaft

Note

2.

3.

The filling level is also graphically symbolized as the water level in the inspection shaft. If there is a flow, the feed pipe turns blue.

4. 5. 6. 7.

Color changes to green if ON. Additionally the pipe is colored blue.

05.05.2006

48/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

No. 8. 9. 10. 11.

Description Start the demo for Remote Station Inspection Shaft Operating hours display (Operating Hours) of pump P1. Operating hours display (Operating Hours) of pump P1. Shows the current flow (Flow Rate) into the Stormwater Overflow. Shows the current drainage (Overflow Rate) from the Stormwater Overflow into the lake/river. Display of the current filling level (Fill Level) of the Stormwater Overflow. Symbolizes pump P1. Symbolizes pump P2. Updates the depicted process data of Remote Station Stormwater Overflow Start the demo Stormwater Overflow Pump P2 is switched ON/OFF with this button

Note

If there is a flow, the feed pipe turns blue. If there is a flow, the drain pipe turns blue.

12.

13.

The filling level is also graphically symbolized as the water level in the Inspection Shaft. Color changes to green if ON. Additionally the pipe is colored blue. Color changes to green if ON. Additionally the pipe is colored blue.

14.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

15. 16.

17. 18.

The bottom range of the picture contains the alarm message window. Here the current status information and alarms are depicted.

05.05.2006

49/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

Structure of operator display Communication


Figure 6-2

1 2 3 4 5 6 12 13 14 8 15 9
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

1 2 3 4 5 6 7

16 17 10 11

Table 6-2

No. 1.

Description Shows whether the modem has successfully logged in at the SINAUT MICRO SC Server. Shows whether SINAUT MICRO SC and S7-200 are connected. Signal intensity of the antennae

Note For Remote Stations Inspection Shaft and Stormwater Overflow. For Inspection Shaft and Stormwater Overflow. 0 = poor reception 31=excellent reception For Remote Stations Inspection Shaft and Stormwater Overflow. For Remote Stations Inspection Shaft and Stormwater Overflow. For Remote Stations Inspection Shaft and Stormwater Overflow. For Remote Stations Inspection Shaft and Stormwater Overflow. For Remote Stations Inspection Shaft and Stormwater Overflow.

2. 3.

4. 5. 6. 7.

Currently active send cycle in seconds. Number of bytes received by the modem. Update occurs every hour Number of bytes sent by the modem. Update occurs every hour Total of bytes received and sent by the modem. Update occurs every hour

05.05.2006

50/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

No. 8.

Description Archive trigger for writing the current data of Remote Station Inspection Shaft via a Visual Basic Script into the CSV file Archive trigger for writing the buffered data of Remote Station Inspection Shaft via a Visual Basic Script into the CSV file Date and time of the last sent current data Date and time of the data last sent from the buffer Updates the depicted data of Remote Station Inspection Shaft. Send cycle of Remote Station Inspection Shaft Telephone number to which an SMS is to be sent. Send trigger for sending the SMS Updates the depicted data of Remote Station Inspection Shaft. Send cycle of Remote Station Stormwater Overflow

Note

9.

10. 11. 12. 13. 14.


Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

15. 16. 17.

6.2

Scenario of Remote Station Stormwater Overflow

General information The scenario of the Remote Station Stormwater Overflow has been kept simple on purpose. This Remote Station focuses on comprehensiveness of the communication

05.05.2006

51/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

Scenario
Table 6-3

No. 1.

Action / What happens? Change to the Communication screen.

Note / Picture

2.

In the Combox Send Cycle set the cycle time 5 seconds for the Remote Station Stormwater Overflow.
(The Remote Station cyclically sends data to the Central Station every 5 seconds)

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

3.

Change to the Waste Water Application screen.

4.

Click the Start Demo button of the Stormwater Overflow.


(Here data are written from the Central Station to the Remote Station.)

05.05.2006

52/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

No. 5.

Action / What happens? After a short wait time you see how the feed pipe for the inflow turns blue. The filling level rises and pump P1 switches on.

Note / Picture

6.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

If the Stormwater Overflow is full and the inflow abides, the filling process is terminated. It can be seen, that an overflow measurement is performed.

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

05.05.2006

53/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

No. 8.

Action / What happens? P2 becomes green and the pump pipe turns blue.

Note / Picture

9.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

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 scenario is terminated here.

6.3

Scenario of Remote Station Inspection Shaft

General information The scenario Remote Station Inspection Shaft is clearly more complex. This Remote Station focuses on technological aspects.
Note

A complete send cycle consists of four individual send processes, therefore, the minimal cycle time is restricted to one minute. (The simulation of the station is adjusted to the slower cycle) This makes the demo of this station much slower.

05.05.2006

54/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

Scenario Demo
Table 6-4

No. 1.

Action / What happens? Change to the Communication screen.

Note / Picture

2.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

In the Combox Send Cycle set the cycle time one minute for the Remote Station Inspection Shaft.
(The Remote Station Inspection Shaft cyclically sends data to the Central Station every minute)

3.

Change to the Waste Water Application screen.

4.

Click the Start Demo button of the Remote Station Inspection Shaft.
(Here data are written from the Central Station to the Remote Station.)

05.05.2006

55/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

No. 5.

Action / What happens? After a short wait time, the feed pipe turns blue and a flow measurement is performed. The flow is not constant but varies (see graphic on the right).

Note / Picture

Discharge [%]

Time t

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

6.

The overflow structure fills up to a filling level of approx. 90%.


(The status change of the pump causes the Remote Station to send on demand a prioritized data package to the Central Station)

05.05.2006

56/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

No. 7.

Action / What happens? Pump P3 automatically switches on.

Note / Picture

8.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Pump P3 empties the overflow structure. And then it switches off.

05.05.2006

57/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

Scenario Cross Communication


Table 6-5

No. 1.

Action / What happens? The digital outputs Q0.0 to Q0.7 of the CPU of Remote Station Inspection Shaft show the filling level of the Inspection Shaft. Switching on input I0.0 causes the filling level of the Stormwater Overflow to be displayed. The respective value is polled cyclically by the Remote Station Inspection Shaft from Remote Station Stormwater Overflow.

Note / Picture

The digital outputs Q1.0 and Q1.1 flash alternately with 1Hz. To better depict the desired effect start the demo Stormwater Overflow. 2.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Switch off switch I0.0 at the controller. Switch on switch I0.1 at the controller. An overflow alarm is generated.
(The alarm causes the Remote Station to send on demand a prioritized data package to the Central Station)

3.

4. 5.

Switch off switch I0.1 at the controller. Switch on switch I0.2 at the controller. An Tank fill level too low alarm is generated.
(The alarm causes the Remote Station to send on demand a prioritized data package to the Central Station)

6.

Switch off switch I0.2 at the controller.

05.05.2006

58/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

Scenario Archive Function


Table 6-6

No. 1.

Action / What happens? Change to the Communication screen.

Note / Picture

2.

Disconnect the PC/PPI cable from the modem and force a disconnection for about 5 minutes. After that reestablish the connection.
(Sending is no longer possible and the S7-200 writes data into the buffer.)

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

3.

The date/time field Buffered Date&Time now shows a more recent entry than the field Current Date&Time. This illustrates that the Remote Station Inspection Shaft has started to transfer the buffered entries after restoring the communicaton connection.

4. 5.

Wait until the Buffered Date&Time no longer change. The buffer is now empty. Open your windows explorer and navigate to your drive C:\, here you find the archive file with the extension *.CSV. Open the file and view the last archive entries.

05.05.2006

59/69

Live Demo

Micro Automation Set 21

Entry-ID 22537809

Scenario Send SMS


Table 6-7

No. 1. 2.

Action / What happens? In the WinCC flexible user interface navigate to the Communication screen. In the SMS-Receiver field you enter your mobile phone number with country code (e.g. +49..) and confirm with Enter.

Note / Picture

3.

Then press the Send SMS button

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Observe at the modem (LED S and C go out), how after a short while the connection with the SINAUT MICRO SC Server is cancelled and the GPRS connection is disconnected after sending the SMS. 4. You receive an SMS with the current filling level of the Remote Station Inspection Shaft

05.05.2006

60/69

Performance Data of the Application

Micro Automation Set 21

Entry-ID 22537809

7
7.1

Performance Data of the Application


Estimating the communication costs

General information This chapter has two parts. The connection costs are considered separately for
Note

Remote Stations and for the Central Station. 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)

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

7.1.1

Connection costs of the Remote Station

Fixed costs
Table 7-1

No. 1.

Designation Basic charge of the SIM card

Note Does not always exist, e.g. a basic charge is usually not charged for prepaid SIM cards. Volume discount rate means that a certain free volume is available. (Regardless whether it is used or not.)

2.

Charge for volume discount rate

Note

(Prepaid cards, however, are not recommended due to high block rounding 10 and high tariffs.)

10

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.

05.05.2006

61/69

Performance Data of the Application

Micro Automation Set 21

Entry-ID 22537809

Variable costs
Table 7-2

No. 1.

Designation Connection costs

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

Example of the connection costs of the Remote Stations

Example: fixed costs


Table 7-3

No. 1. 2.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Designation Basic charge of the SIM card Charge for volume discount rate 4 units

Costs 0 units (for 0 Mbytes free volume)

Example: variable costs


Table 7-4

No. 1.

Designation Connection costs

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 amount: 280 bytes

05.05.2006

62/69

Performance Data of the Application

Micro Automation Set 21


Figure 7-1
Central Station

Entry-ID 22537809

Internet Service Provider Station number: 0

WinCC flexible SINAU T MICRO SC

I S p

INTERNET

Acknowledgement

Send data

Remote Station A Station number: 1

GPRS

Remote Station B Station number: 2

GPRS

2
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc
P

16 12.3%

11
P P

05.05.2006

63/69

Performance Data of the Application

Micro Automation Set 21

Entry-ID 22537809

Where does a data volume of 280 bytes result from?


Table 7-5 Remote Station A sends

Calculation

Number Bytes

Note

1.

Send Data: Netto data Header SINAUT MICRO SC IP-Header TCP-Header Send acknowledgement for Data: IP-Header TCP-Header Send Transfer Status: Clock synchronization IP-Header TCP-Header Acknowledgement for Transfer Status: IP-Header TCP-Header Total

50 15 20 32 20 32 7 20 32

Remote Station sends 50 Bytes netto data

2.

SINAUT MICRO SC then returns an acknowledgement. SINAUT MICRO SC additionaly sends a status monitoring in form of the clock synchronization every 15 minutes The Remote Station then returns an acknowledgement.

3.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

4.

20 32 280

5.

!
Attention

This example calculation does consider:


Repeated sending if the acknowledge on the TCP/IP level is missing from one package A cross communication between modems Sending data from the Central Station to the Remote Station Sending on demand Dialling into the GPRS network (2 kByte)

05.05.2006

64/69

Performance Data of the Application

Micro Automation Set 21

Entry-ID 22537809

What is the data volume that is sent per month if the send-interval is a quarter of an hour?
Table 6-6

No. 1. 2. 3.

Calculation Hours per month: 720 hours Send jobs per month: 2880 Sent bytes per month: 806,400 bytes

Note 1 month = 30 days; 1 day = 24 hours

1 send interval = 0.25 hours 280 bytes * 2880

What connection costs incur for a data volume of 288,000 bytes per month?
Table 6-7

No. 1.
Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Calculation Costs per byte: 0.000008 units per byte Total costs: 6.46 units

Note 0,08 Einheiten pro 10 KByte 0.000008 units per byte * 806,400 bytes

2.

Plus the fixed costs of 4 units (see Table 7-3) the total costs per month and Remote Station amount to 10.46 units.
Note

The tariffs can be extended with InclusiveVolumes. Tariffs are for example available for 7 units including 1 MB volume. The above calculated volume would be in the range of InclusiveVolume with fixed costs only.

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

05.05.2006

65/69

Performance Data of the Application

Micro Automation Set 21

Entry-ID 22537809

The following factors for the calculation are given: Number of Remote Stations: 100 Send intervals of the Remote Stations: every quarter of an hour Data amount: 806,400 bytes

What is the data volume received per month for the specified factors?
Table 6-8

No. 1.

Calculation Received data volume per 100 stations per month: 80,640,000 bytes

Note Number of Remote Stations: 100 Data volume per Remote Station per minute: 806,400 bytes

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

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

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

Connection quality Due to the fact that the above factors cannot be excluded, the modem was designed so that an unsuccessful send job is signaled at the send block. This gives the user of the user program the opportunity to react to an unsuccessful send job.

05.05.2006

66/69

Performance Data of the Application

Micro Automation Set 21

Entry-ID 22537809

Here in the user program, a non-volatile buffer was implemented in the Remote Station Inspection Shaft which secures the unsuccessfully transmitted data record from the above event. During an unsuccessful send job, lost message frames can be reacted to with the safety mechanisms implemented in the user program. This ensures that overall no data are lost.

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

05.05.2006

67/69

Technical Data

Micro Automation Set 21

Entry-ID 22537809

8
Table 8-1

Technical Data

LOGO!Power 24 V/1.3 A
Criterion Supply Voltage Output voltage Output current Dimensions (W x H x D) in mm Technical data 85 to 264 V AC DC 24 V (setting range DC 22.2 to 26.4 V) 1.3 A 54 x 90 x 55 Additional note

S7-200 CPU 224 XP


Table 8-2

Criterion Input voltage


Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Technical data 24 V DC 900 mA 280 mA 2x RS 485 interface 1x expansion bus for modules 14DI/10DO 2AI/

Additional note

Current consumption Output current Interfaces

For expansion modules

Inputs/outputs EPROM user data Dimensions (W x H x D) in mm

16 KByte 140 x 80 x 62

SINAUT MD720-3
Table 8-3

Criterion Connection Transfer rate of RS232 Quadband Output power Supply Voltage Current consumption Operating temperature

Technical data RS232 SUB D9 female connector 300 bit/s up to 57.600 bit/s 800, 900, 1800, 1900MHz 2W 800, 900MHz 1W 1800,1900MHz DC24V (min. 12V , max.30V) max. 260 mA 20C to +60C

Additional note

05.05.2006

68/69

Technical Data

Micro Automation Set 21

Entry-ID 22537809

Criterion Device design Dimensions (W x H x D) in mm

Technical data Top hat rail mounting 22.5mm x 99mm x 114mm

Additional note

WinCC flexible RT
Table 8-4

Criterion Operating system

Technical data MS Windows 2000 / XP Professional Depending on order, maximum of 2000 variables with external connection to the controller, internal values unlimited Depending on scale of configuration (communication), up to 8 connections possible with WinCC flexible Runtime 16

Additional note

Variables

Copyright Siemens AG 2006 All rights reserved Set21_DocTech_v1d0_en.doc

Number of connectable partners, max. Online languages, max.

Offline languages, max. 32

05.05.2006

69/69

Você também pode gostar