Você está na página 1de 43

Micro Application Examples

Wireless signaling and switching via SMS (with S7-200 and TC65 Terminal) Micro Automation Set 5

Table of Contents

Micro Automation Set 5

Beitrags-ID 21063345

Note
The Micro Automation Sets are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The Micro Automation Sets do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These Micro Automation Sets do not relieve you of the responsibility of safely and professionally using, installing, operating and servicing equipment. When using these Micro Automation Sets, you recognize that Siemens cannot be made liable for any damages/claims beyond the liability provisions. We reserve the right to make changes to these Micro Automation Sets at any time without prior notice. If there are any deviations between the recommendations provided in these Micro Automation Sets and other Siemens publications e.g. Catalogs the contents of the other documents have priority.

Warranty, Liability, and Support


Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

We accept no liability for information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Micro Automation Set shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract (wesentliche Vertragspflichten). However, claims arising from a breach of a condition which goes to the root of the contract shall be limited to the foreseeable damage which is intrinsic to the contract, unless caused by intent or gross negligence or based on mandatory liability for injury of life, body or health. The above provisions do not imply a change in the burden of proof to your detriment. Copyright 2008 Siemens A&D. It is not permissible to transfer or copy this Micro Automation Sets or excerpts of them without first having prior written authorization from Siemens A&D.

V2.5

29.01.2008

2/43

Table of Contents

Micro Automation Set 5

Beitrags-ID 21063345

Foreword
Micro Automation Sets are fully functional and tested automation configurations based on A&D standard products for simple, fast and inexpensive implementation of automation tasks for small-scale automation. Each of the available Micro Automatic Sets covers a frequently occurring subtask of a typical customer problem on the low-end performance level. The sets help you obtain answers with regard to required products and the question how they function when combined. However, depending on the system requirements, a variety of other components (e.g. other CPUs, power supplies, etc.) can be used to implement the functionality on which this set is based. Please refer to the respective SIEMENS A&D catalogs for these components. The Micro Automation Sets are also available at the following link: http://www.siemens.de/microset

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

V2.5

29.01.2008

3/43

Table of Contents

Micro Automation Set 5

Beitrags-ID 21063345

Table of Contents
Table of Contents..........................................................................................................4 1 2 2.1 2.2 2.3 3 4 4.1 4.2 4.3 5 5.1 5.2 5.3 5.3.1 5.3.2 5.4 5.4.1 5.4.2 5.4.3 5.5 5.5.1 5.5.2 6 6.1 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.3 6.4 6.4.1 6.4.2 7 Fields of Application and Benefits .................................................................. 5 Design ................................................................................................................ 8 Layout Diagram Pump station.......................................................................... 9 Layout Diagram Visualization station ............................................................. 10 Layout Diagram Teleservice station............................................................... 10 Hardware and Software Components ........................................................... 11 Function Principle........................................................................................... 14 Generating process values ............................................................................... 14 Requesting maintenance .................................................................................. 15 Requesting a process value.............................................................................. 16 Configuring the Startup Software.................................................................. 17 Preliminary remark ............................................................................................ 17 Downloading the startup code........................................................................... 17 Configuring components, pump station............................................................. 18 Installing and wiring the hardware..................................................................... 18 Configuring S7-200 CPU and downloading the user program .......................... 19 Configuring components, visualization station .................................................. 20 Installing and wiring the hardware..................................................................... 20 Configuring S7-200 CPU and downloading the user program .......................... 22 Configure WinCC flexible station and start the software................................... 23 Configuring components, teleservice station .................................................... 24 Configuring S7-200 CPU and downloading the user program .......................... 24 Connect components and configure modem for PC ......................................... 25 Live Demo ........................................................................................................ 28 Overview of the functions.................................................................................. 28 Live-Demo of the pump station ......................................................................... 29 "Initializing" mode.............................................................................................. 29 Manual mode .................................................................................................. 30 "Broadcast" mode ............................................................................................. 33 "Request" mode: ............................................................................................... 34 Live demo of visualization station ..................................................................... 36 Live demo of teleservice station........................................................................ 40 "Initializing" and "Manual" mode ....................................................................... 40 "Teleservice" mode ........................................................................................... 40 Technical data ................................................................................................. 42

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

V2.5

29.01.2008

4/43

Fields of Application and Benefits

Micro Automation Set 5

Beitrags-ID 21063345

Fields of Application and Benefits


The freshwater supply of a community is pumped into a reservoir on ground level using a groundwater pump facility. A controller detects the water level via a sensor and controls a pump. A temperature sensor monitors the current pump temperature.
Figure 1-1

Automation Task

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Measures for efficient maintenance should be taken for optimizing plant availability and efficiency. Alarm messages, such as overheating or due pump maintenance, should be sent to the service personnel as an SMS message via a GSM modem.
Figure 1-2

Response Request

Selected process values such as the water level in the reservoir can be requested by the staff. Remote maintenance of the controller should be possible. A teleservice functionality must also exist.

V2.5

29.01.2008

5/43

