-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unreachable Peer PLC issue since 4.0.7 #151
Comments
This is probably due to Fix options:
I prefer option 2, and we already implemented this resilience built into the PLC communication: pyra/packages/core/modules/enclosure_control.py Lines 158 to 172 in 53e987f
So, why do we now get a ... and here is the My change proposal: - except Snap7Exception as e:
+ except (Snap7Exception, RuntimeError) as e: |
In my opinion, this change in the |
Good analysis. We should discuss if backwards compatible library updates of dependencies should be done automatically for our systems. I would strongly advice against it. |
First occurrence: 14.02.2023,14:47:40 on Mb02
It only happens on 3/4 of stations. Me06 is currently in maintenance and not deployed.
Mb02:
Mc04:
Md05:
Traceback (most recent call last):
File "C:\Users\EnclosureMc04\Documents\pyra\pyra-4.0.7\packages\core\main.py", line 116, in run
m.run(config)
File "C:\Users\EnclosureMc04\Documents\pyra\pyra-4.0.7\packages\core\modules\enclosure_control.py", line 91, in run
self.plc_interface.connect()
File "C:\Users\EnclosureMc04\Documents\pyra\pyra-4.0.7\packages\core\interfaces\plc_interface.py", line 140, in connect
self.plc.connect(self.plc_ip, 0, 1)
File "C:\Users\EnclosureMc04\AppData\Local\Programs\Python\Python310\lib\site-packages\snap7\client_init_.py", line 24, in f
check_error(code, context="client")
File "C:\Users\EnclosureMc04\AppData\Local\Programs\Python\Python310\lib\site-packages\snap7\common.py", line 89, in check_error
raise RuntimeError(error)
RuntimeError: b' TCP : Unreachable peer'
The text was updated successfully, but these errors were encountered: