Closed bressallg closed 4 years ago
Interesting..I haven't really tested this on Linux yet but should be easy to do. Unfortunately the integration tests are windows only using a snap7 server.
Anyway:
I suspect this might be related to some timeout setting. There should be nothing special in S7NetPlus besides standard .Net Tcp client socket calls, so no particular reason to not work on Linux.
Try setting ReadTimeout = 0; and WriteTimeout = 0; before calling Open()
Added linux UnitTest and fixed Timeout problem in #306
Try setting ReadTimeout = 0; and WriteTimeout = 0; before calling Open()
Ok, working now! Thanks!
I can't connect S7-1200 PLC when the program is running on Linux. No matter if the PLC exists or not in IP Address, on Linux the error returns instantly. Running the same project on Windows (console) works. It seems that on Linux there is not a waiting time when you try to connect the PLC, while on Windows program it takes about 20s before return error, when there is no answer from the host. Could you please help me to solve this issue?