PCSControls Posted May 17, 2013 Report Share Posted May 17, 2013 I've got a V570 with an application that sends out an email at a selected interval if an alarm occurs. I set the alarm to ALWAYS occur and the email to send every 1/2 hour and all is apparently fine and I see the emails as expected. On a regular basis the sending of the email will stop from approx. 8 p.m. until about 7- a.m. the following day, the stoppage also occurs thru the entire weekend. I have changed ISP's and have installed different routers and switches during the time I have seen this problem. I am looking for any ideas that could help me track this problem down. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted May 18, 2013 MVP 2023 Report Share Posted May 18, 2013 The time period you describe is 12 hours - there's something to this. Can you post your code? Joe T. Link to comment Share on other sites More sharing options...
PCSControls Posted May 22, 2013 Author Report Share Posted May 22, 2013 The sub that handles this is attached. I'm confident the alarm condition that enables the alarm is always met. Thanks for any clues. Attachment there now. What are valid file types for uploads? HandleAlarmEmail.zip Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted May 23, 2013 Report Share Posted May 23, 2013 Hi--I don't see an attachment... Link to comment Share on other sites More sharing options...
Intermat Posted May 24, 2013 Report Share Posted May 24, 2013 Hey PCS Controls, Not knowing your network, from an outside perspective this seems like your firewall is set up to block ports on weeknights and weekends. Does your company block internet usage on nights and weekends? I had the exact thing happen at my facility. We had to allow and exception for the PLC IP addresses. I know you said you changed routers and switches, but it just seems a firewall policy would do exactley that. Joe W Link to comment Share on other sites More sharing options...
PCSControls Posted May 28, 2013 Author Report Share Posted May 28, 2013 I thought the same thing regarding a restriction from the firewall or router. However I investigated that with the old system and found nothing and there isn't supposed to be anything on the new one either but I will check again,Thanks Link to comment Share on other sites More sharing options...
PCSControls Posted June 18, 2013 Author Report Share Posted June 18, 2013 I had my ISP monitor the traffic leaving our router and they see the messages going out to my mail server even when the emails fail. I then went to my email server provider and they claim that there are NO time restrictions on the email processing. The message being sent is identical each time so I'm having a hard time blaming it on the email contents. This morning I had a bit of time to look at this during the fail time period and saw the error "7 – The server cannot receive data (DATA mode error)" when the message failed. I let the system run and it magically started working again around 7 a.m. this morning and probably will until about 8 p.m. tonight, One additional item is the times are approximate but are around 7 a.m. to 8 p.m. and weekends. Any one have any ideas for me? Link to comment Share on other sites More sharing options...
AlexUT Posted June 18, 2013 Report Share Posted June 18, 2013 Create Data Table and trace sending email results. do retry for one email for statistics. Save failure code. You can open DOS window at your PC/Laptop and connect to e-mail server by Telnet "telnet xxx.xxx.xxx.xxx 25" (You can find at Internet how to do this). Check server replay and send short e-mail. Look for replay. This will tell you if PC to E-mail Server communication works or not. Do the same test with other email provider. For me it seems E-mail provider problem. You can create Data Table, where you fix e-mail send result and error codes. Retry sending email to other e-mail server at the time when error happens. Ask in forums if anybody have the same problem to send e-mails with the same e-mail server. B.R. Link to comment Share on other sites More sharing options...
PCSControls Posted June 19, 2013 Author Report Share Posted June 19, 2013 Alex, Thanks for the reply. I agree it seems to be an email provider problem however they claim otherwise. I will try the telnet approach and see what I can learn. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now