Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 21063345, Entry date: 07/09/2013

Micro Automation: Wireless Signalling and Switching per SMS (MAS 5)

  • Entry
  • Associated product(s)

The SIMATIC S7-200 components used in this application example are currently phased out.
This application can be realized even more effective and easier with the new SIMATIC S7-1200.
The respective application example with SIMATIC S7-1200 is available under entry-ID: 58638283, 40616248 
Furthermore, many useful applications with SIMATIC S7-1200 are available under entry-ID: 35923253

Automation problem
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.

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.

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.

Automation solution
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.

Startup Code
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.

Beside to the described application above, there are further several startup codes for STEP 7-Micro/WIN.


Content of Downloads Download
Micro Application Example Set5_DocTech_V2D5_en.pdf ( 1870 KB )
Library Description Set5_DocLibrary_V2D0_en.pdf ( 737 KB )
Pump station  
Startup Code using Library for CPU Port 0 (STEP 7-Micro/WIN Project file for pump station) Set5_S7-200_V2D11_en.zip ( 35 KB )
HMI station  
Startup Code using Library for CPU Port 0 (STEP 7-Micro/WIN Project file for HMI station) Set5_S7-200_Visu_V1D3_en.zip ( 28 KB )
Startup Code (WinCC flexible Runtime) Set5_WinCCflex_Visu_fwx_V2D0_en.zip ( 133 KB )
Startup Code (WinCC flexible Project file) Set5_WinCCflex_Visu_hmi_V2D0_en.zip ( 1995 KB )
Startup Code using Library for CPU Port 0 (STEP 7-Micro/WIN Project file for Teleservicestation) Set5_S7-200_Tele_V1D3_en.zip ( 31 KB )
Library for CPU Port 0 (STEP 7-Micro/WIN Library to send and receive SMS) set5_s7-200-library_port0.zip ( 22 KB )
Library for CPU Port 1 (STEP 7-Micro/WIN Library to send and receive SMS) set5_s7-200-library_port1.zip ( 20 KB )




S7-200 manual Link

Two new library versions. One variant for Port 0 and one variant for Port 1 (Port 1 available from CPU 224XP).

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens’ products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.

For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. For more information about industrial security, visit

To stay informed about product updates as they occur, sign up for a product-specific newsletter. For more information, visit

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit