Red Lion Multiple SMS Delivery

reybar182

Member
Join Date
Sep 2015
Location
Melbourne
Posts
6
Hi all,

I have an application with a Red Lion interfacing with an SLC 5/04.
Essentially the user sends a command in the form of an SMS to the device and the Red Lion responds with Plant Data related to that.

I'm using the SendMail(Contact, Subject, Content) function which works great for one message. However when the response requires more than 160 characters, I need to send it over several SMS messages. To do this I'm looping through an array of response messages with a 1 second delay between each message

for(i = 0; i <= totalNumberOfMessages; i++)
{
SendMail(Contact,"", Reply_SMS_Message);
Sleep(1000);
}

However, for whatever reason, the messages come back jumbled up each time. Is the SendMail function FIFO?
I've even tried extending the delay, however that just delays the initial message further - still have them all jumbled up.

Appreciate any help with this

Thanks

Reybar
 
I wonder if it would help to copy the string from the array location to a non-array string tag and use that tag in the SendMail instruction? Be sure to set the string length of the new tag to a value large enough to handle the biggest message...
 

Similar Topics

Hi Everyone, I'm using a small program to generate emails when certain conditions are met like when a counter exceeds a value. I was hoping that...
Replies
1
Views
1,990
I am using one Red Lion G310C2 HMI to control 2 Idec FC5A PLC's. What I am wondering is how the HMI decides which is PLC1 and which is PLC2...
Replies
12
Views
5,136
Hello all, I'm new to the plc world here. Most of my experience is from CNC machines and some Motoman NX100 programming. I am currently working on...
Replies
4
Views
2,993
Hello, I need a little help on this one. I have a customer that has a Red Lion DataStation DSPGT product that is talking to multiple PLC's on the...
Replies
4
Views
5,889
Hello all, I'm working on a project using an AB CompactLogix PLC and 2 Red Lion HMIs (G3) running Crimson 3.0. The PLC and the HMIs are connected...
Replies
7
Views
7,593
Back
Top Bottom