4/27/2013 2:19 PM | |
Posts: 6 Rating:
|
Hello guys.I have a problem. I wrote from scratch a program for sending SMS messages when an alarm occurs irrigation lake. When I try to simulate alarm SMS can not send.Please find enclosed the complete code, so, I ask to be shown the error and how to correct it.Very grateful.Sorry for my bad English :) I have another pdf SYSTEM_LIBRARY but I do not know how to upload two documents AttachmentGSM_module_short.pdf (132 Downloads) |
Last edited by: lale02 at: 4/27/2013 2:21 PM |
|
4/29/2013 2:13 PM | |
Posts: 6 Rating:
|
Here the complete source code in the MWP format ... Comments are written in Croatian language. Attachmenttest.zip (118 Downloads) |
4/30/2013 10:43 AM | |
Posts: 9 Rating:
|
friend, i found a few addresses missing in your program library.. i have attached a program and a .pdf...program contains the GSM library which i used in my program... follow the sequence...: 1. before you download the program to PLC, make the required changes in the "Data Block" (service centre number, target number, etc..) 2. after download, initialize the SMS_INIT block in the MAIN subroutine. wait for the SMS_INIT_STATUS to be 15 (read the last page of the .pdf file for status meaning) 3. once sms_init_status ==15, in the status chart write the msg in the address of send_msg. 4. toggle the bit which is in series with the SMS_SEND block in the MAIN. 5. wait for the SEND_SMS_STATUS to change..it can take 2-10 seconds to get the desired status number depending on the network.... if it works, you can add your program to it..dont use any addresses which are already used in the library...it might not misbehave.... if the program does not send SMS, tell me the status of INIT_ block after you initialize and status of the SEND_ block after you tried to sent an SMS.. i hope it willl work.. good luck..
Attachmentgsm library.zip (95 Downloads) |
4/30/2013 1:45 PM | |
Posts: 6 Rating:
|
SMS_init status: 21 (Initialization aborted. Timeout exceded) wiht your and mine code |
5/4/2013 7:24 PM | |
Posts: 9 Rating:
|
try without entering PIN CODE... |
Follow us on