Skip to content

ValueError: 0x82 is not implemented in snap7.types #299

Answered by swamper123
maxitaxi13 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

data = PLC.read_area(Areas.PE, 0, 0, 1)

You may want to take a look in the comments in the method as well:


        Example:
            >>> import snap7
            >>> client = snap7.client.Client()
            >>> client.connect("192.168.0.1", 0, 0)
    …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@swamper123
Comment options

@maxitaxi13
Comment options

@swamper123
Comment options

@maxitaxi13
Comment options

Answer selected by maxitaxi13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants