Scenario: "Generating And Sending An Sms Message; Diagram For The "Generating And Sending An Sms Message" Scenario - Siemens SIMATIC S7-300 Manual

Sending and receiving sms messages via serial cps and the md720-3 gprs/gsm modem
Hide thumbs Also See for SIMATIC S7-300:
Table of Contents

Advertisement

3.2

Scenario: "Generating and sending an SMS message"

Via an internal data array, the FB "SMS_Meld" function block generates a configu-
rable text message using the Message_No input variable and sends it to a recipi-
ent that is assigned to this variable.
3.2.1

Diagram for the "Generating and sending an SMS message" scenario

The diagrammatic representation below shows how FB "SMS_Meld" generates a
text message from a message number.
Figure 3-3
Input
Message_No
3
(e.g. =
)
The Message_No variable contains the message number that is necessary to
generate an SMS message. Using this variable, the associated telephone number
and message text are determined from a total of four arrays.
Two of these lists are linked to one another:
The ptrTelefonnumber and Telefonnumber lists are used to determine the tele-
phone number.
The ptrText and Text lists are used to determine the message text.
Depending on the value of the Message_No variable, the number is now deter-
mined from the ptrTelefonnumber and ptrText lists, which then defines the posi-
tion in the list in Telefonnumber and Text.
In this way, the information necessary for the SMS message is determined (tele-
phone number and message text).
By reconfiguring the indices and contents of the arrays, you can create any alloca-
tion and individually design the SMS message.
Sending and Receiving SMS Messages with MD720-3
V 2.1, ID Number: 25545680
3.2 Scenario: "Generating and sending an SMS message"
3
3
ptrTelNo[
]=
Allocation: Message number to recipient number
3
1
prtText[
]=
Allocation: Message number to message text
3 Functional Mechanisms of this Application
3
TelNo[
]=+49xxxxxxxx
1
Text[
]="Temperature high"
SMS_sr
Send SMS text
no. 1 to recipient
no. 3
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic 400Sinaut md 720-3Simatic et 200s

Table of Contents