Handcraftedsince87
Lifetime Supporting Member
Good morning,
We have a remote site that has a Micrologix 1100 that is really only used to send out MSG instructions (Email to a SMTP server) if the power goes out/comes back on. I was out there yesterday troubleshooting why a MSG had been sent that the power had gone out, but not come back on. Part of the problem was that it's on a Battery backup, which had completely drained, so I believe the PLC booted up when the power came back on and either didn't send the MSG out, or it tried but the modem hadn't connected yet. I should add that we are using a fairly slow Hughes net satellite connection.
After toggling the power relay I found that if it happened to quick, the second MSG (Power back on) would get an error. The error was "DD" which I believe is a "General SMTP" error, and the more specific .22 error (where you move the MSG9:0.22 to an integer file) was a "1501" which I understand to be a "communication error with SMTP mail server". I thought this was possibly due to messages getting stacked based on the slow internet connection and causing an error in the second MSG? I started to add some buffer logic to delay the sending of messages to around 90 or 120 seconds if one was already being sent, but ran out of time and had to head home (No overtime).
I'll be heading back out tomorrow to finish my logic and give it a shot, but wanted to see if anyone else might have an opinion on the matter, or other things to look out for.
regards-
We have a remote site that has a Micrologix 1100 that is really only used to send out MSG instructions (Email to a SMTP server) if the power goes out/comes back on. I was out there yesterday troubleshooting why a MSG had been sent that the power had gone out, but not come back on. Part of the problem was that it's on a Battery backup, which had completely drained, so I believe the PLC booted up when the power came back on and either didn't send the MSG out, or it tried but the modem hadn't connected yet. I should add that we are using a fairly slow Hughes net satellite connection.
After toggling the power relay I found that if it happened to quick, the second MSG (Power back on) would get an error. The error was "DD" which I believe is a "General SMTP" error, and the more specific .22 error (where you move the MSG9:0.22 to an integer file) was a "1501" which I understand to be a "communication error with SMTP mail server". I thought this was possibly due to messages getting stacked based on the slow internet connection and causing an error in the second MSG? I started to add some buffer logic to delay the sending of messages to around 90 or 120 seconds if one was already being sent, but ran out of time and had to head home (No overtime).
I'll be heading back out tomorrow to finish my logic and give it a shot, but wanted to see if anyone else might have an opinion on the matter, or other things to look out for.
regards-