Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 31912114, Entry date: 10/13/2008

How can you send a text message (SMS) with SINAUT ST7?

  • Entry
  • Associated product(s)

It is possible to send an SMS from the GSM network or from the landline network. This description is valid for the GSM network. If you are using a landline network in your configuration, follow the Notes at the end of this entry.

You must make settings at three points in order to send an SMS with SINAUT ST7:

  1. NetPro:
    Configure the SMS center.
  2. SINAUT configuration tool:
  3. SIMATIC Manager:
    Parameterize the "SMS_ Control" block in the CPU program.

Make the following settings.

Settings in NetPro:

No. Procedure

Parameterize the GSM modem MD720-3 in the station as described in Entry ID: 29586028.


In the "Selection of the network" window, under "Stations" you select the "Other Stations" option.

Fig. 01

Configure this station as SMS center as described below.

3 Double-click on the station.
A "Properties" window opens. You can change the name of the station in the "Name" field. (In this example the name of the station is "SMSC").
4 Switch to the "Interfaces" tab.
Click on "New" and in the window that opens you select the option "SINAUT Dial-up Network". Confirm with "OK".
5 Under "Subnetwork" you select the dial-up network already configured and confirm all the windows with "OK".
The SMS center is now connected to the dial-up network.
6 Double-click on the dial-up network segment for the SMS center. Select the "Dialing Param." tab.

 Enter the telephone number of the SMS center with the country code and for "Special service" you select "SMS digital".

Fig. 02

You obtain the telephone number of the SMS center from your provider.
The connection-related AT strings and numbers of the German providers are available in the SINAUT ST7 Online Help. (Double-click on the dial-up network segment of the SMSC. Then press the "F1" key. This opens the SINAUT ST7 Online Help.)

8 Save and compile the configuration.

Settings in the SINAUT configuration tool::

  •  Settings in the Connection configuration:
No. Procedure
1 Open the "Connection configuration" to configure the connection between the station from which the SMS is sent and the "SMSC".
2 Possible connections are displayed in the right pane in Fig. 03. These are a connection from the SMSC to the SIMATIC 300 station and a connection from the SIMATIC 300 station to the SMSC.

Fig. 03

3 Right-click on one of the connections to accept it. The configured connection is then displayed in the left pane.
  • Settings in the Node management:
No. Procedure
1 Switch to "Node management". Double-click on the CPU. A window with the CPU properties opens. Change to the "SMS Configuration" tab.

Fig. 04

2 In the window in Fig. 04, you click on "Add DB" to the data block in which you want to configure the SMS. The data block not yet configured is displayed with a red cross as shown in Fig. 05.

Fig. 05
3 Then click on "Edit..." to configure the data block. The following window opens.

Fig. 06

4 In the "mobile phone no.:" field you enter the country code and telephone number of the recipient of the SMS. There is an option to have the SMS acknowledged. (Check the "acknowl. possible" option). Information on acknowledging SMSs with SINAUT ST7 is available in Entry ID: 31912132.
5  In the "Signal address" field you enter the trigger for the SMS. In this example it is the marker M0.0.
Confirm with "OK".
6 Click on "Add Msg". Select the message displayed under the data block and click on "Edit...".

Fig. 07

7 The following window opens.

Fig. 08

Write the text to be displayed in the SMS.

8 In the "Insert replacement string" field you can decide whether the CPU name, the DB name or the message number is to be displayed in the SMS. In this example we have selected all three options.

Then remove the check mark from "Message is disabled" and confirm all the windows with "OK".


Save the settings in the "Node management". Confirm the windows that open with "OK". Generation/compilation takes a few seconds.

Settings in the SIMATIC Manager

No. Procedure
1 Make the following settings in the CPU program. You must make these settings in every SINAUT project.
  • FC "BasicTask" (FC127): Call this block in OB1. Define the value "0" for the parameter "UserFC".
  • FC "Startup" (FC122): Call this block in OB100.
2 Call the FB "SMS_Control (FB 124) in OB1. Specify the number of the data block for your SMS as the parameter for "MessageObjectDB". In this example it is DB125.

In your project, you program the event that sets the trigger for the SMS.
This completes parameterization of the SMS.


Load your project into the CPU.


  • If you are using TD7 on TIM, it is not possible to send an SMS.
  • SMS communication via landline network:
    • The acknowledge SMS function is not possible if you want to send the SMS from a landline network.
    • Parameterization of the modem:
      Make the same settings for the landline network and the WAN interface as for the GSM network (except "AT initialization"). Parameterize the AT strings according to the modem you are using (ISDN or analog modem).
    • Telephone number:
      If the SMS is sent from the landline network, you enter the telephone number of the node without the country code!
    • SMSC telephone number:
      • The telephone number of the SMS center depends on the type of connection (analog, ISDN or GSM network). You obtain the number from your provider.
      • The special service for sending SMSs via the landline network depends on the provider. More information on the special services is available in Entry ID: 24045718.
    • In the case of sending SMSs via the landline network with Vodafone, it is only possible to send SMSs to Vodafone telephone numbers.

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