Fields of Application and Benefits

Micro Automation Set 5

Beitrags-ID 21063345

Automation solution Set 5 For wireless connection of the pump station to a GSM network, the GSM modem TC65 Terminal is connected with the serial interface of the S7-200 CPU 221. Fault and operating messages are transmitted to a mobile phone as SMS. Process data can be requested by the personnel via SMS. The information is also sent via a short message. Sending the response via telefax or e-mail is possible. After the telephone connection with TC65 Terminal has been established (analog or GSM), it is possible to poll the status of variables and update the user program with STEP 7-Micro/WIN.
Figure 1-3

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

The focus in this Micro Automation Set 5 is placed on sending and receiving of short messages. All relevant process values such as filling level or operating hours of the pump are simulated via the user program.
Note

More information on measuring filling levels is available in Micro Automation Set 3 under the entry number 21689394. The blocks described here were tested with the GSM modem: TC65 Terminal Revision 02.000 MD720-3 HW version 3.4, FW version 1.7.4 TC35 Terminal Revision 2.00 TC35i Revision 3.01

Note

V2.5

29.01.2008

6/43

Fields of Application and Benefits

Micro Automation Set 5

Beitrags-ID 21063345

Application Areas Remote maintenance, remote diagnostics, remote measurement and remote control of mobile, remote automatic machines or plant components Distributed tasks in gas, oil and power supply Realizing efficient service concepts Automatic ordering of material via SMS messages, e-mail or telefax Automatic notification of service personnel via SMS

Benefits
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

SIMATIC S7-200 sends wireless fault and operating messages via email, telefax or SMS massage using the GSM modem TC65 Terminal Maintenance and service personnel is informed of the plant status via process values integrated into the message Received SMS messages can be evaluated by the SIMATIC S7-200, so messages can be acknowledged and process sequences be influenced remotely The connection of the controller to the GSM network can also be used for teleservice purposes. This enables monitoring the current plant status as well as accessing the control program. The TC65 modem can be used in nearly all GSM networks worldwide world thanks to the quad-band technology. By using standard Micro Automation components, automation solutions offer flexibility to grow with new requirements. It is possible to connect the S7-200 controller with PROFIBUS and IE communication networks by means of an expansion module. This enables integrating fault and operating messages of already existing automation plants.

V2.5

29.01.2008

7/43

Design

Micro Automation Set 5

Beitrags-ID 21063345

Design
Micro Automation Set 5 consists of a pump station which covers all the requirements described in chapter 1. Apart from this pump station there are two expansions with additional functions.
Figure 2-1

S7-221 DC

TC65 Terminal

s s

s, control , request value acknowledge ss values alarms, proce

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

s s
Visualization WinCC flexible
s

Teleservice

s s
s

V2.5

29.01.2008

Teleservice staiton

TC65 Terminal

Standard PC

Visualization station

S7-224 XP DC

TC65 Terminal

Standard PC

Pump station

8/43

Design

Micro Automation Set 5

Beitrags-ID 21063345

2.1

Layout Diagram Pump station


Figure 2-2
line protection switch
L1 N DC24V+ DC24V-

Pin 1

Signal name POWER POWER EMERGOFF IGT_IN GND GND

Use Power supply Power supply Switch off Switch on Ground Ground

SIM card

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

2 3 4 5 6

male 6-pin Western connector

antenna

The basic version of Micro Automation Set 5 consists of a S7-200 CPU 221 DC (2) and a GSM Modem TC65 Terminal (3). Both components are connected via a PC/PPI cable. The 24V power supply of the devices is provided by a LOGO! Power 1.3A (1).

V2.5

29.01.2008

9/43

Design

Micro Automation Set 5

Beitrags-ID 21063345

2.2

Layout Diagram Visualization station


Figure 2-3
line protection switch
L1 N DC24V+ DC24V-

PC

Apart from the basic version devices, the Micro Automation Set 5, with expansions for visualization, consists also of a S7-200 CPU 224XP (2) and a GSM Modem TC65 Terminal (3).
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Both components are connected via a PC/PPI cable at port 0 of the S7-200 CPU 224XP. A PC is connected to port 1 of the S7-200 CPU 224XP via a PC/PPI cable. The 24V power supply of the devices is provided by a LOGO! Power 1.3A (1).

2.3

Layout Diagram Teleservice station


Figure 2-4

network adapter

PC

Apart from the basic version devices, the Micro Automation Set 5, with expansions for visualization, consists also of a further GSM Modem TC65 Terminal (2). The serial interface of the GSM Modem TC65 Terminal is connected with a PC via a modem cable. The 24V DC power supply for the devices is provided by a SIPLUS plug-in power pack 1.25A (1).

V2.5

29.01.2008

10/43

Hardware and Software Components

Micro Automation Set 5

Beitrags-ID 21063345

Hardware and Software Components

Pump stations Products


Table 3-1

Component

No.

MLFB / Order number

Note

LOGO! Power 24V 1.3A SIMATIC S7-200 CPU 221 GSM kit TC65 Terminal

