We use snap7 to make cyclic ReadMultiVars function calls, reading the content of dozen of DB every 1700ms.
We call that a ReadMultiVars list. Each call of the ReadMultiVars function is used to read a small (about 5 to 10) group of DB
Data transfert works pretty well for a couple of hours, until it encouters this suite of errors:
Then a connection timeout occurs for the next ReadMultivars call
| ReadMultiVars
+-----------------------------------------------------
| ERROR !!!
| ISO : An error occurred during recv TCP : Connection timed out
| Cnx reference : 0xb3c29460
+-----------------------------------------------------
Then infinite RECV errors
+-----------------------------------------------------
| ERROR !!!
| ISO : An error occurred during recv TCP : Connection reset by peer
| Cnx reference : 0xb3c29460
+-----------------------------------------------------
We would appreciate to have any idea to understand why this problem occurs only after hundreds of cycles, and how we can recover this TCP error
Some other informations:
- We measured the execution time of the ReadMultivars. It is comprised between 133ms and 146 ms.
After the first error, the following always concern the first ReadMultivars call. We do not try to perform the followings.
The total execution time (all ReadMultivars of the list) of the is about 1300ms, so we think that a reading period of 1700ms is not a problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
We use snap7 to make cyclic ReadMultiVars function calls, reading the content of dozen of DB every 1700ms.
We call that a ReadMultiVars list. Each call of the ReadMultiVars function is used to read a small (about 5 to 10) group of DB
Data transfert works pretty well for a couple of hours, until it encouters this suite of errors:
We would appreciate to have any idea to understand why this problem occurs only after hundreds of cycles, and how we can recover this TCP error
Some other informations:
- We measured the execution time of the ReadMultivars. It is comprised between 133ms and 146 ms.
After the first error, the following always concern the first ReadMultivars call. We do not try to perform the followings.