[Switch] The problem of connection failure after a certain period of time in China's Adam6060, China's adam6060
To cooperate with Party B for testing, the Adam module must be connected to the site. After a while, I found that the module could not be connected and there was very little information on the Internet. I found this post and recorded it. In the past, there were no high-frequency connections from multiple clients (not high in fact), and the connection release was not considered. In addition, the official Demo has not released the connection.
1. Problems
15 ADAM-6060 modules are used in the customer system, the host is the IPC-610, the customer uses VC6.0 to write software for data collection.
Phenomenon: Reconnect 15 modules once in seconds and refresh the data. Communication was interrupted within 1-2 hours. Call this function adamModbus. Connect (m_szIP, ProtocolType. Tcp, m_iPort)
Phenomenon: one module is reconnected once in 2 S and data is refreshed. No. However, if the WriteCoil () function is called at this time, communication will be completely interrupted within 1-2 hours.
2. reply:
(1). We recommend that you adjust the program to reduce the number of times of adamModbus. Connect.
(2). Use the corresponding disconnect () function after using adamModbus. Connect.
The customer's system is located in a car production line in a city in Canada, and 15 modules have been put into use. After the two modifications, the customer has returned to the site and the problem has not been reproduced yet.
Original post address: http://forum.adamcommunity.com/viewthread.php? Tid = 92795 & extra = page % 3D1