1 1 1

6EP1331-1SH02 6ES7211-0AA230XB0 6AG1011-1CC000AA0 DC

Accessories
Table 3-3

Component
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

No.

MLFB / Order number

Note

Line protection switch Simulator module SIM274 PC/PPI cable Top hat rail Configuration software/tools
Table 3-5

1 1 1 1

5SX2116-6 6ES7274-1XF000XA0 6ES7901-3CB300XA0 6ES5710-8MA11

1 pole B, 16A

COM 19.02 in

Component

No.

MLFB / Order number

Note

STEP 7 Micro/WIN

6ES7810-2CC030YX0

Visualization station Products


Table 3-4

Component

No.

MLFB / Order number

Note

LOGO! Power 24V 1.3A SIMATIC S7-200 CPU 224XP GSM kit TC65 Terminal

1 1 1

6EP1331-1SH02 6ES7214-2AD230XB0 6AG1011-1CC000AA0 DC

V2.5

29.01.2008

11/43

Hardware and Software Components

Micro Automation Set 5

Beitrags-ID 21063345

Accessories
Table 3-5

Component

No.

MLFB / Order number

Note

Line protection switch PC/PPI cable Top hat rail Configuration software/tools
Table 3-6

1 2 1

5SX2116-6 6ES7901-3CB300XA0 6ES5710-8MA11

1 pole B, 16A COM 19.02 in

Component

No.

MLFB / Order number

Note

WinCC flexible RT

6AV6613-1BA011CA0

128 Tags, see Note

Note
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

The WinCC flexible version specified here enables you to start and operate the Runtime file (*.fwx). 128 tags can be displayed here. Should it become necessary to also edit the project file (*.hmi), other WinCC flexible licenses are required. https://mall.automation.siemens.com/

Teleservice station Products


Table 3-7

Component

No.

MLFB / Order number

Note

SIPLUS plug-in power pack GSM 24V/1.25A GSM kit TC65 Terminal

1 1

6AG1011-1DC0-1AA0 6AG1011-1CC000AA0

Accessories
Table 3-8

Component

No.

MLFB / Order number

Note

Modem cable

Specialist dealer

1:1

V2.5

29.01.2008

12/43

Hardware and Software Components

Micro Automation Set 5

Beitrags-ID 21063345

Note

All CPU types mentioned here can be replaced by a SIPLUS version. SIPLUS devices are mainly characterized by an extended ambient temperature (-25... +70C). Further product information as well as order numbers can be found at www.siemens.com/siplus

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

V2.5

29.01.2008

13/43

Function Principle

Micro Automation Set 5

Beitrags-ID 21063345

4
4.1

Function Principle
Generating process values
In Micro Automation Set 5 all process values which are part of the automation task are simulated.

Simulating the filling level


Table 4-1

No.

Function

Note

The water reservoir in Micro Automation Set 5 has a volume of 100 hectoliters. If the pump is active, the filling level in the water reservoir is reduced by two units every second. If the pump is inactive, the filling level in the water reservoir is increased by four units every second.

1 hectoliter corresponds to 1 unit

Pump
1sec.

T1 tank
-2 -2

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Pump
1sec.

T1 tank
+4 +4

Simulating the pump status


Table 4-2

No.

Function

Note
tank Pump
78 84 90 33 31 29

As soon as the filling level of the water reservoir has fallen below 30 units, the pump is started. If the water level has risen to 90 units due to pumping, the pump is switched of.

tank Pump

Calculating the operating hours of the pump


Table 4-3

No.

Function

Note

The operating hours counter is increased by one each second the pump is active.

1 hour corresponds to 1 second


Pump
1s. 1s. 1s.

T1
0 0 0 9 Counter

V2.5

29.01.2008

14/43

Function Principle

Micro Automation Set 5

Beitrags-ID 21063345

4.2

Requesting maintenance
If the plant is due for maintenance, an SMS broadcast is sent from the pump station to three persons.
Table 4-4

No.

Function

Note

If the operation hours reach a certain number, a start command for an SMS broadcast is set. In the Live Demo Chapter, the value for exceeding the threshold is set manually. Three send jobs with different phone numbers are successively sent to the service personnel. Acknowledgement by the personnel is not necessary.

s s s

3
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

For each send job the start input (1) of the SMS_send block is set once. Prior to that the receiver address (2) and the message text (3) have been transferred.

1 2 3

The send job was successfully processed, when the SMS_send block sets the SMS_send_Done (1) output to 1. Then a new send job can be started by means of a new positive edge at the SMS_send_Start input (2).

2 1

V2.5

29.01.2008

15/43

Function Principle

Micro Automation Set 5

Beitrags-ID 21063345

4.3

Requesting a process value


Table 4-5

No.

Function

Note

1 2

The service personnel can request the current filling level of the freshwater tank. The service representative sends a request via SMS specifying the desired measured value. The service representative receives the desired measured value via SMS to his own mobile phone number. To recognize the request at the station, the SMS_receive block is called cyclically every 5 seconds (1). If the SMS_receive_Done signal bit (2) reports a high signal, an SMS has been received.
Request (filling level)

