ValueError: 0x82 is not implemented in snap7.types #299
-
I made a simple sample code trying to read a value from Q0.0 on PLC S1212C.
The code works just fine on a different computer where I have already installed snap7. On my ne computer i get the error
I tried installing it using pip install and the instructions on https://python-snap7.readthedocs.io/en/latest/installation.html |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Depending on which version you use, the solution is a bit different. My answer is for version 1.1 (last release): The install should be finde, if I interpret your error right (hint: debugging line for line and see where it breaks). I guess it's your first parameter in data = PLC.read_area(Areas.PE, 0, 0, 1) You may want to take a look in the comments in the method as well:
|
Beta Was this translation helpful? Give feedback.
Depending on which version you use, the solution is a bit different. My answer is for version 1.1 (last release):
The install should be finde, if I interpret your error right (hint: debugging line for line and see where it breaks).
It sounds that
PLC.read_area()
is the line who makes trouble.I guess it's your first parameter in
PLC.read_area()
. It should be from type Areas, not the number directly. So in your code it should look like:You may want to take a look in the comments in the method as well: