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