s s s

s s s

Filling level own number

4
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

1 5sec. 2

The received SMS text is evaluated regarding the desired information. Filling level: Level For the filling level of the pump station, the term Level is used as a keyword. The filling level is then sent to the service representative by starting the send procedure (1). The mobile phone number of the previous SMS is transferred as the receiver address (2). The current filling level is entered as a message text (3).

.... Level .

s s s

42

1 2 3

V2.5

29.01.2008

16/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

5
5.1

Configuring the Startup Software


Preliminary remark
For the startup we offer you software examples with test code and test parameters as download. The software examples support you during the first steps and tests with your Micro Automation Sets. They enable quick testing of the hardware and software interfaces between the products described in the Micro Automation Sets. The software examples are always assigned to the components used in the set and show their basic interaction. However, they are not real applications in the sense of technological problem solving with definable properties.

5.2

Downloading the startup code


The software examples are available on the HTML page from which you downloaded this document.
Table 5-1

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

No.

File name

Content

1 2

set5_s7-200-library.mwl Set5_S7-200_VxDy_en.mwp

Library for sending and receiving SMS STEP 7-Micro/WIN project file for the pump station STEP 7-Micro/WIN project file for the visualization station WinCC flexible Runtime for the visualization station. WinCC flexible project file for the visualization station. STEP 7-Micro/WIN project file for the teleservice station

Set5_S7-200_Visu_VxDy_en.mwp

4 5 6

Set5_WinCCflex_Visu_VxDy_en.fwx Set5_WinCCflex_Visu_VxDy_en.hmi Set5_S7-200_Tele_VxDy_en.mwp

Note

All STEP 7 Micro/WIN projects use the set5_s7-200-libary.mwl

V2.5

29.01.2008

17/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

5.3
Note

Configuring components, pump station


It is assumed here that the necessary software has been installed on your computer and that you are familiar with handling the software.

5.3.1
Table 5-2

Installing and wiring the hardware

No. 1

Instructions

Note

Mount the LOGO! Power, S7-200 CPU and the Modem TC65 terminal onto a top-hat rail. Open the TC65 Terminal and insert the SIM card of your mobile service provider.
SIM card

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

TC65 Terminal, side view

Attach the simulator for the digital inputs at the S7-200 CPU.

Connect the S7-200 CPU and the TC65 modem to the DC 24V supply voltage of LOGO!. Power.

See chapter 2.1 Layout diagram Pump station. When connection the TC65 Terminal to the LOGO! Power, pay attention to the correct polarity!

5 6

Connect all ground connections to earth. Connect the modem antennae with the modem.
TC65 Terminal, side view

Switch on the power supply of all devices.

V2.5

29.01.2008

18/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

5.3.2
Table 5-3

Configuring S7-200 CPU and downloading the user program

No. 1

Instructions

Note

Connect a free COM port of the PC to port 0 of the S7-200 controller using the USB-PC/PPI cable. Use the following switch positions: 12345678 00001000 Make the following settings in the PG/PC Interface under Start/Settings/Control Panel. Access point of the application: Micro/WIN PC/PPI cable(PPI) Transmission rate: 19.2 Kbit/s Local connection: COM Advanced PPI deactivated Multi Master network deactivated Die Datei aus The software document. Nr. 2 mit STEP 7-Micro/WIN ffnen. Use STEP 7 Micro/WIN to navigate to the MAS 5 block.

configuration PC PC/PPI cable

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

3 4

5 6

Enter the PIN of your used SIM card. Enter the SMS service center of your used GSM provider. Enter the desired SMS text for the operating modes "manual", "broadcast", and "request" here. Note: The variables are already preset and adjusted to the following Live Demo.

V2.5

29.01.2008

19/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

No.

Instructions

Note

Enter your mobile phone number. Note: Manual mode: Engineer_1 "Broadcast" mode: Engineer_1, Engineer_2, Engineer_3 "Request" mode: Enter the desired time delays for operating modes "broadcast" and "request". Note: The variables are already preset and adjusted to the following Live Demo. Transfer the project to the S7-200 controller via File/Load to CPU. Set the S7-200 controller to the RUN mode.

10

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

11

12

Remove the connector from the COM port of your PC and connect the TC65 modem with the S7-200 controller at port 0 via the PC/PPI cable. Change the switch positions of the cable. 1 2 3 4 5 6 7 8 1 1 1 0 0 1 1 0

s s

PC/PPI cable

5.4
5.4.1
Table 5-4

Configuring components, visualization station


Installing and wiring the hardware

No. 1

Instructions

Note

Mount the LOGO! Power, S7-200 CPU and the Modem TC65 terminal onto a top-hat rail. Open the TC65 Terminal and insert the SIM card of your mobile service provider.
SIM card

TC65 Terminal, side view

V2.5

29.01.2008

20/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

No. 3

Instructions

Note

