How can you send a text message (SMS) with SINAUT ST7?
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:
Configure the SMS center.
- SINAUT configuration tool:
- SIMATIC Manager:
Parameterize the "SMS_ Control" block in the CPU program.
Make the following settings.
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.
|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".
|8||Save and compile the configuration.|
|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.
|3||Right-click on one of the connections to accept it. The configured connection is then displayed in the left pane.|
|1||Switch to "Node management". Double-click on the CPU. A window with the CPU properties opens. Change to the "SMS Configuration" tab.
|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.|
|3||Then click on "Edit..." to configure the data block. The following window opens.
|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...".
|7||The following window opens.
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.
|1||Make the following settings in the CPU program. You must make these settings in every SINAUT project.
|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.
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.