SMS messages from Omron PLC

BobB

Lifetime Supporting Member
Join Date
Jun 2002
Location
Sydney
Posts
4,548
Has anyone successfully sent SMS messages to a mobile from an Omron CQM1H PLC? The PLC has ASCII string capabilities and I have access to a modem that has been tested for compatability with Omron PLCs. Should behave in the same way as other Omron PLCs as the function has been available for years.
:mad:
 
Not to worry, sorted it out for myself. GSM modem, TXD command and ASCII string. Quite easy at the end of the day.
zzzzz
 
SMS Omron PLC

Can you send me an example how to do this.
Maybe I can help you with something else.
 
Hi jacco
Will get the code off my laptop and the modem setup etc early in the week and post it for you.
Regards
beerchug
 
Been away earning some money. Sorry about the delay
Used a Falcom A2D-1 GSM modem. Check at www.falcom.de for your local distributor.
Used in conjunction with an Omron CJ1 PLC.
Power Wiring for modem
white wire is 24 volt dc negative
yellow wire is not used
green and brown wires are bridged to 24 volt dc positive
Setup - install sim card and power up unit.
Using Hyperterminal and standard serial cable program modem as follows
AT&F
AT+IPR=9600
AT+IFC=0,0
AT+CBST=7,0,1
AT+DS=0
ATS0=2
AT+CNMI=2,2,2,0,1
AT+CSAS
ATE0 (or 1 to turn on feedback)
AT&W

Omron RS232 to modem pinout
PLC Modem
2 3
3 2
9 5
Bridge 4 & 5 at the PLC end
Bridge 7 & 8 at the PLC end
Bridge 4 & 6 at the modem end
Bridge 7 & 8 at the modem end

Sample code

| |-------|



The LEN$ function counts the number of bytes in the string to be sent so leave a gap between messages.
Don't forget to set up your PLC serial port to RS232 - 8 bits 0 parity 1 stop bit

Enter the appropriate strings into the PLC data memory in text format
At data memory zero enter
AT +C MG S= "+ 61 41 80 40 27 3"
Substitue 61 with your country code and drop the "0" off the phone number
At data memory 40 enter your message
RE CI RC UL AT 10 N PU MP 1 F AU LT
Then change to hex mode and enter
1A
All messages must end with 1A hex to hang up modem.
I have not tried it yet but I am lead to believe it is relatively easy to string messages together for sending. Just watch the size of the buffer in the modem.
Enjoy the fun of getting it working

beerchug
 
Last edited:
I took too long getting the sample code right. Hear it is.


| |------|
| Alarm On | LEN$ |
|-----[]-----------------------------------| D0 |
| | | D100 |
| | |------|
| |
| | |------|
| | | LEN$ |
| |-----------------------------| D40 |
| | | D101 |
| | |------|
| |
| | |------|
| | | @TXD |
| |-----------------------------| D0 |
| | | #0 |
| | | D100 |
| | |------|
| | RS232 send RS232 receive
| | ready flag complete flag |------|
| | A392.05 A392.06 | @TXD |
| |---[]------------[]----------| D40 |
| | | #0 |
| | | D101 |
| | |------|


Don't forget to turn the "alarm on" bit off before trying to send again.
Also PLC serial port needs to be set to 9600 bd.
You can use any ASCII characters in the string including spaces etc to make your message look right on the phone.
 
Last edited:
Hi BobB,
Can u teach me on how to transmit a message from Omron PLC C01E-N30DT-D to GSM Modem without using LEN$?
 
No - it took me ages to work it out for myself - cost me money too. Why do you not want to use the LEN$ command? Doing all this a different way these days anyway. Contact your local Omron office - they will probably have a solution and start your own threads - this is so old.
 

Similar Topics

Hello all. We have been asked to add a SMS reporting sistem when an error occurs. I found this example...
Replies
0
Views
1,896
Does anyone have any info on setting up a FX 1N to send a text message when an error occurs. Thanks.
Replies
5
Views
2,861
I'm trying to send an SMS message using a S7-200 PLC (whenever an input is activated) in his freeport mode connected to an analog modem. I already...
Replies
9
Views
11,814
Hello, I am seeking guidance on configuring my Rockwell Allen-Bradley PLC logic to enable SMS sending through my Secomea module. While I have...
Replies
0
Views
331
Hi, Was wondering if anyone has ever set up to SMS from a Micro850 using a Teltonika RUT955? I can get the device to SMS from HTTP, SSH and...
Replies
0
Views
705
Back
Top Bottom