Connect port 0 of the S7-224XP with the TC65 Terminal. Connect your configuration station to port 1. A PC/PPI cable is used for both connections. Switch positions CPU TC65T 1 2 3 4 5 6 7 8 1 1 1 0 0 1 1 0 Switch positions S7-CPU / PG/PC 1 2 3 4 5 6 7 8 0 0 0 0 1 0 0 0
PC/PPI cable

PC/PPI cable

TC65 Terminal, side view

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Configuration PC

Connect the S7-200 CPU and the TC65 modem to the DC 24V supply voltage of LOGO!. Power. Connect all ground connections to earth. Connect the modem antenna with the modem.

See chapter 2.2 When connecting the TC65 Terminal to the LOGO! Power, pay attention to the correct polarity!

5 6

TC65 Terminal, side view

Switch on the power supply of all devices.

V2.5

29.01.2008

21/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

5.4.2
Table 5-5

Configuring S7-200 CPU and downloading the user program

No. 1

Instructions

Note

Set the following settings in the PG/PC Interface under Start/Settings/Control Panel. Access point of the application: Micro/WIN PC/PPI cable(PPI) Transmission rate: 19.2 Kbit/s Local connection: COM Advanced PPI deactivated Multi Master network deactivated Open No. 3 using STEP 7 Micro/WIN. Use STEP 7 Micro/WIN to navigate to the MAS 5Option1 block.

2 3
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

4 5 6

Enter the PIN of your used SIM card. Enter the SMS service center of your used GSM provider. Transfer the project to the S7-200 controller via File/Load to CPU. Set the S7-200 controller to the RUN mode.

Provide the switches of the PC/PPI cable for connecting port 1 and your PC/PG as follows. Switch positions S7-CPU / PG/PC 1 2 3 4 5 6 7 8 0 0 0 0 0 0 0 0

V2.5

29.01.2008

22/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

Note

Sending process values from the pump station to the visualization station during the Live Demo requires changing the receiver address in the user program of the pump station. For this you need to change the phone numbers from table 5-3 No. 8. The new receiver number is the mobile phone number of the SIM card in the visualization station.
Pump station
s s

SMS

Visualization station
SMS
s s

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

5.4.3
Table 5-6

Configure WinCC flexible station and start the software

No.

Instructions

Note

Set the following settings in the PG/PC Interface under Start/Settings/Control Panel. Access point of the application: S7ONLINE ( PC/PPI cable (PPI) Transmission rate: 19.2 Kbit/s Local connection: COM Advanced PPI deactivated Multi Master network deactivated Open No. 4 with WinCC flexible.

V2.5

29.01.2008

23/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

5.5
5.5.1
Table 5-7

Configuring components, teleservice station


Configuring S7-200 CPU and downloading the user program

No.

Instructions

Note

Connect a free COM port of the PC to port 0 of the S7-200 controller using the USB-PC/PPI cable. Use the following switch positions: 12345678 00001000 Make the following settings in the PG/PC Interface under Start/Settings/Control Panel. Access point of the application: Micro/WIN PC/PPI cable(PPI) Transmission rate: 19.2 Kbit/s Local connection: COM Advanced PPI deactivated Multi Master network deactivated Open No. 6 using STEP 7 Micro/WIN. Use STEP 7 Micro/WIN to navigate to the MAS5Option2 data block.

ConfigurationPC PC/PPI cable

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

3 4

5 6 7 8
9

Enter the PIN of your used SIM card. Enter the SMS service center of your used GSM provider. Enter your mobile phone number. Here you enter your SMS text. Transfer the project to the S7-200 controller via File/Load to CPU.

V2.5

29.01.2008

24/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

No. 10

Instructions

Note

Set the S7-200 controller to the RUN mode.

11

Remove the connector from the COM port of your PC and connect the TC65 modem with the S7-200 controller at port 0 via the PC/PPI cable. Change the switch positions of the cable: 1 2 3 4 5 6 7 8 1 1 1 0 0 1 1 0

s s

PC/PPI cable

5.5.2
Table 5-8

Connect components and configure modem for PC

No.
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Instructions

Note

Connect the GSM modem TC65 Terminal to a free COM port of your PC using the modem cable. Use the network adapter to provide the power supply for the GSM modem. Install a Windows standard driver for the GSM Modem TC65 Terminal. Open the Phone and Modem Options via Start / Control Panel) Select the Modem tab (1) and press the Add... button (2).

See chapter 3.2

Select the Dont detect my modem; I will select it from a list option and acknowledge with Next.

V2.5

29.01.2008

25/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

No.

Instructions

Note

Select Standard Modem Types from the left selection pane (1). Select Standard 9600 bps Modem from the right pane (2). Click Next to continue.

1 2

Select the used COM port and terminate the Add Hardware Wizard with Next.

