Error and exception handling in python-snap7 #570
-
|
Hello everyone, I have searched everywhere for documentation and real examples regarding exception and error handling in python-snap7, but I haven't found anything. In my Python application (a GUI for a Siemens PLC), I have a thread that reads and writes using a continuous polling loop. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Closing -- this is a general Python programming question about exception handling, not specific to python-snap7. Python's built-in try/except mechanism works with all snap7 exceptions. See the snap7.error module for the exception classes raised by the library. |
Beta Was this translation helpful? Give feedback.
Closing -- this is a general Python programming question about exception handling, not specific to python-snap7. Python's built-in try/except mechanism works with all snap7 exceptions. See the snap7.error module for the exception classes raised by the library.