Jump to content

Recommended Posts

Posted
Hi guys I'm new on this forum and I've tried to search everywhere online to solve this problem and i really need to get it solved. I tried the SmsFX example and i have a few issues. My setup is FX2N-32MR-DS with FX2N-RS232BD card installed and Westermo GS-01 GSM modem, tried with GX IEC Developer and GXWorks2. For some reasons SmsFX code sample is not working for me as it should. I can send messages through the GS-01 and receive them on my mobile phone, but when i send message to PLC, i cannot get data correctly. Received buffer is stored temporary in ByteReg at D630 and then moved to D100 in my case. I think the problem is with the index registers used to move data as received data in D1xx is wiped before FB can filter and process it. With monitor i see data going to D1xx but its wiped in a less than a second. Have anyone tried this code and got it working?Any tips? Thanks in advance, Jeff
Posted
Are you sure that you are not using any dataregisters from the system (system variables / labels) area? Could you post the test program you are currently using? Did you initialize the modem with the required commands (should be documented in the help file)?
Posted
Hi, Thank you for your reply. According to the manual, this sample should work. Yes I have initialized the modem and selected the sms mode etc. the sample code also do initialization in Fx_InitModemSMS block. Problem is in receiving process i assume, inside of Fx_232BDNoPrEC. I get the RX data in ByteReg at D630 and in D100 StartAdrRecBuff but the date is never processed as its wiped from StartAdrRecBuff before its filtered. For example, when I init the modem using Fx_InitModemSMS FB, NoNetwork is always TRUE as the FB never receive OK answer ftom the AT+CSQ command. Also when i send SMS using Fx_SendSMS FB, I receive 3 messages in my mobile as there is a retry counter that try to send SMS 3 times if it wont get OK from the modem. SmsFXtest.zip
Posted
You've used addresses in the system label area (see picture). You have to use an area outside of D512 - D999 or else other auto assigned variables will overwrite them. Try to change either your address area in the GVL, or move the system label area. Then post your result.
Posted
And by the way: The function block library you are using is quite old. You should download the latest one (SMS_V120): http://www.beijer.no/web/web_no_be_no.nsf/docsbycodename/filearchive?OpenDocument&mylink=/web/BExFilePileAut.nsf/fm.be.searchframe?Openform&Lang=NO&DocID=C6AFDE2EE959C314C12577520043A1BA

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...