8
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Open STEP 7 Micro/WIN via Start / Programs / SIMATIC. Open the Set PG/PC Interface menu and make the following settings. Access point of the application: Micro/WIN ( PC/PPI cable(PPI) Local connection: COM x Activate modem connection Transmission rate 9.6 kbps Acknowledge each with OK.

10

Open the Communication menu and double-click the yellow teleservice icon.

V2.5

29.01.2008

26/43

Configuring the Startup Software

Micro Automation Set 5

Beitrags-ID 21063345

No.

Instructions

Note

11

Call the Modem Connection Settings by clicking Properties. Create a new modem connection via the Add button.

12

Specify a connection name (1). Select your previously created modem (2). Select option (3) Use this local modem as a Sell phone modem and confirm your settings with Next.

1 2 3

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

13

Enter the mobile phone number of the pump station (1). The gray field (2) displays the mobile phone number to be dialed as it is chosen by STEP 7Micro/WIN. Please ensure that only one leading zero is exists. Click on Next to confirm the settings. Enter the SIM PIN of the local station and confirm the following windows with Next. Terminate the wizard for creating a new modem connection. Only one teleservice connection can be established. Follow the steps in chapter 6.4 of the Live Demo for testing the teleservice functionality.

14

15

V2.5

29.01.2008

27/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

Live Demo
The functions and features of the Micro Automation Set 5 are displayed in form of an example application for better understanding. If the components have been correctly configured as described in chapter 5, the program code can be tested.
Figure 6-1

with Simulator

with WinCC flexible

with Micro/WIN

Pump station

Visualization station

Teleservice station

Micro Automation Set 5

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

The basic version "pump station" is activated via the simulator module. Here the basic library functions can be tested in combination with the example program of a pump station. The "visualization station" is operated via a WinCC flexible screen. The PCbased visualization enables the display of incoming messages of a connected control with GSM modem. The functionality of the "teleservice station" is displayed using STEP 7Micro/WIN. This version shows the remote access to the control. The functions Send SMS and Receive SMS are not displayed here.

6.1

Overview of the functions


The following list provides an overview of the displayed functions of the individual versions.
Table 6-1
No. 1 2 3 4 5 6 7 8 Initialize modem Send SMS Receive SMS Display / evaluate received message in control Broadcast Request process value Display/evaluate SMS on PC TeleService Function Pump station Yes Yes Yes Yes Yes Yes No No Visualization station Yes No Yes No No No Yes No Teleservice station Yes Yes No No No No No Yes

V2.5

29.01.2008

28/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

6.2
6.2.1

Live-Demo of the pump station


"Initializing" mode

Select "Initializing" mode


Table 6-2

No.

Instructions

Note

Briefly press the I0.5 switch to switch to the "initializing" mode.

Perform initialization
Table 6-3

No.

Instructions

Note

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Briefly press the I0.0 switch to start the initialization action in the "initializing" mode.
12

The LED of outputs Q0.2 and Q0.3 blink alternately during the initialization.

1s

13

If the initialization was successful, the LED of outputs Q0.2 and Q0.3 light up permanently until a new mode is chosen. If the initialization was not successful, the LED of outputs Q0.2 and Q0.3 blink simultaneously until a new mode is chosen.

14

1s

V2.5

29.01.2008

29/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

6.2.2

Manual mode

Select Manual mode


Table 6-4

No.

Instructions

Note

Briefly press the I0.2 switch to switch to the "manual" mode.

Perform the send procedure


Table 6-5

No.

Instructions

Note

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Briefly press the I0.0 switch to start the Send SMS action in the "manual" mode. SMS text See table 5-3 No. 7 Receiver: See table 5-3 No. 8 The LED of outputs Q0.2 and Q0.3 blink alternately while an action is carried out in "manual" mode.
1s

At the beginning of the Send SMS action, the Q0.0 output is reset. If the process terminates successfully, the LED of output Q0.0 lights up permanently. If the process does not terminate successfully, the LED of output Q0.0 blinks. After the process is terminated (successfully or not), the LED of outputs Q0.2 and Q0.3 are reset. The state of the LED of output Q0.0 remains the same.

1s

V2.5

29.01.2008

30/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

Performing the receive procedure


Table 6-6

No.

Instructions

Note

Use your mobile phone to write a brief message to the call number of the SIM card in your TC65 modem. The text content is not relevant.

Hello
s s s

Briefly press the I0.1 switch to start the receive procedure.

3
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

The LED of outputs Q0.2 and Q0.3 blink alternately while an action is carried out in "manual" mode.

1s

At the beginning of the Receive SMS action, the Q0.1 exit is reset. If the process terminates successfully, the LED of output Q0.1 lights up permanently. If the process does not terminate successfully, the LED of output Q0.1 blinks. After the process is terminated (successfully or not), the LED of outputs Q0.2 and Q0.3 are reset. The state of the LED of output Q0.1 remains the same. To read the received SMS using STEP 7 Micro/WIN, the communication mode of port 0 must be switched over. To get to PPI mode, set the RUN/TERM/STOP switch into the "STOP" position. Change the switch of the PC/PPI cable.

1s

RUN TERMN STOP

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

V2.5

29.01.2008

31/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

No.

Instructions

Note

Remove the plug of the PC/PPI cable from the serial interface of the TC65 modem and connect the PC with port 0 of the S7-200 controller via this PC/PPI cable. Open the file using STEP 7 Micro/WIN, see table 5-1 No.2. Activate the table status.

configuration PC PC/PPI cable

9 10

11

Change to the MAS5-man status table.

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

message

The VB1226 variable contains the received text.

The received string contains all control characters (e.g., $N for line feed) and, apart from the actual user data, also information such as index, send number, data and time. 1 2 3 4 5 6 7 8 1 1 1 0 0 1 1 0

12 13

Close the STEP 7 Micro/WIN project. Connect the PC/PPI cable back to the TC65 modem: Change the switch positions. Return to the Freeport communication mode of Port0 by setting the RUN/TERM/STOP switch into the "RUN" position.

14

RUN TERMN STOP

15

The initialization process has to be repeated. Chapter 6.2

V2.5

29.01.2008

32/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

6.2.3

"Broadcast" mode

Select "Broadcast" mode


Table 6-7

No.

Instructions

Note

Briefly press the I0.3 switch to switch to the "Broadcast" mode.

Execute broadcast
Table 6-8

No.

Instructions

Note

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Briefly press the I0.0 switch to start the Send SMS action to multiple recipients in the "broadcast" mode. SMS text See table 5-3 No. 7 Receiver: See table 5-3 No. 8 The LEDs for outputs Q0.2 and Q0.3 blink alternately while an action is carried out in "broadcast" mode.
1s

A parameterizable delay of 5 seconds is set between two send processes. See table 5-3 No. 9 Three SMS are sent during the broadcast . The following behavior can be observed three times. At the beginning of the Send SMS action, the Q0.0 output is reset. If the process terminates successfully, the LED of output Q0.0 lights up permanently. If the process does not terminate successfully, the LED of output Q0.0 blinks.

1s

V2.5

29.01.2008

33/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

No.

Instructions

Note

After the process is terminated (successfully or not), the LED of output Q0.2 and Q0.3 are reset. The state of the LED of output Q0.0 remains the same. "Request" mode:

6.2.4

Select "Request" mode:


Table 6-9

No.

Instructions

Note

Briefly press the I0.3 switch to switch to the "Request" mode.

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Execute request
Table 6-10

No.

Instructions

Note

Briefly press the I0.0 switch to start the action to receive a request and send the current filling level in the "request" mode. SMS text See table 5-3 No. 7 Receiver: Receiver = Sender The LED for outputs Q0.2 and Q0.3 blink alternately while an action is carried out in "request" mode.
1s

In "request" mode the GSM modem is cyclically checked for a new SMS. The parameterizable delay is preset to 5 seconds. See Configuring S7-200 CPU and downloading the user program

V2.5

29.01.2008

34/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

No.

Instructions

Note

At the beginning of the Receive SMS action, the Q0.1 exit is reset. If the process terminates successfully, the LED on exit Q0.1 lights up permanently. If the process does not terminate successfully, the LED on exit Q0.1 blinks. To receive the current filling level of the pump station a request is sent to the controller. Use your mobile phone to write a brief message to the call number of the SIM card in your TC65 modem.

1s

Level.. . .
s s s

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

The short message must include the following key content. Measured value: Level After the short message has been evaluated using the control, the target call number is cut our of the just received SMS. Afterwards, an SMS with the current filling level of the pump station is sent. At the beginning of the Send SMS action, the Q0.0 output is reset. If the process terminates successfully, the LED of output Q0.0 lights up permanently. If the process does not terminate successfully, the LED of output Q0.0 blinks. The received text now contains the current filling level of the simulated tank.

Note: Please ensure correct upper and lower case.


Level

mobile phone number

1s

S7-200 pump station The actual fill level(hecto litre) is 45

V2.5

29.01.2008

35/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

No.

Instructions

Note

10

After the process is terminated the LEDs of exits Q0.2 and Q0.3 are reset. The state of the LEDs of exits Q0.0 and Q0.1 remain the same. The process is considered to be terminated when the text "level" has been successfully extracted from an SMS and the respective answer has been sent.

6.3

Live demo of visualization station

WinCC flexible user interface


Figure 6-2

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

1 2 3 6

4 5 7 8

V2.5

29.01.2008

36/43

Live Demo

Micro Automation Set 5


Table 6-3

Beitrags-ID 21063345

No.

Function

1 2 3 4 5 6 7 8

Starting the initialization of the GSM modem. (Start signal for the SMS_INIT block) Starting the receive procedure. If an SMS exists at the GSM modem, it is fetched. (Start signal for the SMS_RECEIVE block) Deletes the last received message from the receive buffer of the S7-200 controller. If another SMS exists in the buffer, it is now displayed. Status information of the initialization process. (busy, done, aborted, status) Status information of the receive process (busy, done, aborted, status) Output of the last received SMS stored in the buffer of the S7-200 controller. Date and time of the received SMS. Number of received SMS in the buffer of the S7-200.

Receiving and visualizing an SMS


Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

Table 6-4

No.

Instructions

Note

Perform the initialization of the GSM modem by clicking the Start Init button. The MS_Init block activates the busy bit (1). After successful processing, the done bit (2) is set. You can see the current step in the Status/Error word. After completing the initialization, this output field (3) contains the number 15.
2

1 2

A description of the Status/Error word is available in the library description.

Start sending an SMS to this visualization station from the pump station.

The operation of the pump station is described in chapter 6.2. Alternatively, you can, of course, also send a message to the visualization station from a cell phone.

V2.5

29.01.2008

37/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

No. 3

Instructions

Note
1 2 3
7

Wait until the receive cycle of 60 seconds in the CPU of the visualization station has finished, or press the Start Receive button. The "SMS_Receive" block activates the busy bit (1). After successful processing, the done bit (2) is set. You can see the current step in the Status/Error word. After completing the receiving process, this output field (3) contains the number 7. Repeat step 2 for to 3 any number of times. Please ensure, that the date and time stamp (1) is updated for each SMS and that the buffer (2) is increased by one respectively.

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

The current SMS text is displayed in the output field (1).

V2.5

29.01.2008

38/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

Acknowledge SMS and delete in the buffer


Table 6-5

No.

Instructions

Note

To acknowledge an SMS and delete it from the buffer of the S7-200 controller, press the Acknowledge button (1). 2 Pressing the button deletes the last entry from the buffer.
alt

1
S7-200 Puffer SMS 1 SMS 2 SMS 3 SMS 4 SMS 5 SMS 6
SMS 7

neu

New SMS

Delete SMS -

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

The output field (1) in the WinCC flexible user interface now shows the counter status of the buffer reduced by one.

V2.5

29.01.2008

39/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

6.4
6.4.1

Live demo of teleservice station


"Initializing" and "Manual" mode Execute the initialization as decribed in chapter 6.2. Test the functionality for sending SMS before and after the teleservice connection. Proceed as described in chapter 6.2.2. The functionality Send SMS is not available here.

6.4.2
Table 6-11

"Teleservice" mode

No.

Instructions

Note

Open a new STEP 7 Micro/WIN project via Start / Programs / SIMATIC.


6
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

The local teleservice station must have been configured as described in chapter 5.5.2.

Open the Communication window

Press the Connect button (1)

1
8

A teleservice connection is now initialized automatically.

Attempting to send PIN... PIN being sent... The PIN number was invalid, the modem was already authorized, or an unknown error occurred. Placing call to T015118984709 Call placed Dialing... Proceeding... Connected Waiting for incoming messages...

The LED of outputs Q0.2 and Q0.3 blink alternately while at the remote peer "pump station" a call request is recognized, accepted, held, and terminated.

1s

V2.5

29.01.2008

40/43

Live Demo

Micro Automation Set 5

Beitrags-ID 21063345

No. 10

Instructions

Note

Check the functioning teleservice connection. Close the Communications window with OK. Open the PLC Information window via PLC / Information. After the connection has been initialized successfully, the type and the firmware of your controller is displayed. The teleservice connection is cancelled automatically in the remote station Pump Station after 180 seconds. After the process is terminated (successfully or not), the LED of outputs Q0.2 and Q0.3 are reset. The state of the LED of output Q0.0 remains the same.

11

12

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

V2.5

29.01.2008

41/43

Technical data

Micro Automation Set 5

Beitrags-ID 21063345

7
Table 7-1

Technical data

LOGO! Power 24V 1.3


Criterion Technical data Additional note

Supply voltage Output voltage Output current Dimensions (W x H x D) mm SIMATIC S7-200 CPU 221
Table 7-2

85 to 264 V AC DC 24 V (setting range DC 22.2 to 26.4 V) 1.3A 54 x 80 x 55

Criterion

Technical data

Additional note

Supply voltage
Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

DC 20.4 V bis 28.8 V 450 mA 6DE/4DA 4 Kbytes 90 x 80 x 62

Current consumption Inputs/outputs User data Dimensions (W x H x D) mm SIMATIC S7-200 CPU 224XP
Table 7-3

Criterion

Technical data

Additional note

Supply voltage Current consumption Inputs/outputs EPROM user data Dimensions (W x H x D) mm TC65 Terminal
Table 7-4

DC 20.4 V bis 28.8 V 900 mA 14DE/10DA + 2AE 16 Kbytes 140 x 80 x 62

Criterion

Technical data

Additional note

Supply voltage Current consumption

DC 24 V (8V to 30V) 600 mA

V2.5

29.01.2008

42/43

Technical data

Micro Automation Set 5

Beitrags-ID 21063345

Criterion

Technical data

Additional note

Output power

Kl.4 (2 W) for EGSM 850/900 Kl. 1 (1 W) for GSM 1800/1900 Quadband

Frequency range Dimensions (W x H x D) mm

GSM 850 / 900 / 1800 / 1900 MHz 90 x 130 x 38

Copyright Siemens AG 2008 All rights reserved Set5_DocTech_V2D5_en.doc

V2.5

29.01.2008

43/43

Você também pode gostar