Saia-Burgess
Controls Ltd.
Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005
Sending SMS
6
6-3
SMS function
Those are the only parameters to configure for the SMS system. Do not forget to
initialize the Data Block after any modification.
6.3
SMS function
This function will interface the PCD to the SMS Center, sending the Message and
receive back the answer for acknowledge or error.
In order to work correctly, the PCD needs the connection to be established with the
SMS Center. The connection is done with the Calling Function (see chapter 3.2).
When then connection is established the function SMS can be called.
Once the function is called with the
Req_SEND
=1, the function will wait a delay
configured “Wait_for_Connection“ (see 6.2.2) to be sure that the SMS Center is also
connected. Then the function sends the SMS message to the SMS Center, the an-
swer will be return on the output
DONE
for a successful transmission or on the output
ERROR
and Status if an error has been detected in the SMS configuration or mes-
sage. If after a delay of 30 seconds the SMS Center didn’t answer to our request the
ERROR
output will be set.
● The function affects the Data Block Register 1.
● Internally the function is working with the ad
dress register, to avoid any problem with some
alarm interrupts, those one are disabled.
Parameter
Type
Description
SMS_DB
BLOCK_DB / IN Number of the SMS_DB
Req_SEND
BOOL / IN
Request to send the SMS, 1 will process the re-
quest, 0 will cancel.
SMS_Message
ANY / IN
Pointer to the string “Message“ (maximum 140
characters)
SMS_Recipient_num. INT / IN
Number in the list of the SMS recipient
TIMER_N
TIMER / IN
Number of a TIMER reserved for the SMS function
(needed internally). TIMER can’t be used anymore.
DONE
BOOL / OUT
The SMS has been sent with success, stay at 1
until the Req_SEND is reset.
ERROR
BOOL / OUT
An error occurred during the transmission of the
SMS, stay at 1 until the Req_SEND is reset.
Status
INT / OUT
Error code of the operation, output the code until
the Req_SEND is reset.