Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
Absent, adj.:
Exposed to the attacks of friends and acquaintances; defamed;
slandered.
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
advertisement
from the Forum department...
Send SMS from PLC-5
PLCs and related questions. topic
Posted by Tiko on 9 January, 2009 - 3:36 pm
Is there any solution to send SMS from PLC-5 through RS232 to communicate with GSM modem?


Posted by Kevin Grey on 11 January, 2009 - 2:07 pm
Hi, I have not used a PLC5 for a long time, but sending at text is relatively simple. All you need to do is send a series of ASCII commands (using the AT command set of the modem).

Typically;
'Setup com port parameters
com port settings 19200,N,8,1

'Init
ATE0 <cr>

'Set Text Mode
AT+CMGF=1 <cr>

'Set Number
AT+CMGS="01234567890" <cr>

'Send Message
Message & Chr(26) 'ctrl Z

You should of course check for the correct response after each command i.e. 'OK'. I would connect the modem to a PC first and use something like hyper terminal to test the commands. I assume the PLC com ports can be configured the same way as an SLC where the serial DF1 port can used as plain ASCII port.

Regards Kevin

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2009 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!