
SMS-531 User’s Manual v1.1
- 41/60 -
5.3 Example 3: Sending the alarm SMS dynamically
This example is shown how to send the variable SMS to the variable phones by
Modbus commands. The max chars of the variable SMS is 70 Unicode.
For sending the variable SMS, it is not needed to be set by the GT-531 Series
Utility. This function can be finished by Modbus commands as follows.
(1)
Connect to COM2(RS-232) or COM3(RS-485) of the SMS-531 to the Host PC.
(2)
The host sends the Modbus commands to the SMS-531 to set the content of the
SMS and phone number first. Then, send the command to transmit the SMS.
Commands and Description:
Command
Setting the phone number
(Hex)
Command
01 10 01 D5 00 06 0C 30 31 32 33
34 35 36 37 38 39 00 00 D5 2B
Response 01 10 01 D5 00 06 50 0F
Setting the SMS content
(Hex)
Command
01 10 01 8F 00 0C 18 44 00 79 00
6E 00 61 00 6D 00 69 00 63 00 20
00 53 00 4D 00 53 00 00 00 AC 3B
Response 01 10 01 8F 00 0C F0 1B
Sending the SMS(FC 5)
(Hex)
Command 01 05 00 80 FF 00 8D D2
Response 01 05 00 80 FF 00 8D D2
Sending the SMS(FC 15)
(Hex)
Command 01 0F 00 80 00 01 01 01 EE 89
Response 01 0F 00 80 00 01 01 01 EE 89
Description
1. The phone number
:
0123456789
2. The content of the SMS
:
Dynamic SMS
3. Transmitting the SMS
Result
The phone number “0123456789” would receive the “Dynamic SMS”
SMS.
Содержание SMS-531
Страница 10: ...SMS 531 User s Manual v1 1 6 60 2 3 Dimensions...