-
Notifications
You must be signed in to change notification settings - Fork 1
Connection Error #3
Description
Traceback (most recent call last):
File "c:\Users\Administrator\Desktop\pyS7\pyS7\client.py", line 84, in connect
connection_bytes_response: bytes = self.__send(connection_request)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "c:\Users\Administrator\Desktop\pyS7\pyS7\client.py", line 238, in __send
raise S7CommunicationError(
"The connection has been closed by the peer."
)
pyS7.errors.S7CommunicationError: The connection has been closed by the peer.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\Users\Administrator\Desktop\pyS7\main.py", line 13, in
client.connect()
~~~~~~~~~~~~~~^^
File "c:\Users\Administrator\Desktop\pyS7\pyS7\client.py", line 101, in connect
raise S7ConnectionError(f"Failed to complete connection setup: {e}") from e
pyS7.errors.S7ConnectionError: Failed to complete connection setup: The connection has been closed by the peer.
PS C:\Users\Administrator\Desktop\pyS7>
