Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 58638283, Entry date: 04/12/2018

Signaling and Switching via SMS with S7-1200 and CP 1242-7 GPRS V2

  • Entry
  • Associated product(s)
A SIMATIC S7-1200 station shall be used to send important messages as SMS message to mobile maintenance staff via the CP 1242-7 GPRS V2.

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.

A beverage vending machine shall serve as an exemplary area of application. The vending machine regularly checks the following:

  • the filling level of the coin box
  • the cooling system temperature.
  • any unauthorized opening of the front door

The vending machine reacts to certain events such as limit values being exceeded and informs the maintenance staff.

The following functions are realized in this application example:

  • Sending an SMS to one parameterizable phone number,
  • Sending a message to several subscribers (broadcast),
  • Sending a message with acknowledgment by one of the configured recipients of the message (escalation),
  • Receiving messages.
    Depending on the message text,
    • requested values are read out of the controller and sent to a mobile phone,

    • received commands are executed in the controller and a confirmation/error message is sent to the mobile phone.

The solution presented here offers the following advantages:

  • The “SndSms”, “RcvSms”, “BroadcastSms”, “EscalationSMS” and “SetGet” user blocks provide you with immediately usable functions for your applications.
  • The user blocks can also be used for the CP 1243-7 LTE.

 Registrierung notwendig  Documentation (2,2 MB)
 Registrierung notwendig  Project TIA Portal V15.1 Update 2 (7,7 MB)

 Registrierung notwendig  Project TIA Portal V13 (12,3 MB)
Wireless signaling and switching via SMS with S7-1200 Controllers (CP 1242-7 V1) (4.4 MB)

Further information
Data communication between S7-1200 stations and TeleControl Server Basic V3 via CP 1242-7 V2 and CP 1243-1
Inter-Station Communication between S7-1200 Stations Using TCSB V3 via CP 1242-7 V2
Teleservice of a S7-1200 with Telecontrol Server Basic
Wireless signaling and switching via SMS with serial CPs/CMs and the MD720-3 GPRS/GSM modem
Sending and Receiving SMS Messages via a SCALANCE M Router

Last changes
Migration to TIA Portal V15.1 Update 2

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.