PLC connection #1
Unanswered
Error1-creator
asked this question in
Q&A
Replies: 1 comment
-
192.168.87.54 - is client |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi friends. What do i have:
OS Wind10, pymodbus 3.6.3, python 3.12.1, PLC Owen 150
I try to write modbus TCP client.
I have next problem. I writed small application for reading and writing registers PLC. But i can connect to device only 1 per 5 second.
If I tried to connect more often, i got next mistake:
ERROR:pymodbus.logging:Connection to (192.168.87.55, 502) failed: [WinError 10061]
The connection was not established because the destination computer rejected the connection request.
I tried to deside it, i used wireShark, and i understood, that PLC some reason doesn't see client.close() from the client's size and tries to contact the client, but can't it and goes to timeout (5 second). For this reason i can't to device more often.
How can i fix it, and connect to PLC at least 1 time per second or more often.
The figure shows the standard code from the sample library, calling which more than once every 5 seconds we get an error
How can you see on the figere 3, connection is delayed.
Beta Was this translation helpful? Give feedback.
All reactions