Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 54361177, Entry date: 10/14/2019

Sending and Receiving SMS Messages via a SCALANCE M Router

  • Entry
  • Associated product(s)
A SIMATIC S7 station is to automatically send important information to mobile service personnel using a simple SMS-based escalation system via the SCALANCE M874/M876 router.

In areas where no wired transmission medium is available and where setting up a separate wireless network involves excessively high costs, data transmission via SMS using the GSM cellular network is a simple, reliable and cost-effective alternative.
Using a simple SMS-based escalation system, the SIMATIC S7-1200 sends a warning/message to the service personnel via the SCALANCE M874/M876 router. To connect the SIMATIC S7 CPU to the GSM network, the S7 station is connected to the Ethernet interface of the SCALANCE M874/M876 router via TCP/IP.

The following functions are implemented in this application example:

  • Sending a message to a service employee
  • When a configurable time – during which no acknowledgment SMS message has been received – has elapsed, the message is forwarded to other configurable service employees in an escalations chain.

The following graphic shows the configuration scenario that is implemented in this example.

Application example for STEP 7 V15.1
  Documentation (1,5 MB)
 Registrierung notwendig  Project (7,3 MB)
This application example is implemented with an S7-1200 CPU. Alternatively, an S7-1500 can be used.

Library for STEP 7 V15.1
  Library description (1,3 MB)
 Registrierung notwendig  Library (1,9 MB)
This Library is valid for S7-1200/ S7-1500/ S7-300/ S7-400/ IM151-8 PN CPUs and STEP 7 V15.1

Library for STEP 7 V5.6
  Library description (1,0 MB) 
 Registrierung notwendig  Library (124,7 KB) 
This Library is valid for S7-300/ S7-400/ IM151-8 PN CPUs and STEP 7 V5.6

The following archives contain these SMS functions for older SCALANCE routers.
 Registrierung notwendig Sending SMS Messages with an S7 CPU via the UMTS Router SCALANCE M873/ M875 (2,9 MB)
 Registrierung notwendig SMS Messaging with S7 CPU via EGPRS Router MD741-1 (285,0 KB)

Further Information
Wireless Signaling and Switching per SMS with S7-1200 Controller
Wireless Signaling and Switching via SMS with serial CPs/CMs and the MD720-3 GPRS/GSM Modem

Last Changes
Complete revision

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
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.