AdvancedHMI Software

General Category => Support Questions => Topic started by: dwilkins on November 17, 2016, 09:13:51 AM

Title: Connection retries
Post by: dwilkins on November 17, 2016, 09:13:51 AM
We turn off power to our PLC's every night then back on again the next morning.   I've noticed that most days my Advanced HMI app reconnects fine on its own with no extra code by me but some days, especially after two day weekends,   the PC quits sending packets to the PLC and HMI gives "No Response" when reading. 
How does the retry mechanism work in HMI and when it quits sending packets, is that the Windows network stack or the HMI code? 
Title: Re: Connection retries
Post by: Archie on November 17, 2016, 09:37:20 AM
Which driver are you using? The CLX drivers usually get the most extensive testing for loss of communications, but the others should work just as well.
Title: Re: Connection retries
Post by: dwilkins on November 18, 2016, 08:50:38 AM
Micro800
Title: Re: Connection retries
Post by: Archie on November 18, 2016, 09:23:14 AM
The Micro800 driver is the same driver as the CLX driver. When it stops communicating, can you run a Wireshark packet capture to see if AdvancedHMI is making any attempts to reconnect?
Title: Re: Connection retries
Post by: bachphi on November 20, 2016, 06:23:19 PM
In my previous job, I set PCs reboot weekly on Monday morning before the A shift start in Task Scheduler.   
Title: Re: Connection retries
Post by: Archie on November 20, 2016, 07:37:25 PM
I forgot to ask which version of AdvancedHMI you are using?
Title: Re: Connection retries
Post by: dwilkins on November 21, 2016, 08:41:11 AM
Wireshark shows no traffic from AdvancedHMI.   Using version 399r.
Title: Re: Connection retries
Post by: Archie on November 21, 2016, 10:21:13 AM
I tried to replicate this many times by disconnecting the Ethernet, but every time it re-established communications. I will setup a test and let it run for a couple days.
Title: Re: Connection retries
Post by: dwilkins on December 22, 2016, 09:20:35 AM
What was the outcome of your extended testing? 
Title: Re: Connection retries
Post by: Archie on December 22, 2016, 09:27:54 AM
I started up an HMI, then disconnected the cable and left it like that for over 12 hours. I then reconnected the cable and within a few seconds it started communicating again. This was using the latest version of 3.99s

So unfortunately I have not been able to replicate it yet. After the holidays I can try more tests over longer periods of time.
Title: Re: Connection retries
Post by: ed288 on January 03, 2017, 12:01:33 PM
Hello.

I'm using SLC 5/05 with EthernetIPforSLCMicroCom driver, the applications are installed on a server that is dedicated to keep records of the production and PLC's are only turned off on weekends.

What happened is that after a long weekend the applications loose communication with the PLC, at this time i have 3 apps that are connected to 3 different PLC and all did the same this weekend. After i restart the application all worked fine. But i have not found what is causing this.

I think that was a network issue or a problem with the database but after i read this thread i knew that is the same problem that i have.

On server i have another app that keeps record of the temperature and was developed before i found AdvancedHMI, this app use RsLinx OPC Server to communicate with PLC and is not failing to reconnect to the same PLC after a long weekend.

I try to found something that keeps connection alive on code wtih no luck.

Thanks for all the help you can give to us.




Title: Re: Connection retries
Post by: Archie on January 04, 2017, 06:49:02 PM
I've been doing quite a bit of testing with version 3.99s and so far I have been unable to replicate this. I'm going to leave the PLC off for 4 days, then see it AdvancedHMI reconnects after powering it back up.
Title: Re: Connection retries
Post by: Archie on January 05, 2017, 09:06:04 AM
Good news is that I was finally able to replicate this problem. It will be fixed in upcoming version 3.99t
Title: Re: Connection retries
Post by: ed288 on January 05, 2017, 05:27:38 PM
Thanks for the support Archie, wait anxious for the next release.
Title: Re: Connection retries
Post by: bachphi on January 06, 2017, 10:57:01 AM
Good news is that I was finally able to replicate this problem. It will be fixed in upcoming version 3.99t
Very good news , indeed!!!!!!!!!
Title: Re: Connection retries
Post by: Archie on January 08, 2017, 09:03:06 PM
Version 3.99t with the fix for this issue is now available for download.
Title: Re: Connection retries
Post by: dwilkins on January 10, 2017, 11:50:13 AM
Thank you for hanging in there with this.  I will switch to the new code today.
Title: Re: Connection retries
Post by: dwilkins on January 17, 2017, 04:04:55 PM
New code works.   It reconnected on its own after the PLC had been off for 3 days.  Before I could not leave the PLC off over a 2 day normal weekend without having to restart the HMI software.
Title: Re: Connection retries
Post by: Archie on January 17, 2017, 05:40:50 PM
That's good news! Thanks for the update.